Hello,
I am trying to assign a semi transparent color to a Particle using
GeoColors4f. The relevant code is:
GeoColors4fPtr geoColor2 = GeoColors4f::create();
beginEditCP(geoColor2, GeoColors4f::GeoPropDataFieldMask);
geoColor2->addValue(Color4f(1.0, 0.0, 0.0, 0.5)); //fails
//geoColor2->addValue(Color3f(1.0, 0.0, 0.0)); //works
endEditCP(geoColor2, GeoColors4f::GeoPropDataFieldMask);
It fails to compile under VS 2005. The error is:
error C2664: 'osg::GeoProperty<GeoPropertyDesc>::addValue' : cannot
convert parameter 1 from 'osg::Color4f' to 'const osg::Color3<ValueTypeT> &'
It seems that the addValue function of GeoColors4fPtr only accepts RGB
colors, which suprises me a bit...
So the question is: What am I doing wrong here?
Regards
Stefan
--
Dipl.-Inform. Stefan Rilling Email: [EMAIL PROTECTED]
Institut für Computervisualistik Fon : +49 261 287-2734
Universität Koblenz Raum : B319, Gebäude B
56016 Koblenz
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users