Hi,
I had some shadow code that was working well on 2.8.5 but will not work on
3.0.0. I verified that the same problem occurs with the OSG shadow example
source. My test machine GPU (Nvidia) reports 16 texture units available. If I
set the shadow texture unit number to anything higher than 7
-users] OSG 3.0 and osgShadow texture unit problems
Hi,
I had some shadow code that was working well on 2.8.5 but will not work on
3.0.0. I verified that the same problem occurs with the OSG shadow example
source. My test machine GPU (Nvidia) reports 16 texture units available. If
I set
Wojciech Lewandowski wrote:
Hi, Roger,
You might have 16 texture units but only 8 texture coords. And fixed
pipeline texgens of course can be set up to 7th stage.
Cheers,
Wojciech
I must admit I had not thought of that. But it was working on 2.8.5 on the same
Opengl driver and
Wojciech,
You were right I was using
osg::Texture::Extensions::getNumTextureUnits
which on 2.8.5 returns GL_MAX_TEXTURE_UNITS
and on 3.0.0 returns GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
I have reverted to a simple glGetIntegerv(GL_MAX_TEXTURE_UNITS)
Cheers,
Roger
--
Read this
4 matches
Mail list logo