Game Development Community

Sun (Lens) Flare Position

by Chris "C2" Byars · in Torque Game Engine · 06/29/2005 (6:25 pm) · 4 replies

Regarding the Lens Flare/Sun Flare resource by Tim Newell: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2210

Wondered if anyone had success in getting the sun flare positioned static-ly in the correct position that the Sun is, and not in the 3D world as an XYZ positioned object, but in the altitude and azimuth positions of the Sun in the editor.

#1
06/29/2005 (6:49 pm)
I know the sun flare code that is included in head has an option in the editor to link the position of the sunflare to the azimuth and orbit of the sun object. You might try looking at that code to determine if it might be applied to the resource you mentioned. (if it isn't already)
#2
06/29/2005 (7:14 pm)
That's a good suggestion, although I am not a C++er by any means. Although I could take a look and see if I can make some sense of it.
#3
06/29/2005 (8:32 pm)
Well, I've found an easier workaround. By setting the position so far away, with a ridiculously large number like 90,000. lol. It works.
#4
06/29/2005 (8:42 pm)
Sorry I dont have any good suggestions for you. I havent looked at torque in a long time and dont even remember what I wrote on the lens flare code heh. Been mostly doing Torque2d these days.