It is currently Sat Aug 22, 2020 1:54 pm


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: some problems
PostPosted: Sat Feb 04, 2012 10:19 pm 

Joined: Sat Feb 04, 2012 7:10 pm
Posts: 19
first, HI

I'm new here, I have some difficulties to use Polyvox. First, after the make install PolyVoxCore and PolyVoxImpl folders (with headers) were installed in /usr/local/include/PolyVoxCore while all headers are expecting to find PolyVoxCore and PolyVoxImpl folders in /usr/local/include/. For now I just copied the files where they should be.
My second problem, I'm trying to add polyvox in ogre, so I started here : http://www.volumesoffun.com/polyvox/doc ... me_in_ogre my problem is my compiler asking me to add -std=c++0x but whith make/cmake I don't know how to do that

I'm using Ubuntu 11.10


hope my english isn't too much crappy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Sat Feb 04, 2012 11:39 pm 

Joined: Wed Jan 25, 2012 12:29 am
Posts: 18
I ran into the exact same problem.

Take a look at line 286 here to see my fix:

http://charlieb.hopto.org/gitweb/index.cgi?p=ogre_vox.git;a=blob;f=CMakeLists.txt

Also HI! and if my crappy basement server is down when you look, here's the line from my CMakeLists.txt:

Code:
 
if(UNIX)
     set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++0x")
     install(TARGETS OgreApp
                RUNTIME DESTINATION bin
                CONFIGURATIONS All)


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Sun Feb 05, 2012 10:00 pm 

Joined: Sat Feb 04, 2012 7:10 pm
Posts: 19
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.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Sun Feb 05, 2012 11:29 pm 

Joined: Sat Feb 04, 2012 7:10 pm
Posts: 19
done,
Image
my first screenie with PolyVox, not a sexy one I guess, as you can see I have some holes like the one near my pointer, but now I'm going to make my own framework and integer PolyVox.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Mon Feb 06, 2012 7:24 am 
User avatar

Joined: Wed Jan 26, 2011 3:20 pm
Posts: 203
Location: Germany
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)? :)


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Mon Feb 06, 2012 10:27 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
nicoo wrote:
I'm new here, I have some difficulties to use Polyvox. First, after the make install PolyVoxCore and PolyVoxImpl folders (with headers) were installed in /usr/local/include/PolyVoxCore while all headers are expecting to find PolyVoxCore and PolyVoxImpl folders in /usr/local/include/.


I think you are right... there may be an issue with the CMake file here. But I don't use Linux much so I'll let Matt check this.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Mon Feb 06, 2012 12:04 pm 
Developer
User avatar

Joined: Sun May 11, 2008 4:29 pm
Posts: 198
Location: UK
David Williams wrote:
nicoo wrote:
I'm new here, I have some difficulties to use Polyvox. First, after the make install PolyVoxCore and PolyVoxImpl folders (with headers) were installed in /usr/local/include/PolyVoxCore while all headers are expecting to find PolyVoxCore and PolyVoxImpl folders in /usr/local/include/.
I think you are right... there may be an issue with the CMake file here. But I don't use Linux much so I'll let Matt check this.

Ok, so I've looked into this and you're right. I can fix it so that we'd have /usr/include/PolyVoxCore/Vector.h etc. but the question then is what we do with PolyVoxImpl. Should we make this a sub-dir of PolyVoxCore (/usr/include/PolyVoxCore/PolyVoxImpl/MarchingCubesTables.h) or a directory alongside it (/usr/include/PolyVoxImpl). The first option might seem a bit neater since it keeps the implementation details hidden away but I seem to recall that when we discussed all this we opted to have PolyVoxImpl alongside PolyVoxCore (and this is reflected in the directory layout in Git). Thoughts?

Now that I think of it, weren't we also talking about the possibility of merging some stuff into PolyVoxCore? Was that PolyVoxImpl or PolyVoxUtil?

_________________
Matt Williams
Linux/CMake guy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Mon Feb 06, 2012 6:04 pm 

Joined: Sat Feb 04, 2012 7:10 pm
Posts: 19
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


Top
Offline Profile  
Reply with quote  
 Post subject: Re: some problems
PostPosted: Tue Feb 07, 2012 10:12 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
milliams wrote:
Ok, so I've looked into this and you're right. I can fix it so that we'd have /usr/include/PolyVoxCore/Vector.h etc. but the question then is what we do with PolyVoxImpl. Should we make this a sub-dir of PolyVoxCore (/usr/include/PolyVoxCore/PolyVoxImpl/MarchingCubesTables.h) or a directory alongside it (/usr/include/PolyVoxImpl). The first option might seem a bit neater since it keeps the implementation details hidden away but I seem to recall that when we discussed all this we opted to have PolyVoxImpl alongside PolyVoxCore (and this is reflected in the directory layout in Git). Thoughts?

Now that I think of it, weren't we also talking about the possibility of merging some stuff into PolyVoxCore? Was that PolyVoxImpl or PolyVoxUtil?


I'll have to get back to you on this... we discussed it for quite a while and it was suprisingly complex. We wanted applications to be able to build against both source tree and installed version (mostly for the examples) and also to work on Windows and Linux (where the 'order' or directories was different (PolyVoxCore/include vs include/PolyVoxCore).

The PolyVoxImpl is 'private' stuff that no one except the PolyVox headers should include. In that sense it should be safe to move it into PolyVoxCore. There's nothing useful in PolyVoxUtils at the moment but in principle we might wantt it in the future. I've also though about a 'PolyVoxContrib' for any community provided code which could go in PolyVox but which we don't want to officially support.

I'll have a think and maybe we can sort it for the next release.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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