Game Development Community

Spotlights do not save with correct rotation

by Killer Miller · in Constructor · 04/14/2007 (6:02 pm) · 2 replies

When saving a file as either a CSX or MAP file, light rotation of Torque spotlights do not save correctly. They usually come back in once the file is opened in constructor with an arbitrary rotation. When opening the attribites for those lights rotation angle states 0 no matter what the orientation. That be a bug.

#1
04/15/2007 (9:46 pm)
Greetings!

Hmm, if I recall correctly don't Torque spotlights (light_spot) require a target to work? Looking at the entity definition I don't see it storing rotations within the entity.

That was one of the reasons I created the special Constructor entity light_spotlight. Being to work in Torque units rather than MAP units was another reason. :o)

- LightWave Dave
#2
06/21/2007 (3:19 am)
I have found the "constructor light_spotlight" rotations to be bugged.

1. Create a cube
2. hollow it
3. place a light_spotlight in the center of the cube
4. adjust perspective view so that you can see the spot projected on the inside of the cube (Dynamic rendering).
5. set heading to 20 ..... the spot moves in the wrong direction, but the wireframe light cone behaves as expected.

I have also found that the angle_inner and angle_outer do not work, again the wireframe light cone behaves but the lighting results do not.