This is probably because your normals are off. You could write a
simple JS to fill a matrix with the appropriate normals and vertices
and texture coordinates as it's only 8 points and 12 triangles.
On 8/3/06, mathieu wrote:
> I make a simple cube on 3dsMax.
> I have a problem with the triangulation of .obj when i use poly_mode it add diagonal line.
> How can i avoid it?
> thanks for reply...
thanks a lot for your reply,
but the cube was just an example,i made a city map with four 3d buildings (most of thousands points).
There is no texture, i use just the "poly_mode 1 1"
i dreamed if there was just a function on the .obj to avoid triangulation.
This may depend on your modeling application. It is possible to
avoid the diagonal lines using edge flags. You can see an example of
this in the jit.gl.plato help file, where the cube is drawn with its
face edges only. Edge flags is an OpenGL concept, not an .obj one
Another idea is to use a texture that looks like lines, instead of
actual OpenGL lines.
On Aug 3, 2006, at 9:14 AM, mathieu wrote:
> thanks a lot for your reply,
> but the cube was just an example,i made a city map with four 3d
> buildings (most of thousands points).
> There is no texture, i use just the "poly_mode 1 1"
> i dreamed if there was just a function on the .obj to avoid