.irr scene not loading properly

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.

.irr scene not loading properly

Postby aburt11 » Sun Jun 17, 2012 3:11 am

hey guys im trying to load a .irr scene project that i created but when i do it only shows the inbuit spreites for the trees and nothign else.
the output in the window says the mesh and textures couldnt be loaded. so how can i make the load paths relative?

Image
also, is the .irr scene actually worth using or are there better formats which will save textures and mesh easily e.g.( one file for textures, one file for mesh)
aburt11
 
Posts: 66
Joined: Sun Jan 15, 2012 10:27 am

Re: .irr scene not loading properly

Postby randomMesh » Sun Jun 17, 2012 11:14 am

You can open the irr file with an XML editor and edit the paths by hand.
"In fact, nearly every sequence of punctuation is used for something in Perl. So, if you get writer’s block, just let the cat walk across the keyboard, and debug the result."

Katastrophe - A free, open source flocking boids simulation
User avatar
randomMesh
 
Posts: 1138
Joined: Fri Dec 29, 2006 12:04 am

Re: .irr scene not loading properly

Postby aburt11 » Sun Jun 17, 2012 11:12 pm

still doesnt work, as you can see, the mesh couldn't be loaded? any other formats and level editors that are any good. or should i roll my own?
aburt11
 
Posts: 66
Joined: Sun Jan 15, 2012 10:27 am

Re: .irr scene not loading properly

Postby CuteAlien » Mon Jun 18, 2012 10:03 am

Sorry, not much experience with irrEdit - generally you can get probably get better answers about irrEdit in their own forum (on ambiera.com).
And well, as you asked - so far I tended to use own editors in my projects. I hate not having the rights to modify the source in my projects for such an important part of a project (that's why I use an opensource engine after all...). But you can also look around the forum (projects section) - there's a few people out there who have started/wrote editors and maybe one of them is useful for you.
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5357
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: .irr scene not loading properly

Postby rubenwardy » Mon Jun 18, 2012 11:59 am

CopperCube Automatically exports the meshes to the .irr files folder/'name'_meshes (Coppercube is irrEdit)

In coppercube, move all the textures (Including the prehab's textures) to the folder you want it, and re link (using the texture panel, import the texture and link with material tab)

Make sure you set the right run dir in export - 'working directory'

Irr is more efficent on loading than models, because it is just a format for storing scene node data
http://www.multa.bugs3.com/

str = "Ruben is a nerd";
cout << str_replace("nerd", " computer genius", str) << endl;
rubenwardy
 
Posts: 70
Joined: Mon Mar 05, 2012 4:51 pm
Location: SW England

Re: .irr scene not loading properly

Postby Virion » Wed Jun 20, 2012 2:58 am

the paths are incorrect which is why your application is not able to find the assets. try not to use relative path ( ../../../ ) if possible.
User avatar
Virion
 
Posts: 2102
Joined: Mon Dec 18, 2006 5:04 am
Location: Malaysia

Re: .irr scene not loading properly

Postby Brainsaw » Wed Jun 20, 2012 4:17 am

There are two possibilities:

- the execution dir of your application is wrong (at least Code::Blocks sets the execution path to the Irrlicht path)
- the working dir in Irredit is set to a wrong path, so that the creation of the relative paths can not work correctly
User avatar
Brainsaw
 
Posts: 1038
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest