Voxel rendering 10.6 million cubes at 120 fps :)
-
- Halfling
- Posts: 40
- Joined: Sat Jan 23, 2010 11:27 pm
- x 2
Voxel rendering 10.6 million cubes at 120 fps :)
So today I had an idea, I decided to become a competition to minecraft (yes I know...)
Well in 4 hours here is what I achieved (cosinus) :
few hours later (Perlin noise with caves) :
In this frame you have 16 x 16 x 128 x 18 x 18 cubes = 10.6 million cubes.
As you can see the frame rate is pretty decent !
It runs on a GTX 275.
Milestone :
- ?? Geometry Shaders ??
- Biome generation (1 day)
- Little guy to walk arround (2 hours)
- Ray casting and block placement / Destruction (1 day)
Then who knows ?!
Well in 4 hours here is what I achieved (cosinus) :
few hours later (Perlin noise with caves) :
In this frame you have 16 x 16 x 128 x 18 x 18 cubes = 10.6 million cubes.
As you can see the frame rate is pretty decent !
It runs on a GTX 275.
Milestone :
- ?? Geometry Shaders ??
- Biome generation (1 day)
- Little guy to walk arround (2 hours)
- Ray casting and block placement / Destruction (1 day)
Then who knows ?!
Last edited by yamashi on Mon Mar 28, 2011 11:19 pm, edited 2 times in total.
- _tommo_
- Gnoll
- Posts: 677
- Joined: Tue Sep 19, 2006 6:09 pm
- x 5
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Just try to add per-block lighting and textures and see where the framerate goes
-
- Halfling
- Posts: 40
- Joined: Sat Jan 23, 2010 11:27 pm
- x 2
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Remains at 120 fps
- JamesKilton
- Halfling
- Posts: 87
- Joined: Tue Jun 14, 2005 8:21 pm
- x 1
Re: Voxel rendering 10.6 million cubes at 120 fps :)
As long as you don't turn into a gigantic asshole like the FortressCraft guy (his attitude is doing way more harm to his project than the fact that it's a minecraft clone...), there's nothing at all wrong with copying a design for your own project (ignoring patent / copyright issues of course). In terms of programmer art, it's really hard to get simpler than the blocky voxel-world of Minecraft and outside of that voxel worlds open up a lot of possibilities that is prohibitively hard in polygon worlds (namely, geometry creation / destruction).
You going to use geometry shaders to make it less blocky?
You going to use geometry shaders to make it less blocky?
Ogre.rb Project Lead
-
- Halfling
- Posts: 40
- Joined: Sat Jan 23, 2010 11:27 pm
- x 2
Re: Voxel rendering 10.6 million cubes at 120 fps :)
I will be using GS to update chunks and compute visibility because right now the cooking of the mesh has to be asynchronous in order to get a decent frame rate...
EDIT : Added a screenshot with textures !
EDIT : Added a screenshot with textures !
-
- Halfling
- Posts: 45
- Joined: Tue Mar 16, 2010 2:49 pm
- x 3
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Wow, that looks pretty cool. Somehow I didn't expect OGRE to render that many cubes without a significant loss in FPS. That's pretty awesome.
The concept is pretty nice too
The concept is pretty nice too
I'm learning. Breezy <- Collection of game components I'm working on.
Wow this was helpful: Quatnerion and Rotation Primer
Wow this was helpful: Quatnerion and Rotation Primer
-
- Halfling
- Posts: 40
- Joined: Sat Jan 23, 2010 11:27 pm
- x 2
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Ogre can't render that many cubes, it's impossible for our current hardware...
It's the algorithm I made to cull away hidden faces, cubes and chunks that makes this possible !
I might explain how it works when I find time to do so
Let's say that the "cubes" that you see aren't cubes !
It's the algorithm I made to cull away hidden faces, cubes and chunks that makes this possible !
I might explain how it works when I find time to do so
Let's say that the "cubes" that you see aren't cubes !
-
- Halfling
- Posts: 45
- Joined: Tue Mar 16, 2010 2:49 pm
- x 3
Re: Voxel rendering 10.6 million cubes at 120 fps :)
So what you're saying is that the only faces rendered are the ones you see? All of the others ones are removed?yamashi wrote:Ogre can't render that many cubes, it's impossible for our current hardware...
It's the algorithm I made to cull away hidden faces, cubes and chunks that makes this possible !
I might explain how it works when I find time to do so
Let's say that the "cubes" that you see aren't cubes !
That's pretty cool, I would love to learn how you did this
I'm learning. Breezy <- Collection of game components I'm working on.
Wow this was helpful: Quatnerion and Rotation Primer
Wow this was helpful: Quatnerion and Rotation Primer
- _tommo_
- Gnoll
- Posts: 677
- Joined: Tue Sep 19, 2006 6:09 pm
- x 5
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Minecraft also does that, you just have to tesselate only the faces that are in the middle between an empty and an occupied block.
Rendering the actual cubes would be just crazy
I'm doing this myself for a simple project of mine:
The screenshot is old, now it runs at ~340 fps with culling on my 8600 GT, but it is not Ogre but plain OpenGL.
Rendering the actual cubes would be just crazy
I'm doing this myself for a simple project of mine:
The screenshot is old, now it runs at ~340 fps with culling on my 8600 GT, but it is not Ogre but plain OpenGL.
- Praetorian
- Google Summer of Code Student
- Posts: 171
- Joined: Fri Aug 10, 2007 10:37 pm
- Location: WA - USA
- x 5
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Haha, I've been playing with something like this on and off as well (this is an old shot, I have simple terrain gen and such working now):
My Google summer of code 2011 topic: Unit Testing Framework
My Google summer of code thread
My Google summer of code wiki page
My Google summer of code thread
My Google summer of code wiki page
-
- Gnome
- Posts: 389
- Joined: Mon Jul 26, 2010 10:53 pm
- x 22
Re: Voxel rendering 10.6 million cubes at 120 fps :)
I'm doing a minecraft game also...
Some recent screenshots. It's not doing "cave" lighting yet (AO), working on that, soon.
http://imgur.com/a/SfEhR#G1ekM
Earlier I was doing 1078x1078x256 dimension for terrain. I'm running total 512x512x256 currently to work on things. Maybe eventually I will up the dimensions again. Anyways, I'm not really going to do a carbon copy of Minecraft. It's more DF than MC. Also have my own things planned.
Also some videos:
http://www.youtube.com/user/Beyznd?feat ... ke_KJIk5bs
follow my blog:
http://fdastero.tumblr.com/
twitter:
http://twitter.com/fdastero
Some recent screenshots. It's not doing "cave" lighting yet (AO), working on that, soon.
http://imgur.com/a/SfEhR#G1ekM
Earlier I was doing 1078x1078x256 dimension for terrain. I'm running total 512x512x256 currently to work on things. Maybe eventually I will up the dimensions again. Anyways, I'm not really going to do a carbon copy of Minecraft. It's more DF than MC. Also have my own things planned.
Also some videos:
http://www.youtube.com/user/Beyznd?feat ... ke_KJIk5bs
follow my blog:
http://fdastero.tumblr.com/
twitter:
http://twitter.com/fdastero
- _tommo_
- Gnoll
- Posts: 677
- Joined: Tue Sep 19, 2006 6:09 pm
- x 5
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Is there someone that ISN'T making a minecraft clone?
- spacegaier
- OGRE Team Member
- Posts: 4304
- Joined: Mon Feb 04, 2008 2:02 pm
- Location: Germany
- x 135
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
[OT]
ME ! If any, then I am currently cloning "Freelancer"...
[/OT]
ME ! If any, then I am currently cloning "Freelancer"...
[/OT]
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
-
- Halfling
- Posts: 40
- Joined: Sat Jan 23, 2010 11:27 pm
- x 2
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Update !
I have been doing some testing, I multithreaded the whole thing and now I get about 200 FPS with 20 x 20 chunks : 13.1 million cubes.
I will probably be adding lighting this afternoon !
I have been doing some testing, I multithreaded the whole thing and now I get about 200 FPS with 20 x 20 chunks : 13.1 million cubes.
I will probably be adding lighting this afternoon !
- Mikachu
- Gnoll
- Posts: 603
- Joined: Thu Jul 28, 2005 4:11 pm
- Location: Nice, France
- x 35
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Cool!_tommo_ wrote:Is there someone that ISN'T making a minecraft clone?
It means less people trying to create a World of Warcraft clone...
OgreProcedural - Procedural Geometry for Ogre3D
-
- Greenskin
- Posts: 100
- Joined: Mon Aug 30, 2010 9:35 am
- x 11
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Just a question, do you use static geometry or just 10.6 million of Ogre Nodes?
Also, has your project any lighting?
Also, has your project any lighting?
- betajaen
- OGRE Moderator
- Posts: 3447
- Joined: Mon Jul 18, 2005 4:15 pm
- Location: Wales, UK
- x 58
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
_tommo_ wrote:Is there someone that ISN'T making a minecraft clone?
Well look at that.
- Herb
- Orc
- Posts: 412
- Joined: Thu Jun 04, 2009 3:21 am
- Location: Kalamazoo,MI
- x 38
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Is anyone willing to open up some source for this voxel rendering? I'm curious on how some of you are implementing this within Ogre.
- _tommo_
- Gnoll
- Posts: 677
- Joined: Tue Sep 19, 2006 6:09 pm
- x 5
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
My code is open source but unfortunately it is not Ogre-based
But it should be easy to use "ManualObject" instead of "Mesh"
But it should be easy to use "ManualObject" instead of "Mesh"
- betajaen
- OGRE Moderator
- Posts: 3447
- Joined: Mon Jul 18, 2005 4:15 pm
- Location: Wales, UK
- x 58
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Mine isn't voxels. It's just 5 sides of a cube rendered towards the camera. It isn't even a Minecraft clone, it was intended to be a blocky version of Virus.
I did pinch the textures from a Minecraft texture pack though.
I did pinch the textures from a Minecraft texture pack though.
- PolyVox
- OGRE Contributor
- Posts: 1316
- Joined: Tue Nov 21, 2006 11:28 am
- Location: Groningen, The Netherlands
- x 18
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
I have an open source library available here: http://www.thermite3d.orgHerb wrote:Is anyone willing to open up some source for this voxel rendering? I'm curious on how some of you are implementing this within Ogre.
The library is called PolyVox, and the engine which combines it with Ogre is called Thermite3D. The main features of PolyVox are:
- Storage of very large (paged) volumes
- Surface extraction of both smooth and Minecraft style terrain,
- Level of detail,
- Ambient occlusion,
- A* pathfinding,
- Picking
- Various other things.
It's written in C++ and is under the zlib license.
Last edited by PolyVox on Tue Mar 29, 2011 8:23 pm, edited 1 time in total.
-
- Gnome
- Posts: 389
- Joined: Mon Jul 26, 2010 10:53 pm
- x 22
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Hey I use PolyVox.
My source is not opened *right* now... sorry and I don't think it's a good idea to use what I'm doing as an example either.
It's really easy to implement with PolyVox though, I'm also willing to share insights on implementation, lighting, rendering, etc.
My source is not opened *right* now... sorry and I don't think it's a good idea to use what I'm doing as an example either.
It's really easy to implement with PolyVox though, I'm also willing to share insights on implementation, lighting, rendering, etc.
- Lee04
- Minaton
- Posts: 945
- Joined: Mon Jul 05, 2004 4:06 pm
- Location: Sweden
- x 1
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Anyone looking for the "next" thing in blocky world games, contact me I have some nifty ideas that will transform the blocky world to the next level.
Ph.D. student in game development
-
- Halfling
- Posts: 54
- Joined: Mon Oct 26, 2009 7:40 pm
- Location: Switzerland
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
Waiting for a "smoothcraft" with a smooth terrain and detailled objects
Looks great what you did so far
Looks great what you did so far
- PolyVox
- OGRE Contributor
- Posts: 1316
- Joined: Tue Nov 21, 2006 11:28 am
- Location: Groningen, The Netherlands
- x 18
- Contact:
Re: Voxel rendering 10.6 million cubes at 120 fps :)
I haven't added any objects (though you can insert any Ogre mesh) but smooth voxel terrain is not difficult. See http://www.ogre3d.org/forums/viewtopic. ... 25#p364552videl wrote:Waiting for a "smoothcraft" with a smooth terrain and detailled objects
Of course building a game from it is more work...