Help with AlignToVector

Blitz3D Forums/Blitz3D Programming/Help with AlignToVector

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well they are right you only need one vector to determine the sun direction. You want the inverse of this vector to point the light in the right direction. So align -lx,-ly,-lz. I am not sure what the implications of +Z being up are at the moment. Maybe you align to -lx,-lz,-ly instead of -lx,-ly,-lz.

hah. Stevie beat me to it again, and his reply makes more sense to boot.