Hello Ricardo,

On 12/13/2011 04:29 AM, Ricardo Schrumpf wrote:
> many thanks for the quick response. I've created a small program, which
> demonstrates the problem. It creates a plane and seven texture
> coordinate units with the same values. Now you can switch between using
> the texture units by pressing 0 to 7.

thanks for the program. I can reproduce the problem. It is not an OpenSG 
problem, but an OpenGL limitation (or rather hardware limitation), see 
below.

> Assigning the texturunits 0, 1, 2,
> 3 to a texturechunk works fine. But if i assign one of the other
> textureunits, the result is weird. I see no texture anymore, only the
> standard material of the plane.

On the machine I tested on (NVidia GTX 8800) GL_MAX_TEXTURE_UNITS = 4, 
so for the fixed function pipeline you can only make use of texture 
units 0 to 3, I'm guessing your hardware has the same limitation.
The same card also has GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 32, which 
means you could have up to 32 textures bound and access them from 
shaders, but with fixed function you are limited to 4.
There is also an (old) thread on the OpenGL forums: 
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showthreaded&Number=164763

        Cheers,
                Carsten

------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to