More advanced tut on drawing with meshs

I have checked out the jme wiki and found the mesh examples but i cant seem to find more advanced ones like the problem i have right now is i have all my vertices’s all good. But i don’t understand the indexes. i understand the one on the tut but that only is an example for a simple quad i wanna make a cube out of that. can anyone help me or give me a link to a diagram that describes how they work?

Try to look at the Box class (com.jme3.scene.shape.Box).

EDIT: Btw, if you need to work with simple meshes (lines, quads, boxes, spheres, etc…), you can just use the classes from that package :wink:

Basically indexes tell how to create faces, for example you can define a triangle by using 3 indexes like {0,4,2} that means : create a triangle from the vertex 0 then go to the vertex 4 and so on.

have you seen this : ?

is there any diagrams that i could work off of?

Never mind about that last question of mine. some how i didnt see the answer is on the custom mesh page. thanks for the help guys! :smile:

Does an object have to be geometry to attach to root node? because i wanna make a half ass voxel demo and people always say never put a large amount of geometrys in the scene graph at the same time because it is very laggy?

Well i know but i like the hard way i find i learn more about how things work and thats why all this 3d stuff interests me because its so new.

FYI: Block worlds are not made of boxes. They are made of batched meshed of visible quads.

Okay. Do you have a wiki page for makeing a batched mesh?

It’s just like making a regular mesh. You sounded like you were ready to have 1000 meshes and that’s the wrong way to do it. There are plenty of existing block world examples to look at. If you want to jump right into the deepest end of the pool then you might as well hold onto a life raft.

but is there a way to say batch a block mesh together 100000 times to create a block world?

Block worlds are not made of blocks.

You should really try some simpler projects first before attempting to do the “very hardest” kind of project.

People think block worlds are easier but they are actually the hardest place to start.

I understand that i don’t wanna do a project i just wanna know how they work and where i should start when im ready to take on a real project

What would be the best first project with jme?

I thought I answered this in another one of your threads but maybe it was just a similar one. Usually there are two or three of these running all the time.

My recommendation is always to start with a simple Asteroids clone. Everything you learn in that is 100% applicable to more complicated projects.

But if you just want to know how block worlds work there are already like two or three examples around on these forums for you to look at… including the block world plugin you can get right through the SDK plugins, source code and all.

Ohh that was me, sorry. So you would recommend be useing a block world plugin before making my own?

Look at other implementations first. Block worlds are quite complex.
My team needed something similar and we settled on something VERY primitive in comparison to minecraft & others.
Did I mention how complex they can be?

A quick google search for “jmonkey blockworld” gave me this result:

Google helped me find more sources you might be interested in (“voxel engine how to” did the trick here)
Let's Make a Voxel Engine (full tutorial website!)
Voxel Engine Part1 – Let’s display some cubes! | LearningGeek Blog (Unity3D Example, the theory behind it is the same though)

Thank you.

Ohh and(Sorry for going off subject) about how big is minecraft chunks? i seem to like the cubes framework but i wanna see what kind of performace i can get vs minecraft.

also when someone say’s they render a 25x25x25 world do they mean 25 blocks (cubed) or chunks (cubed)?

1 Like