Hi folks, OSG 3.0.1 OpenFlight 16.4
I've been looking at the code that loads light points in the OpenFlight loader. I was putting together a test and ran into an issue. It appears that in the FLASHING_SEQUENCE section in LightPointsRecords.cpp:316 (IndexedLightPoint) that the loader is putting the color index value into the RGB component of the color sequence instead of the RGB values looked up from the color pallet. The base color of the lightpoint appears correct which has an index of 639 (255,0,0). The sequence is configured to go from blue to green, but what we see is Red, darker red. Color index values for the sequence 383 (0,0,255) 511 (0,255,0) Printing out the values in the sequence at the loader before they are added to the sequence we get: LPAnimation::FLASHING_SEQUENCE 1 : 0.498039, 0.00392157, 0, 0 LPAnimation::FLASHING_SEQUENCE 1 : 1, 0.00392157, 0, 0 and looking at the bits of the RGB components concatenated we get: 383, 511 Which is the original color index values and not the RGB components that would be the result of the lookup. Can anyone point to where the lookup of the RGB components should happen so I can fix this? Also, I've attached a simple model for your viewing pleasure. Thank you! Cheers, Brad ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48494#48494 Attachments: http://forum.openscenegraph.org//files/pole_red_907.zip _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org