Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: Lines look ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 4889 of 5041
Post > Topic >>

Re: Lines look different on different sides?

by "jbwest" <jbwest@[EMAIL PROTECTED] > Aug 26, 2008 at 05:10 PM

"Flark" <flarkino@[EMAIL PROTECTED]
> wrote in message 
news:b6091c1f-a403-43ba-a85f-0c910a7dd590@[EMAIL PROTECTED]
>
> When I view some lines (GL_LINES) from above
> (negative y axis), they appear one color e.g. black.
> When I view them from the front (negative z)
> they appear white. They are supposed to be
> white all of the time. Anybody know what could
> cause this? There is one light.
> Also, when I rotate the model between 65 and 75
> degrees on the y axis, the lines change color.
>
> Thanks.

Do you have lighting enabled for the line draw? (Yes, lines can be
lighted).
If you do, it picks up the last normal and uses that for the lighting 
calculation.
If you want them unlit -- then turn off lighting while drawing them.

jbw
 




 2 Posts in Topic:
Lines look different on different sides?
Flark <flarkino@[EMAIL  2008-08-26 13:36:49 
Re: Lines look different on different sides?
"jbwest" <jb  2008-08-26 17:10:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 0:08:32 CST 2008.