The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
DarthCoder
Gnoblar
Posts: 23 Joined: Mon Jun 03, 2013 7:16 pm
Quote
0
login to like this post
Post
by DarthCoder » Wed Aug 21, 2013 4:09 pm
I'm trying to convert a .mesh.xml file with manual LODs but every time I try to run the XML converter on it the converter crashes. I've tried running on the exact same XML file, just removing the <levelofdetail> element and it always works then. I attached the .mesh.xml file, is this a bug in the converter? Or something wrong with my XML file? The part that I change is here:
Code: Select all
<levelofdetail numLevels="2" manual="true">
<lodmanual fromdepthsquared="100" meshname="assets/Pingy_LOD_1.mesh"/>
<lodmanual fromdepthsquared="400" meshname="assets/Pingy_LOD_2.mesh"/>
</levelofdetail>
masterfalcon
OGRE Team Member
Posts: 4270 Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:
Quote
0
login to like this post
Post
by masterfalcon » Wed Aug 21, 2013 4:12 pm
It could be a bug. Sounds familiar too. What version is this with? It may have been fixed for 1.9.
DarthCoder
Gnoblar
Posts: 23 Joined: Mon Jun 03, 2013 7:16 pm
Quote
0
login to like this post
Post
by DarthCoder » Thu Aug 22, 2013 2:30 pm
It's the latest version: 1.9 RC1. I haven't tried generating automatic LOD yet because I only really plan to use auto generated LODs on rocks and other small environment details.
masterfalcon
OGRE Team Member
Posts: 4270 Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:
Quote
0
login to like this post
Post
by masterfalcon » Thu Aug 22, 2013 5:16 pm
Could you file a bug on this? And attach a xml file that we can test with. Thanks!
DarthCoder
Gnoblar
Posts: 23 Joined: Mon Jun 03, 2013 7:16 pm
Quote
0
login to like this post
Post
by DarthCoder » Thu Aug 22, 2013 5:47 pm
Sure, I'll make a test case file. Where do I go to file a bug report?
masterfalcon
OGRE Team Member
Posts: 4270 Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:
Quote
0
login to like this post
Post
by masterfalcon » Thu Aug 22, 2013 5:48 pm
masterfalcon
OGRE Team Member
Posts: 4270 Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:
Quote
1
login to like this post
Post
by masterfalcon » Fri Aug 23, 2013 5:06 am
That's ok. I've downloaded the files.
There are at least a couple issues.
1. The numlevels attribute of levelofdetail should be all lowercase.
2. The levels should be 3, don't forget that the regular full detail version is also a level.
DarthCoder
Gnoblar
Posts: 23 Joined: Mon Jun 03, 2013 7:16 pm
Quote
0
login to like this post
Post
by DarthCoder » Fri Aug 23, 2013 3:13 pm
Thank you SO much. It works perfectly now. I can't believe I forgot to check capitalization
masterfalcon
OGRE Team Member
Posts: 4270 Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:
Quote
1
login to like this post
Post
by masterfalcon » Fri Aug 23, 2013 4:08 pm
No problem! Glad it's working for you now.