angerangel / LCR3D

Livecode 3D library
8 stars 6 forks source link

Notice: strange deformation #3

Open angerangel opened 9 years ago

angerangel commented 9 years ago

If you create your model and it seems all deformed, check camera position. If you change camera position, you solid will came back to normal. If the camera is inside a solid, vertex position calculus is a mess. For example, if you try to load this file, a simple cube:

OFF
8 6 12
0 0 0
1 0 0
1 1 0
0 1 0
0 0 1
1 0 1
1 1 1
0 1 1
4 0 1 2 3
4 7 6 5 4
4 1 5 6 2
4 3 2 6 7
4 4 5 1 0
4 3 7 4 0

You have to move the camera far from the cube.