realbasic-games
[Top] [All Lists]

Re: OpenGL Lighting again

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: OpenGL Lighting again
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Fri, 22 Oct 2004 21:49:46 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <C3F9EB76-2450-11D9-8FBA-000A95DB6C90 at fireyesoftware dot com> <BBAA9694-246D-11D9-B6C1-0003933EA538 at chaoticbox dot com> <CD32C302-246F-11D9-A312-000A95DB6C90 at fireyesoftware dot com> <11DE7AEE-2471-11D9-A312-000A95DB6C90 at fireyesoftware dot com> <04EE746D-2477-11D9-B6C1-0003933EA538 at chaoticbox dot com>

On Oct 22, 2004, at 6:09 PM, Frank Condello wrote:

The lighting is set up  _once_, and never touched again.

That's likely the problem - try updating the light position every frame, after you set the view projection (even for stationary lights).

It looks the same if I do that.

This link may shed some light: <http://www.opengl.org/resources/faq/technical/lights.htm#ligh0050> pun intended!

I'm already doing what it says to do.

:-(

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> Make PDFs from your RB app <http://www.fireyesoftware.com/code/pdfclasses/>
AIM and Yahoo: fireye7517
REALbasic 5.5.3 Mac OS X 10.3.5

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>