I am learning how to use the 3D capabilities of Director 11.5 and I made a slight change to the example given in the newmesh help page. Essentially I added another point to the pyramid shape of the example and created a two pyramid shape where they are connected at the bases. But when I rotate the object, it appears that some of the faces reflect light from the outside of the object and some reflect from the inside. Does anyone know what is happening? Here is my code. You can put this on a Shockwave 3D member. Thanks!
on beginSprite me
nm = member("Shapes").newMesh("pyramid",8 , 6, 0, 0)
I should add that I also have the "Drag Model to Rotate" behavior and the "Mouse Left" trigger behavior from the Library attached to the 3D sprite.
I haven't checked, but it seems likely that the order in which you have sequenced the vertices has caused the new polygons to face the opposite direction.
Yes, the normals follow a right-hand-rule so you have to generate the points of each triangle in the appropriate order. Thanks!