Questions tagged [multitexturing]

Multitexturing is the use of more than one texture at a time on a polygon.

Multitexturing is the ablility to apply two or more textures (most modern graphics cards can do 8 textures) to the same primitive in a single pass.

60 questions
1
vote
1 answer

WebGL Multitexturing with Video

I'm trying to use two textures in a fragment shader and having trouble getting WebGL to send the textures properly. I can send one at a time, but when I try to do both at once, I just get black. I've seen some other multitexturing examples around,…
aferriss
  • 914
  • 9
  • 20
1
vote
2 answers

opengl multitexturing glsl - only one texture at a time

It seems like if i use texture(texture0,textCoord) for one time and then i try to use it again with an other texture texture(texture1,textCoord); it returns (0,0,0,0); and i just dont know why . In my program it seems to be an order of workines ,if…
1
vote
1 answer

Changing the texture displayed in fragment shader

I am trying to pass 2 textures to a shader and I am a little confused about the working here This is the opengl code GLuint textures; GLuint textures1; glGenTextures(1,&textures); glGenTextures(1,&textures1); …
Rohan Patil
  • 277
  • 1
  • 4
  • 10
0
votes
1 answer

OpenGL: are texture combiner functions supported when rendering to FBO?

I have an OpenGL texture rendered to a first FBO and I need to edit its brightness, render to a second FBO and then draw it on screen. If I render the texture to the second FBO (without modifying its brightness) and then draw it on screen, it shows…
Andrea3000
  • 1,018
  • 1
  • 11
  • 26
0
votes
1 answer

Why do I have to switch Texture Unit in order for my Fragment Shader to recognize which texture to use?

I have this program for simple testing purpose. The program creates two 1-D textures and pass them to the shaders. The fragment shader is very simple. It just pulls out the texel at index 4 of the first texture and make that texel the color…
Einiosaurus
  • 191
  • 2
  • 12
0
votes
2 answers

How do I get my textures to bind properly for multitexturing?

I'm trying to render colored text to the screen. I've got a texture containing a black (RGBA 0, 0, 0, 255) representation of the text to display, and I've got another texture containing the color pattern I want to render the text in. This should…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
0
votes
1 answer

OpenGL primitives too dark when multitexturing?

I'm having a problem getting accurate primitive colours when I'm using multi-texturing elsewhere in the scene. Basically, I have some lines and polygons that I am trying render over a video texture (I'm using 3 stage multitexturing to create the…
dicroce
  • 45,396
  • 28
  • 101
  • 140
0
votes
1 answer

OpenGl es 2.0 GLSL fragmentColor multiple textures

I am rendering frame, fragment color is based on two textures, i woudl like to increment value of one of textures in one pass, i mean can i run one program on two framebuffers in one pass? like gl_fragmentColor1 and gl_fragmentColor2, but…
ZZZ
  • 678
  • 2
  • 10
  • 26
0
votes
1 answer

Best way to add texture elements to already textured object in webGL

I am currently creating a web configuration tool to create very simple buildings. I already have managed to create a layout editor with which you can arrange the 4 walls of the bulding via drag and drop and then see the result in 3D. The layout…
coolaturon
  • 127
  • 2
  • 8
0
votes
3 answers

Multitexturing is darkening the entire scene!

I've implemented a scene using 3 quads, A, B, and C. Quad C is behind quad B. Quad B sits on top of Quad A. All quads are using the same texture with the exception of Quad B. Quad B makes use of an alpha map and the base texture all the other Quads…
ct_
  • 1,189
  • 4
  • 20
  • 34
0
votes
1 answer

OpenGL multiple textures with VBOs

I'm trying to figure out how to render an object (a cube) with different textures for each face. For simplicities sake, I have 2 textures that are applied to 3 faces of the cube each. I understand that I should be using texture arrays with 3…
Sonoman
  • 3,379
  • 9
  • 45
  • 61
0
votes
2 answers

Multitexturing not working as expected

Given the below snippet: import os import textwrap from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * from PIL import Image from OpenGL.GL.ARB.multitexture import * from OpenGL.extensions import alternate def…
BPL
  • 9,632
  • 9
  • 59
  • 117
0
votes
1 answer

Multitexturing issue

I would like to blend up to 4 textures by using multitexturing feature in fixed pipe line. I can successful use 2 texture units but when I use more then two texture units there strange artifact occurred (some texture are missing or wrong texture…
gaspode
  • 159
  • 1
  • 4
0
votes
1 answer

What's the proper way to do multitexturing in GLSL with independent texture coordinates?

Multitexturing used to be easy and straightforward. You bind your textures, you call glBegin, and then you do your rendering, except instead of glTexCoord you call glMultiTexCoord for each texture. Then all of that got deprecated. I'm looking…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
0
votes
1 answer

Passing 2 Textures into fragmenshader

Im want to get to different textures in my fragment shader. But somehow it won't work. It is only getting one of them. I'm starting my rendering with : glBindVertexArrayOES(_heighMap.vertexArray); //Get Uniforms GLuint mapProj =…
DomiDiDongo
  • 133
  • 10