It is currently Tue Dec 10, 2019 12:03 pm


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Castle Story, give this up coming voxel using game a look.
PostPosted: Thu Jan 05, 2012 7:36 am 

Joined: Sat Dec 18, 2010 2:58 am
Posts: 41
http://www.youtube.com/watch?v=NwZdXRPeYrc

A lot of possibilities for really cool gameplay.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Castle Story, give this up coming voxel using game a loo
PostPosted: Thu Jan 05, 2012 9:14 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
This looks really cool... I particularly like the way their 'cubic' terrain also has some angles in it.

The use of transparent block as markers for where blocks will be placed reminds me of an idea I had myself. I was thinking about an RTS game where you place a building and initially the whole building has that kind of transparency effect. Then the workers have to collect the blocks to actually build it. Plus it could then be damaged and reparied or something.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Castle Story, give this up coming voxel using game a loo
PostPosted: Sun Jan 08, 2012 2:45 am 

Joined: Tue Mar 08, 2011 3:57 am
Posts: 46
Wow that's a really nice start to their game. I can see it has a lot of potential.

David - I'd love to hear from you about how they may be doing some of the things they are. I am specifically interested in how I could use PolyVox to perform a surface extraction where certain parts of the ground is smooth whilst blocky in others.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Castle Story, give this up coming voxel using game a loo
PostPosted: Sun Jan 08, 2012 7:36 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I'm not exactly sure but I have some ideas. Ignoring the smooth parts, the shape of their terrain looks similar to Marching Cubes applied to binary values (i.e. without density values). You can see similar terrain in one of ker's images:

Image

However, it's not exactly the same so it's probably some variation of this algorithm. To do this in PolyVox I think you would want to write a custom surface extractor.

As for the smoothing they may simply be taking the mesh and splitting it into those triangles which face roughly up and those that don't. Then they could apply a mesh smoothing filter to the up-facing part (whilst locking the position of the edge vertices to avoid tears). In fact they probably don't even need split the mesh - just constrain the ability of vertices to move based on where their normals point. At any rate you would want some custom smoothing code.

But there might be other approches (smoothing the volume data rather than the mesh?) so it would need some experimentation...


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Castle Story, give this up coming voxel using game a loo
PostPosted: Sun Jan 08, 2012 10:15 pm 

Joined: Tue Mar 08, 2011 3:57 am
Posts: 46
Hrm. Doesn't PolyVox have a smoothing surface extractor already? I thought it was part of the density value system.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Castle Story, give this up coming voxel using game a loo
PostPosted: Mon Jan 09, 2012 1:41 am 
User avatar

Joined: Tue Feb 22, 2011 8:04 am
Posts: 101
Quote:
Hrm. Doesn't PolyVox have a smoothing surface extractor already?


Yes it does, I use it in my procedural terrain engine.

I think they are mentioning the fact that the edges are cubed, and it appears as terrain is mined it is dug out in cubes. Its possible they are applying some geometry shading to the top layer, or storing the top layer as different "materials" in order to render them differently.

Either way I'm definitely going to be watching the progress on this one.

_________________
--Real Programmers use a magnetized needle and a steady hand.
--xkcd--


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Castle Story, give this up coming voxel using game a loo
PostPosted: Mon Jan 09, 2012 5:16 am 

Joined: Tue Mar 08, 2011 3:57 am
Posts: 46
Hrm. We really need to sort this kind of stuff out in regards to the PolyVox lib - Its such a great lib, but I feel like it falls short in that final stretch on outputting a renderable scene.
GM_Riscvul - How does yours look so far? Any screenshots?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Castle Story, give this up coming voxel using game a loo
PostPosted: Mon Jan 09, 2012 3:59 pm 
User avatar

Joined: Tue Feb 22, 2011 8:04 am
Posts: 101
Quote:
GM_Riscvul - How does yours look so far? Any screenshots?


I have posted some screenshots in the Showcase forum. You are welcome to take a look and follow the links to the repository. Its open-source.

I'm sure polyvox could use some polishing and some extra features would be nice, but I thought it does a fine job of creating a mesh. I don't think it would be difficult to implement logic to tweak the output. I wish there were some good optimizations, or possibly a way to thread operations in order to improve the speed of extraction.

Perhaps I am being greedy. :P

_________________
--Real Programmers use a magnetized needle and a steady hand.
--xkcd--


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net