IsraelAbebe / blender2ogre

Automatically exported from code.google.com/p/blender2ogre
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Incorrect light direction #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When exporting a spotlight or directional light, it has the opposite direction. 
When the light is facing down, y=1.0 in the dotscene file and the same happens 
for the other axis. I'm using the default swap axis options. This happens 
because in Blender the direction of the light is -Z and not +Z like for Ogre. 
You removed the minus signs I put in the other issue I posted.

a.setAttribute('x',str(round(vector[0],3)))
a.setAttribute('y',str(round(vector[1],3)))
a.setAttribute('z',str(round(vector[2],3)))

Needs to be:

a.setAttribute('x',str(round(-vector[0],3)))
a.setAttribute('y',str(round(-vector[1],3)))
a.setAttribute('z',str(round(-vector[2],3)))

Original issue reported on code.google.com by mohdakra...@gmail.com on 2 Jul 2011 at 4:44

GoogleCodeExporter commented 8 years ago
thanks for reporting again, this is fixed in the next release.

Original comment by goatman.py@gmail.com on 2 Jul 2011 at 11:52

GoogleCodeExporter commented 8 years ago
fixed in 0.4.5

Original comment by goatman.py@gmail.com on 22 Jul 2011 at 10:23