Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

Tutorial should have a notice
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=461
Page 1 of 1

Author:  sesopenko [ Sun Nov 25, 2012 6:29 pm ]
Post subject:  Tutorial should have a notice

The tutorial on your site should at least have a notice that the code's out of date.

The constructor syntax for CubicSurfaceExtractorWithNormals doesn't use the new style of
Code:
CubicSurfaceExtractorWithNormals<SimpleVolume<MaterialDensityPair44>>
            surfaceExtractor(...)

Also this portion of the sphere creation code doesn't work:
Code:
uint8_t uDensity = MaterialDensityPair44::getMaxDensity();

                                        //Get the old voxel
                                        MaterialDensityPair44 voxel = volData.getVoxelAt(x,y,z);

                                        //Modify the density
                                        voxel.setDensity(uDensity);

                                        //Wrte the voxel value into the volume
                                        volData.setVoxelAt(x, y, z, voxel);


It instead needs to be changed to:
Code:
volData->setVoxelAt(x, y, z, MaterialDensityPair44(1,MaterialDensityPair44::getMaxDensity()));

I have lost nearly 2 days of my time sorting this out : \

Author:  milliams [ Sun Nov 25, 2012 6:54 pm ]
Post subject:  Re: Tutorial should have a notice

I just replied to you on reddit also. The links from the documentation page were just outdated and pointing at the old version of the docs. I've just corrected them to point to the 0.2 version. The tutorial there should definitely work with the released version 0.2. If that doesn't work then it's a bug so please let us know.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/