Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Minecraft/voxel - performance  (Read 2976 times)
0 Members and 1 Guest are viewing this topic.
Offline Archibald

Junior Member


Projects: 1



« Posted 2012-03-27 22:18:45 »

This question as about modern hardware capabilities and voxel algorithms.

I neved did voxels, also I was doing 3D almost 10 years ago. I look at Minecraft and I wonder. How it is done? I read a tiny bit about voxels and they say you should somehow exclude the interior and leave only the outer layer, but when I see these interesting errors in Minecraft (like seeing all caves below me) I get an impression they simply render all cubes that are within the "cone of view" of the player, without any exclusion of what is behind what... But that would mean at least 100x100x100 cubes (which is 1 million, and there is minimum 7 vertices per cube). Can you really push 7 million vertices on modern hardware (with texture coords and colour)? Or have they reduced it first via algorithms?
Offline Damocles
« Reply #1 - Posted 2012-03-27 22:23:13 »

The first, and most important optimization:
Any Block wich is encloded by 6 solid (non transparent) blocks does not need to be rendered.
(-> the 6 sides of a cube)
As it can never be seen

This cuts down the number of voxels by about 90% already.

Then of course dont render Polygons / sides wich are attached to another solid block.
(wich implies the above naturally)

the 100x100x100 block chunk in a perfect scenario can be rendered with these simple optimizations with just
2*100*100*3 Triangles -> 60000 tris

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (26 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (19 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (51 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (40 views)
2014-07-16 23:30:00

Cero (56 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!