Hi Art,
Sorry. Yes, I simply add an empty shader on the proxy node containing
the cow and it works.
Like Robert says it is a clue to figure out where the problem come from.
I will investigate more deeper in this way and post a submission if I
find the origin of the problem.
Art Tevs a écrit :
Have you tried, what I have proposed before?
cheers,
Art
--- Stephane Lamoliatte <[EMAIL PROTECTED]> schrieb am Fr, 23.5.2008:
Von: Stephane Lamoliatte <[EMAIL PROTECTED]>
Betreff: Re: [osg-users] empty geode + shader + uniform = bug ?
An: "OpenSceneGraph Users" <[email protected]>
Datum: Freitag, 23. Mai 2008, 12:02
Hi David,
I turn off the optimizer in osgviewer and the problem stays
the same.
Thanks for your help.
David Spilling a écrit :
Stephane,
Have you tried running with no optimizer? A while ago
I dimly remember
encountering something similar with the optimiser
doing funny things
with empty nodes that had state changes...
Dave
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Lamoliatte Stephane
Ingenieur R&D
R.S.A. Cosmos
Z.I. de la Vaure - B.P.40
42290 Sorbiers, France
Tél : +33 (0)4 77 53 30 48
Fax : +33 (0)4 77 53 38 61
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Lamoliatte Stephane
Ingenieur R&D
R.S.A. Cosmos
Z.I. de la Vaure - B.P.40
42290 Sorbiers, France
Tél : +33 (0)4 77 53 30 48
Fax : +33 (0)4 77 53 38 61
Group {
name "aGroup"
Geode {
name "anEmptyGeode"
StateSet {
Uniform {
name "color"
type vec3 1 FloatArray 3 {
1 0 0
}
}
Program {
num_shaders 1
Shader {
type FRAGMENT
code {
"uniform vec3 color;"
"void main() {"
" gl_FragColor = vec4(color.rgb, 1.0);"
"}"
}
}
}
}
num_drawables 0
}
ProxyNode {
name "whatEverYouWant"
StateSet {
Program {
}
}
FileNameList {
cow.osg
}
}
}
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org