About Store Forum Documentation Contact



Post Reply 
My lights does not function properly
Author Message
jordicat Offline
Member

Post: #1
My lights does not function properly
Hi,
in my little project, if I put one or more lights (LightCone, LightSqr, etc) I found that some part of the screen has no light and the other part yes.
It's a bug? or I did some wrong? In the picture is easy to see the issue.
[font=Courier]
void Render()
{
switch(Renderer())
{
case RM_SHD_MAP:
case RM_SOLID :
case RM_SOLID_M:
plat.draw(MatrixIdentity); // render terrain
for (int i=0; i<MAX_BOLES; i++) {
esf[i].draw(MatrixIdentity);
}
break;
case RM_LIGHT:
LightCone(120, Vec(30, 20, 0), Vec(-1,-1,-.5), Vec(.5,.5,1)).add();
break;
}
}[/     font]

Thanks in advance.
11-28-2009 07:00 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #2
RE: My lights does not function properly
Try maybe to normalize direction !Vec()
11-28-2009 07:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jordicat Offline
Member

Post: #3
RE: My lights does not function properly
Hi,
I post another issue about the lights. I noticed that if I move very little the camera the specular light level can be quite different, more than I would expect. Why?
    versus    

Thanks very much.
11-28-2009 07:23 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: My lights does not function properly
maybe you need to enable D.hpRt(true)
11-28-2009 08:17 PM
Find all posts by this user Quote this message in a reply
jordicat Offline
Member

Post: #5
RE: My lights does not function properly
Thanks to answer my questions like near the speed of light.
The LightCone... now functions ok.
About my second issue, i am working with hpRt(true). My card is an a nvidia 7900 gs. It seems that there is no difference with hpRt true or to false in my application.
Thanks.
11-28-2009 08:38 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: My lights does not function properly
then it's possible that your card doesn't support hprt
11-28-2009 08:40 PM
Find all posts by this user Quote this message in a reply
Post Reply