my 3D shape is cut off during rotation
I have a sphere that is deformed by a procedural texture and then sent to a mesh.
If I activate the attributes lightning_enable 1 and/or cull_face 1 in the mesh, my shape disappears when I rotate on the x or z axis.
With these 2 attributes deactivated, I can rotate without any problem.
Where does this problem come from?
I want to be able to rotate with these attributes enabled without my shape disappearing.
Thanks for help !


I believe this bug where the top half of the mesh is cutoff is only in older versions of Max 8. The latest 8.6.5 does not exhibit this bug (nor does Max 9). Is that the case for you?
That being said this will never render correctly with lighting unless you also generate normals. The easiest way to do that I think is to use jit.gl.material with vtf_normals mode. This is mostly functional in Max 8, but there are improvements in Max 9 that I think make it look better.

Great ! Thanks Rob.
Yeah, I wasn't in the latest Max version.
I updated to Max 8.6.5 and the bug disappears.
My shape only fade out to black when the rotation is between 135 and 315 on x axis or between 43 and 225 on z axis. Is this because of what you said about normals?
I tried your version and the visual is indeed way nicer!
glad to hear!
My shape only fade out to black when the rotation is between 135 and 315 on x axis or between 43 and 225 on z axis. Is this because of what you said about normals?
exactly. Can't do lighting without normals. If you distort position values you must also distort the normals, which is what jit.gl.material handles with vtf_normals mode.