• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# Level of detail on cubes

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

3 replies to this topic

### #1daedalic  Members

Posted 22 March 2011 - 09:20 PM

Does anyone have any ideas on how to implement seamless level of detail reduction on complex structures composed of cubes?

I've considered reducing each cube into a single vertex for the first LOD reduction step, but I would need an elegant way of connecting the normal cubes to the LODed verticies. And then I would need a way of getting the winding order right for the indices of these generated vertices. Even if I got all that right, there might be a better way of doing it.

Thanks for any help!

### #2PolyVox  Members

Posted 23 March 2011 - 01:16 PM

Personally I'd just take the approach of having a single LOD level for the whole world, because I'me pretty sure it would be hard to get the meshes to join up in a nice way. Of course, you want to make sure that your single mesh has as few triangles as possible, so don't just render it as a bunch of cubes. Personally I extract a surface from the voxels and then use a vertex collapse algorithm.

This is the best I've got at the moment:

### #3daedalic  Members

Posted 23 March 2011 - 08:32 PM

That would work, except for the fact that each cube is capable of having a different texture. And with the way things work right now, there would be few cubes that have the exact same texture pattern right next to each other. For example, say there are two cubes adjacent to each other which use the grass texture. Cube one and cube two would likely have different UV offsets which so they can use a different part of the larger grass texture. This helps break the monotony that would otherwise result.

### #4PolyVox  Members

Posted 24 March 2011 - 01:37 PM

Well I do also handle the case where there are two different adjacent textures, I just didn't show that in the image above. In this case I don't collapse that edge.

If there are two adjacent blocks showing different parts of the same texture, then surely the two parts of the texture do line up with each other? So you should still be able to remove the polygon edge between them?

Anyway, that's the only idea I have I'm afraid...

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.