Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 24 Nov 2002
Offline Last Active Feb 02 2014 01:53 AM

#4996797 gaussian curvature on a 3D mesh

Posted by PolyVox on 03 November 2012 - 01:24 AM

MeshLab appears to have support for mean curvature: http://meshlabstuff.blogspot.nl/2010/03/mean-curvature-cavity-map-zbrush-and.html

Not sure how similar that is but it's open source and may be a starting point...

#4951925 unique voxel world idea, with a twist

Posted by PolyVox on 22 June 2012 - 11:16 PM

Sounds something like this? http://www.ericrisser.com/stuff/Rendering3DVolumesUsingPerPixelDisplacementMapping.pdf

Also looak at True Iposters in GPU Gems 3:http://http.developer.nvidia.com/GPUGems3/gpugems3_ch21.html

#4937310 Voxel "chunk" storage

Posted by PolyVox on 04 May 2012 - 01:30 AM

In PolyVox we seperate the storage of the volume data from the way surface extraction is perfomed. That is, the volume may or may not consist of a set of blocks, and even if it does then the size of these blocks may or may not be the same as the size of the extracted meshes. For example you might decide that 32x32x32 is the ideal size for storing blocks in memory, but 64x64x64 is better for the rendered meshes. Or maybe that you want the rendered blocks to be 16x16x128 but you don't want the memory to be broken into blocks at all (perhaps you'd rather use an octree?).

So basically we focus on just providing fast volume data structures which are independant of the algorithm which is executed on them. Surface extraction is just one task you need to perform, and raycasting (for example) can have a different set of characteristics.

That doesn't exactly answer your question... but maybe it's something to think about.

#4932091 Voxel Software Rendering Feasibility

Posted by PolyVox on 17 April 2012 - 05:09 AM

Ah, I recognise it now :-) Because of the cars I though it was a museum or something. They must have been added seperatly.

#4931664 Voxel Software Rendering Feasibility

Posted by PolyVox on 16 April 2012 - 02:18 AM

you can check out some voxel renderings in my gallery: http://twitpic.com/photos/michael_hpp , sometimes I state which version I've used, I think the bottom most picture with the animated imp was CPU.

Nice pictures! Kind of off topic but where is this scene from: http://twitpic.com/8iohd5/full Is it a freely available test scene or something you aquired privately?

#4923024 a normals problem with voxels

Posted by PolyVox on 18 March 2012 - 06:21 AM

so the ddx and ddy checks the adjacent pixes, and it kinda makes a fake triangle of pixels to find where the perpendicular value to all 3 is. Right?

Yeah, I guess you could think of it like that.

#4922603 a normals problem with voxels

Posted by PolyVox on 16 March 2012 - 09:38 AM

Yep, you can do it :-) However, be aware that I have heard that there can be problems perhaps on the edges of polygons. Maybe the ddx/ddy is not well defined here... I forget. I've never seen an issue in practice though.

#4922531 a normals problem with voxels

Posted by PolyVox on 16 March 2012 - 03:22 AM

In my voxel terrain engine I avoid storing normals at all, and instead compute them in the pixel shader. This lets you do the kind of sharing you describe and also reduces the size of each vertex. Have a read here: http://www.volumesoffun.com/polyvox/documentation/dokuwiki/computing_normals_in_a_pixel_shader

#4881918 Graphics engines and middleware.

Posted by PolyVox on 08 November 2011 - 05:24 PM

I would also be interested in knowing about any lightweight open-source graphics engines. I'm not so interested in full game engines as there are lots of those, and I'd rather handle integration myself. Some ones that I've found include:

Visualization Library (Ignore 'visualisation' in the name - it actually appears quite low level)
Linderdaum (more restrictive license)

#4878989 basic voxel terrain rendering

Posted by PolyVox on 31 October 2011 - 02:20 PM

I wrote a book article about voxel terrain which you can read on Google Books here: http://books.google....epage&q&f=false

I also have an open source voxel terrain library which you can take a look at: http://www.volumesof...ress/?page_id=8

#4863054 Models for exercises

Posted by PolyVox on 18 September 2011 - 09:25 AM

Does any body know of any complete scenes which are available for use by the research community? As shown above there are various resources for individual models but a complete scene is more than that. Perhaps a complete level from a real game, but in an easily accessible format? Ideally this would include material, lights, etc.

I guess the modding community has produced plenty of free maps for various games so maybe it's possible to get those in a useful format?

#4857458 Template syntax question

Posted by PolyVox on 04 September 2011 - 06:43 AM

For the benefit of anyone else who comes across this thread it's worth pointing out that I have run into some difficulties with the above approach. My real world example is obviously more complex that what I showed above, but I have applied the same principles and got it to compile successfully on both GCC and VS2010. However, I have since discovered that it causes problems with VS2008.

In particular, with VS2008 is causes an internal compiler error but only if compiling with the /Gm (Enable Minimal Rebuild) compiler option. Without this option it appears to work fine, but as VS2008 projects have this on by default it can be a problem.

I think for now I'll stick with preprocessor defines to use the right line for each platform, but I may revisit this in the future.

#4842626 Template syntax question

Posted by PolyVox on 30 July 2011 - 02:30 PM

Hi guys,

I know there are some template wizards around here so hopefully someone can help :-) I have a simple code example which I can't get to compile on both VS2010 and GCC. I can make simple changes to allow it to compile on either platform, but I haven't found the one correct solution which works on both. See the two commented lines in the code below:

template <typename Type>
class Base
	template <typename NestedType>
	class Nested

template <typename Type>
class Derived : public Base<Type>
	class Nested : public Base<Type>::Nested< int > //This line works on VS2010
	class Nested : public Base<Type>::template Nested< int > //This line works on GCC

int main(int argc, char** argv)
	Derived<int>::Nested nested;
	return 0;

In both cases, the line which works on one platform does not work on the other. If I get it the wrong way round the VS2010 error is:

error C2955: 'Base<Type>::Nested' : use of class template requires template argument list

And the GCC error is:

main.cpp:17: error: non-template ‘Nested’ used as template
main.cpp:17: note: use ‘Base<Type>::template Nested’ to indicate that it is a template

Any ideas what the correct syntax is?!


#4799082 Latest programming languages

Posted by PolyVox on 16 April 2011 - 03:52 AM

I've often thought that Falcon look interesting, but haven't tried it myself yet. From their webpage:

Falcon is an Open Source, simple, fast and powerful programming language, easy to learn and to feel comfortable with, and a scripting engine ready to empower mission-critical multithreaded applications.

Falcon provides six integrated programming paradigms: procedural, object oriented, prototype oriented, functional, tabular and message oriented. And you don't have to master all of them; you just need to pick the ingredients you prefer, and let the code to follow your inspiration.

#4789607 Level of detail on cubes

Posted by PolyVox on 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:

Posted ImagePosted Image

More information in this thread: http://www.thermite3d.org/phpBB3/viewtopic.php?f=2&t=106