View Full Version : Lighting characters
01-19-2008, 10:28 PM
I am using glsphere and glucylinder to form a character and when I try to light the backside of it with the light the one next to them is holding the back does not light even though the lighting model is two side. Any ideas on how I can make the light the characters are carrying light the character next to them.
01-20-2008, 03:15 AM
Two sided lighting is only useful if your spheres and cylinder are open, so it must be something else.
Be sure your light is glEnable before rendering each solid, and do not enable /disable it.
Can you post a screenshot ? Your description of the problem is very hard to understand.
01-20-2008, 10:23 PM
I don't know how to put a screen shot up here but what happens is that when the robots face to the right their light shows up on the back of the robot next to them but when they face to the left the light does not show up on the robot next to them. How can I get the light to show up facing both ways?
01-21-2008, 08:20 AM
A guess, you need to define the light as "local" instead of the default (global, like an infinitely far away light source) :
Read this for details :
01-21-2008, 05:30 PM
Thank you I already have the lighting model set to local viewer so that can't be it.
01-24-2008, 09:17 AM
Does anyone know how I can get the light to act the same way no matter what way the light is facing?
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.