create the procedural mesh or grid in jitter

Feb 19, 2010 at 3:04pm

create the procedural mesh or grid in jitter

Hi, I want to create a mesh or grid with Jitter. the size may be 8×8, 16×16, 64×64.

for example, with the size 16×16.
the beginning vertex values are :
x=0 y=0 z=0
x=0 y=0 z=1
x=0 y=0 z=2
x=0 y=0 z=3
x=0 y=1 z=0
x=0 y=1 z=1
x=0 y=1 z=2
x=0 y=1 z=3
x=0 y=2 z=0

at the end we have :
x=7 y=6 z=1
x=7 y=6 z=2
x=7 y=6 z=3
x=7 y=7 z=0
x=7 y=7 z=1
x=7 y=7 z=2
x=7 y=7 z=3

The vertex value is very important, and I don’t mind face index.

I already try to export the mesh with blender. but, once loaded by jitter, vertex positions changent(I remplaced vertex positions once the .obj mesh was exported).

thanks for all

waikit

#48611
Feb 20, 2010 at 7:07pm

not really sure what you are asking.
you can use jit.expr to generate procedural geometries for use with jit.gl.mesh.

please elaborate on your question.

#174804
Feb 23, 2010 at 9:09am

I resolve the problem. I created the simple grid in blender with the vertex value and face index by default. I export to OBJ format object. I use java to generate my own vertex value and face index. I replace their value in the OBJ format object file.

Thank for your answer.

w

#174805

You must be logged in to reply to this topic.