Lighting issues...
How can I make lights that are not dependent on the position of the viewer? I thought that this would be diffuse, but, strangely enough, my diffuse is acting like specular lighting, and at only certain angles are the polygons lit. Is that the way it always works or am I missing something here?
"No break ''till you die!"
- Mr. Foster, my English teacher
"No break 'till you die!" - Mr. Foster, my English teacher
January 08, 2002 05:50 AM
It''s perfectly normal that diffuse light lights up certain angles of your objects only, this is what light normally does... 
Or does the lighting change (lit angles change, intensity, etc...) if your viewpoint moves ? In that case, you have specular light.
- AH

Or does the lighting change (lit angles change, intensity, etc...) if your viewpoint moves ? In that case, you have specular light.
- AH
I had the same problem a while ago, and I never fixed it.
How does one go about turning off specular lighting? I tried setting the specular value to (0, 0, 0) but that didn''t help a thing.
As the angle between the viewer->polygon->light changed, so did the brightness of the polygon
How does one go about turning off specular lighting? I tried setting the specular value to (0, 0, 0) but that didn''t help a thing.
As the angle between the viewer->polygon->light changed, so did the brightness of the polygon

What I want the lighting to do is illuminate polygons based on their angle and distance from the light source - I''m only using diffuse and ambient, and I''m specifying normals for all of my polygons, but the lighting still looks like specular lighting.
Any suggestions?
"No break ''till you die!"
- Mr. Foster, my English teacher
Any suggestions?
"No break ''till you die!"
- Mr. Foster, my English teacher
"No break 'till you die!" - Mr. Foster, my English teacher
are you sure you''re light sources are always at the same position (so they don''t follow you) , I had a similar problem because my lights moved with camera and therefore changed the whole light distribution over scene.
In case you still have problems you should just write your own lighting engine
With best regards,
Mirek Czerwiñski
http://kris.top.pl/~kherin/
In case you still have problems you should just write your own lighting engine

With best regards,
Mirek Czerwiñski
http://kris.top.pl/~kherin/
With best regards, Mirek Czerwiñski
My own lighting engine? Heh heh heh. I''d rather use OpenGL- I''ve seen this done countless times before. Why won''t it work for me? I just want light to diffuse in all directions when it hits a polygon... I know that the light is fixed at a certain position. Is there something I''m still missing here?
"No break ''till you die!"
- Mr. Foster, my English teacher
"No break ''till you die!"
- Mr. Foster, my English teacher
"No break 'till you die!" - Mr. Foster, my English teacher
When you assign the normals do you assign them per vertex or per polygon?
Just for kicks try this (psudocode):
Don''t know how YOU are doing it, but I think this is right. This should assure that the lights are positioned using the rotated view.
Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
|
Don''t know how YOU are doing it, but I think this is right. This should assure that the lights are positioned using the rotated view.
Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
The way Atronic is doing it is the way you should do it...
I had somthing like the same problem as you are talking about...
And after a little headbanging i fixed it be placing the routines in the right order.....
I think....
Take Care!
- -- ---[XaOs]--- -- -
[ project fy ]
I had somthing like the same problem as you are talking about...
And after a little headbanging i fixed it be placing the routines in the right order.....
I think....

Take Care!
- -- ---[XaOs]--- -- -
[ project fy ]
Thank you so very much! I was calling the positioning routine way before I rotated the camera and such. Another problem on my endless list solved. Time to start a new post...
"No break ''till you die!"
- Mr. Foster, my English teacher
"No break ''till you die!"
- Mr. Foster, my English teacher
"No break 'till you die!" - Mr. Foster, my English teacher
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement