Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

lighting and colored polygons

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Morgan   Members   

122
Like
Likes
Like

Posted 05 May 2000 - 02:45 PM

I usually only use texture mapped polygons in my apps, but one I''m working on I need to not use texture mapping. The problem is that I can''t use lighting on the colored polygons because it turns to shades of grey (I''ve known about this for a long time, but ignored it because I didn''t really have a problem with it). How do I fix this? Morgan

#2 ga   Members   

126
Like
Likes
Like

Posted 06 May 2000 - 01:46 AM

You should use glMaterial()

Visit our homepage: www.rarebyte.de.st

GA

#3 Bad Monkey   Members   

145
Like
Likes
Like

Posted 07 May 2000 - 12:16 PM

Hi Morgan,

I think the call you need to make is glEnable(GL_COLOR_MATERIAL)... or something very similar. This enables color tracking (ie, it shades in progression of colors, rather than just grey).

-------------
squirrels are a remarkable source of protein...




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.