Forums > Jitter

triangulation of .obj

August 3, 2006 | 3:33 pm

Hello,
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…

________Mathieu__________


August 3, 2006 | 3:53 pm

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.

best,
wes

On 8/3/06, mathieu

wrote:
>
> Hello,
> 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…
>
> ________Mathieu__________
>


August 3, 2006 | 4:14 pm

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.


August 3, 2006 | 6:25 pm

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
though.

Another idea is to use a texture that looks like lines, instead of
actual OpenGL lines.

-Randy

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
> triangulation.
>


Viewing 4 posts - 1 through 4 (of 4 total)