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
3
votes
1 answer

How to combine two textures without alpha blending using GLSL

I'm trying to combine two texture using shaders in opengl es 2.0 as you can see on the screen shot, I am trying to create a needle reflection on backward object using dynamic environment mapping. but, reflection of the needle looks semi transparent…
ytur
  • 1,232
  • 12
  • 22
2
votes
1 answer

how draw object with diffuse texture after multi-textured object

I am drawing one object using multi-texturing. That comes fine but when I draw other objects after that using only diffuse texture, that diffuse texture gets bound with previous texture. I know I have to deactivate texture units other than default…
rocksvick
  • 187
  • 2
  • 7
2
votes
0 answers

Using RGB for A in fixed pipeline opengl

Yes so short question: Is it possible to use any of the RGB components as alpha in Opengl ES 1.1 (fixed pipeline)? It seems that GL_COMBINE does not allow one to use the RGB as a source for alpha. Why is this limit imposed, and what are…
Tony
  • 417
  • 4
  • 11
2
votes
0 answers

How to efficiently generate procedural textures in libgdx?

I am working on generating a procedural 3D terrain in libGDX. I've managed to create the mesh, but now I am having trouble finding an efficient way of texturing it. The way I do it now is by creating a pixmap and iterating through all the heightmap…
Mihai Fumarel
  • 160
  • 1
  • 14
2
votes
1 answer

SharpDx get Shader variable Names of Texture2D,SamplerState

I'm wondering if it's possible to get the Variable names of Texture2D and SamplerState. I know that I'm able to get those through the effects Framework. But I'm looking for a way without this Framework. Like the way with Constantbuffers…
Rey
  • 85
  • 1
  • 9
2
votes
1 answer

Opengl Multitexturing and blending

I explain my problem: I have three png image, the first has channel alpha, the other two are RGB: frame mask background I have to blend it all to obtain this result now i know that i have…
Luca
  • 1,270
  • 1
  • 18
  • 34
2
votes
1 answer

Android OPEN GL ES multi-texturing draws nothing

I am new to this OpenGL ES stuff, I am trying to draw a rectangle using multi-texturing but it does not show anything I dont know what is wrong with this. Any Suggestions or ideas will be very helpful to me. Here is my code: What I have done is…
Renjith K N
  • 2,613
  • 2
  • 31
  • 53
2
votes
1 answer

How to do multi-texturing using open gl es 1.1 in Android

What I have done Currently in my Android app I am drawing rectangles with two different textures There is a fade in (changes the alpha ) animation for one texture (for the second one ) is given. What I Want. I want to use multi - texturing thus …
Renjith K N
  • 2,613
  • 2
  • 31
  • 53
1
vote
1 answer

OpenGL texture transformation when two textures on same mesh

I have a situation where i have two textures on a single mesh. I want to transform these textures independently. I have base code wherein i was able to load and transform one texture. Now i have code to load two textures but the issue is that when i…
He-man
  • 13
  • 3
1
vote
0 answers

How to load Multi-texture .obj file in GLES in android

i have to 3d obj files in android. i have searched and find many forums and now im able to load obj+mtl files successfully. but i got problem with that obj and mtl files having many texture files . in may case ,in mtl every face it has a texture…
1
vote
3 answers

Texture units and vertex arrays in OpenGL

I'm trying to draw one cube with different textures for each face. I've come across many tutorials which state that in the display() routines, you need to enable all texture units before calling glDrawElements(). I do this my…
Sonoman
  • 3,379
  • 9
  • 45
  • 61
1
vote
1 answer

How can I merge the colour of 3D foliage with the texture beneath it?

I have got a 2D texture, such as this one, which I am currently just dropping directly onto the terrain. I am then rendering foliage on top of that texture. I would like to (using the fragment shader), get the colour of the texture beneath the…
Joehot200
  • 1,070
  • 15
  • 44
1
vote
1 answer

Multitexturing with C# and ActiViz .NET

I want to use ActiViz .NET and C# to multitexture an object created from .obj file. As long as I know somehow to use texture with single texture, I have problem with more than one texture. Based on what I found on VTK GitHub I started writing a…
Ellusion
  • 43
  • 2
  • 7
1
vote
2 answers

OpenGL binding many textures while drawing the one mesh

I would like to bind for example 80 textures on one mesh and put it in my VBO. How can I achieve this? I've read glActiveTexture is able to do that, however it allows max around 32 textures (GPU dependant). My VBO code: //Generating…
ProXicT
  • 1,903
  • 3
  • 22
  • 46
1
vote
1 answer

GLSL dark seams between masks

Texturing follows: gl_FragColor=texture2D(my_main_texture, vUv); gl_FragColor= mix(gl_FragColor,texture2D(texture[1], 32.0*vUv),texture2D(mask[0], vUv).r); gl_FragColor= mix(gl_FragColor,texture2D(texture[2], 32.0*vUv),texture2D(mask[0],…
Ni55aN
  • 63
  • 1
  • 9