-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|208|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Graphical Engines


 
Jayenkai
Created : 28 June 2016
 
System : Windows
Language : Blitz

Thousands of 3D Cubes



Just checked out Pakz's random 3D map thing, and as nice as it is, it's a bit of a shame that he's using nothing but raw cubes.
I found a neat trick to speed up cube-rendering when doing my JNKPlat 3D 06 game, and thought it probably a good idea to post about it.

By chucking the cubes into larger meshes, it speeds things up a fair bit.



Hopefully Pakz can make use of this information.

For further speeding up, you're better off creating your own mesh with only the visible sides being added to the mesh, but that's a whole lot of figuring out, and I'm far too lazy to do that


Note : Don't add too many meshes together, or your graphics card will have a whinge.
Milage may vary, depending on the graphics card..

 

Comments


Friday, 01 July 2016, 02:49
Pakz
Nice example!

Years ago I did try to put everything into larger meshes. Did not bother this time since the speed seemed fast enough and I forgot a lot of things about 3d.