[osg-users] obj plugin does not support diffuse and specular texture maps

Ralf Habacker ralf.habacker at freenet.de
Tue Oct 17 05:58:13 PDT 2017


Am 17.10.2017 um 14:07 schrieb Robert Osfield:
> Hi Ralf,
> 
> osgUtil::ShaderGen will be deprecated by the shader_pipeline
> functionality, the ability of toggling GLSL features on and off will be
> possible by toggling GL style modes that map to #define's.
I guess they are propagated to the shader on shader compile time

> The shader_pipeline branch already has the abilty to toggle features on/off this way.
that means for example switching light on and off will effect the
related shaders immediatly or is a recompile required ?

I will give it a try - is there any abstract available for this feature
branch ?

> For the .obj plugin I think one would want to make sure loads the obj
> data properly and makes it possible post processing to enable shader
> functionality that maps what the data suggest is appropriate.
I assume you are refering to adding a node call back in the obj plugin,
which does the real work after loading ? It needs to get the texture
type to unit index mapping (either automatically assigned or by obj
plugin options)

> I don't think it would be appropriate to push shader functionality into the obj
> plugin to handle this,
any hint where to add such stuff into the shader pipeline branch of the
osg framework?

or for the ShaderGen itself to be worked on when
> it's not far away from being replaced.
make sense

Ralf



More information about the osg-users mailing list