Serializing various 3D Models to .irr??

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.
Post Reply
abhishekdey1985
Posts: 102
Joined: Sat Jan 17, 2009 4:33 am
Location: Pune
Contact:

Serializing various 3D Models to .irr??

Post by abhishekdey1985 »

I loaded a 3DS model from a folder. Then i saved a scene in .irr file. Now if i remove the model folder to some other directory and then reload the scene, the Irrlicht fails to read the scene from the disk indicating the path error. This implies that only the path of the mesh or the model is stored in .irr file. Is there any way to store the model in .irr itself?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

no
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
abhishekdey1985
Posts: 102
Joined: Sat Jan 17, 2009 4:33 am
Location: Pune
Contact:

Post by abhishekdey1985 »

AFAIK is Serialising is a technique of storing a current state of an object to a file. As models are also loaded to the memory the entire state of the object with the model shuld be stored. Is there any other way to acheive the same if not directly?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

abhishekdey1985 wrote:AFAIK is Serialising is a technique of storing a current state of an object to a file.
that's right, but not the mesh/model itself, just its states... ;)
well, there are mesh writers in 1.5 (Collada, stl and OBJ) but then you have the same problem: an irr file for the states and seperate mesh files...
the only way would be to write your own writer and loader that suits your needs... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Even if it was possible, storing the texture data inside the xml file wouldn't be advisable. If you want everything inside one file then it makes sense to just zip it.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
abhishekdey1985
Posts: 102
Joined: Sat Jan 17, 2009 4:33 am
Location: Pune
Contact:

Post by abhishekdey1985 »

can i use a password protected zip file for the storage. Consider that i dnt want to share the models.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

no
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
jontan6
Posts: 278
Joined: Fri Jun 13, 2008 5:29 pm

Re: Serializing various 3D Models to .irr??

Post by jontan6 »

abhishekdey1985 wrote:I loaded a 3DS model from a folder. Then i saved a scene in .irr file. Now if i remove the model folder to some other directory and then reload the scene, the Irrlicht fails to read the scene from the disk indicating the path error. This implies that only the path of the mesh or the model is stored in .irr file. Is there any way to store the model in .irr itself?
no. but if u save that as irrmesh then u cud remove the 3ds
abhishekdey1985
Posts: 102
Joined: Sat Jan 17, 2009 4:33 am
Location: Pune
Contact:

Post by abhishekdey1985 »

Does dat mean Irrlicht is capable of storing mesh in its own format? What about the textures?
Post Reply