morphing model

MRTN's icon

Hi, I'm trying to figure out why, using the xfade for morphing between two models (same numbers of faces, etc.) I display the models, all is working but they have NO SHADOW/LIGHTING ENABLE even if I try to enable them, the picture really sucks...
I'm wondering why...

1960.cubes.zip
zip
Andrew Benson's icon

Looks like your jit.gl.models aren't passing normals. You can render the geometry using jit.gl.mesh with @auto_normals 1 to have them generated for you.

MRTN's icon

I'm not sure I get it, maybe is my fault but seems the mesh is not rendering anything... anyway it wasn't so important this project so it's ok :)
thanks for the answer! i'll play with this patch again when i'll have free time and if i discover something i'll post it!