A normal will only affect the final color is you have lighting enabled. Do
you need lighting enabled? If not, disable it.

Also, make sure you have texture mapping disabled when you render the lines.

(Lighting and texture mapping are only two of several states that can affect
the final color. Blending, etc, there are many others.)

Assuming you have all state disabled that might affect the final color, then
the color you set for the primitive's primary color will be the final color.
And the "brightest" color you can obtain is full-intensity white (1.0, 1.0,
1.0). If this is still not "bright" enough, then you might need to increase
the line width to give an appearance of brightness.
   -Paul


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Stephen Northcott
> Sent: Wednesday, November 08, 2006 10:33 AM
> To: [email protected]
> Subject: [osg-users] Making LINES bright...
> 
> Sorry for what is probably a dumb question..
> 
> I have an application where I am alternating between 
> PointSprites with a pair of vertices making two opposite 
> points in space, and I want to then change that into a line.. 
> So I use a state-set and change the OpenGL rendering mode to 
> LINES for that pair of vertices.  
> Voila!
> 
> However, in any mode other than POINT all the colours are 
> very dull..  
> Do I have to attach normals to these, or can I just force 
> them to be bright all the time? And if so how, please.. I 
> have tried most things that I think are obvious, and know I 
> must be being dense somewhere.
> 
> Thanks.
> 
> Stephen.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to