TinyXML and new dot scene loader problem

Get answers to all your basic programming questions. No Ogre questions, please!
lucky7456969
Gremlin
Posts: 156
Joined: Tue Sep 18, 2012 3:43 am

TinyXML and new dot scene loader problem

Post by lucky7456969 »

Hi,
I just couldn't compile tinyXML for the new dot scene loader. My locale is BIG5.
Sorry, it might be off-topic here. The tinyXML error was something like "The encoding system will be converted to UNICODE and contents will not be saved"
Is there a pre-compiled tinyXML package? can't find it on the net (x86 and x64), just the source code.
BTW, the new dot scene loader also doesn't have a precompiled package, any ideas?
Thanks
Jack
lucky7456969
Gremlin
Posts: 156
Joined: Tue Sep 18, 2012 3:43 am

Re: TinyXML and new dot scene loader problem

Post by lucky7456969 »

Finally fixed everything.
But I can't seem to find a appropriate example for operating the new dot scene loader
Do I just do this
DotSceneLoader loader(...)
loader->parseDotScene();

How do I render this scene after the scene is loader, do I just use the mSceneMgr?
Thanks
Jack
lucky7456969
Gremlin
Posts: 156
Joined: Tue Sep 18, 2012 3:43 am

Re: TinyXML and new dot scene loader problem

Post by lucky7456969 »

One further question, when I export the scene using OGREMaxscene exporter, there is one .scene file generated, and many other scattered .mesh files.
How do I compile everything into one .scene file?
Thanks
Jack
lucky7456969
Gremlin
Posts: 156
Joined: Tue Sep 18, 2012 3:43 am

Re: TinyXML and new dot scene loader problem

Post by lucky7456969 »

It happens when I open the viewer. Here comes the log.
Thanks
Jack

Code: Select all

17:25:58: Mesh: Loading Ground.mesh.
17:25:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Ground.mesh in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 756)
17:25:59: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource D:\Garfield\Documents\3dsMax\export\Warehouse\Warehouse.scene.lua in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 756)
Update:
I noticed that I need to change the resources_d.cfg, but which one should I change?
thanks
Jack
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: TinyXML and new dot scene loader problem

Post by Mind Calamity »

What do you mean which one ? Change the one you're loading in your program.

If you meant which line - you don't need to change anything, you (probably) need to add a line in this format:

Code: Select all

FileSystem = "<path>"
Where <path> is the path (preferably relative) to the directory which contains the exported resources.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
lucky7456969
Gremlin
Posts: 156
Joined: Tue Sep 18, 2012 3:43 am

Re: TinyXML and new dot scene loader problem

Post by lucky7456969 »

Image

quite hariy
BTW, I've added the path of the model to the SDK resource_d.cfg.