Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


SamuraiProgrammer

Member Since 20 Jul 2001
Offline Last Active Aug 01 2011 01:30 PM

Posts I've Made

In Topic: Directional Lighting

01 August 2011 - 11:42 AM

Yeah, I completely understand now. I was only seeing the 3 components that were being given to glLightfv as a point in space but didn't realise it can also be seen as a vector. When I said I would divide the vector components by 2, I wasnt going to supply the command with a 2 vectors but instead divide the vector by 2. e.g. The vector (2, 4, 6) has the the same direction as (1, 2, 3). And they should give the same lighting result if used for a directional vector. That's what I tested and it turned out the same in my program.

In Topic: Directional Lighting

01 August 2011 - 11:07 AM

But the coordinates given in the glLightfv command specify a point in space not a vector. Unless you mean its treated as a vector as soon as you add the 0.0 w ordinate. I could test this by dividing all the i, j and k components of the vector by 2 and should see the same directional lighting.
Thanks for the reply.

PARTNERS