create the procedural mesh or grid in jitter

waikit's icon

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

for example, with the size 16x16.
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

Rob Ramirez's icon

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.

waikit's icon

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