ker wrote:
nicoo wrote:
thx, your piece of code solve the problem about
c++0x option. My code compil, I just want to notice that the code from
http://www.volumesoffun.com/polyvox/documentation/dokuwiki/rendering_a_volume_in_ogre don't work as excepted, I think it should be better to remove this page, I supose it's outdated.
for now I try to adapt the tutorial 1 from polyvox to ogre.
since I created that wiki page... would you mind telling me what did not work (and what you expected)?
you can't use
Code:
ogreMesh->beginUpdate(0);
{
/.../
}
ogreMesh->end();
if there is nothing, you have to adapt your code by moving everything from the update in
Code:
ogreMesh->begin("BaseWhiteNoLighting", Ogre::RenderOperation::OT_TRIANGLE_LIST);
{
// do nothing, this will be updated
// no! you have to do something it's the LAW!! ;)
}
ogreMesh->end();
and iirc I have some trouble with
Code:
PolyVox::Volume<Material8> volume(128,128,128);
I change this for, (and still iirc I didn't found any doc about Material8)
Code:
PolyVox::SimpleVolume<PolyVox::MaterialDensityPair44> volData(PolyVox::Region(PolyVox::Vector3DInt32(0,0,0), PolyVox::Vector3DInt32(200, 200, 200)));
I can't tell you more, because your page gave to me a good idea about the overall, then I prefered to use the lonely
tutorial of polyvox