Hi Deniz.
First of all, please use the submission list for patches. For general
questions the "General" group or the osg-users list is more appropriate.
Hi,
In revision 14104 (vs-2013, x64-build), when I try to add a uniform as
osg::Matrixd, I get a run-time opengl error and the error happens right after
Renderer::compile(). When I instead use a osg::Matrixf, everything is fine. The
same thing happens also with osg-3.2.0.
But If I revert to osg-3.0.1, then there are no errors at all.
This seems to me like a minor flaw in the old version. Since you did not
provide any code I can only guess, that you are trying to assign a
double precission matrix to a float precision uniform.
This is indeed an error.
So when using osg::Matrixd the appropriate type is DOUBLE_MAT4. In most
drivers/cards this will be converted to a float matrix before sent to
the GPU, so for most applications it is okay to use the FLOAT_MAT4
instead passing a osg::Matrix
cheers
Sebastian
You can test this with a very simple basic shader, but if you like to have the
code let me know.
Thank you!
Cheers,
deniz
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58405#58405
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org