Dirk Reiners wrote:
Hi Daniel,
On Wed, 2006-04-19 at 15:26 +0200, Daniel Grest wrote:
Hello,
i have just recognzied, that recently the behaviour of VRML loading
changed (current CVS):
So far, if no appearance was defined for a shape, the geometry was unlit
(no shading, pure white).
I rely on that, as I use the color of triangle as index for an array
lookup.
I am willing to change my code, but im not sure what exactly to do.
Change the "now automatically created" default materialgroup before each
geometry to what? zero diffuse, zero specular, full ambient?
Or should i remove it?
I think the best fix would be to add an Appearance to your VRML
models. ;)
Could do it, but which one?
If you can't do that, replacing the Material in the default
MaterialGroup with one that either has full ambient or full emission
(the former is scaled by other lights, the latter isn't) should work.
I tried both, neither is what i want.
I want an unlit model. I define color per Vertex in the geometry and
want the rendered model to show exaclty the defined color, without
any change. Just like having a geometry without any material and no
lighting.
I even tried to set the Material of the MaterialGroup to osg::NullFC,
but that seem to result in a undefined behaviour ;)
Please help,
else i have to go back to an old cvs...
Daniel
Yours
Dirk
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users
--
Dipl.-Ing. Daniel Grest, Multimedia Information Processing
University Kiel, Germany Tel. 0049 431 880 4470
==========================================================
"If we knew what we were doing, it wouldn't be called research, would it?"
- Albert Einstein
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users