It is currently Sat Aug 22, 2020 4:27 am


All times are UTC




Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Getting polyvox working in visual studio 2010
PostPosted: Sun Jul 20, 2014 12:16 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I don't see exactly what is wrong - can you identify which line is the problem? Perhaps remove other lines and even simplify the offending line if necessary? Just focus on the first error message.

Also be aware that the Ogre example code may not be up-to-date (with respect to PolyVox or Ogre), so you may need to make adjustments if things have changed.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Getting polyvox working in visual studio 2010
PostPosted: Mon Jul 21, 2014 2:05 am 

Joined: Mon Sep 24, 2012 2:48 am
Posts: 12
The problem is with the following two lines:

for(vector<PolyVox::PositionMaterialNormal>::const_iterator it = mesh.getVertices().begin(); it != mesh.getVertices().end(); ++it)
and
for(vector<uint32_t>::const_iterator it = mesh.getIndices().begin(); it != mesh.getIndices().end(); ++it)

When I mouseover mesh it says there is no suitable user defined conversion, and when i mouseover != it says that no operator matches these operands.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Getting polyvox working in visual studio 2010
PostPosted: Mon Jul 21, 2014 10:54 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I'm sorry, I don't see what is wrong here. I think you'll have to break it down further to debug. For example, you say this line is the problem:

Code:
for(vector<PositionMaterialNormal>::const_iterator it = mesh.getVertices().begin(); it != mesh.getVertices().end(); ++it)


So what if you remove all the for loop and just try compiling this line:

Code:
vector<PositionMaterialNormal>::const_iterator it = mesh.getVertices().begin();


Or if that doesn't work can you break it down further:

Code:
vector<PositionMaterialNormal> vertices = mesh.getVertices(); // <-- Could also try making a reference here?
vector<PositionMaterialNormal>::iterator = vertices.begin(); // Try with iterator vs. const_iterator?


Can you see where exactly it is failing? Otherwise could you restructure the loop so that it uses indices into the vector instead of iterators?

It could also be that the code is out-of-date with regard to PolyVox/Ogre, to be honest I don't remember exactly how the interface looks so you might have to dive into the PolyVox source code.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

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