ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrEdit
forum topic indicator Dont know how to load irredit file into irrlicht
person icon
MasterM
Registered User
Quote
2007-12-27 05:06:55

Hi all, i am a new comer so i don't know everything and i have a few questions:
How do i load a irr edit file?, do i load it like i load other mesh files or do i need to add more or is it loaded in another way?
Lets say i made a car on a terrain in irredit, will i be able to move the car on the terrain in irrlicht without moving the terrain? and English is not my first language so pleas excuse me for any errors, or if you did not understand a question i asked ask me freely.
Thanks in advance.

person icon
niko
Moderator
Quote
2007-12-28 13:34:29

Yes, of course, this is exactly what irrEdit is for. You can access and move all scene nodes freely in irrlicht.

person icon
MasterM
Registered User
Quote
2007-12-28 18:18:35

Thanks niko, how do i load the .IRR file into irrlicht i try'd smgr->loadScene("../meshes/myscene.irr");  but it wont load the .IRR file.
My folder has the irrlicht c++ folder, than i copy'd the meshes,textures,scenes out of irredit into the irrlicht c++ folder and load the scene into the irrlicht window but it tells me this:
embedded external image
🔎︎


I try'd almost everything i could think of but it just wont work  .
I even try'd the example(example 15) at the irrlicht website but that wont work
Can you show me step by step how to load the .irr file into irrlicht cause for some reason this wont work with me  :'(

person icon
niko
Moderator
Quote
2007-12-31 08:46:19

Hm, maybe you just need to change the working directory in your application? You can do this manually or use  irr::io::IFileSystem::changeWorkingDirectoryTo (http://irrlicht.sourceforge.net/docu/classirr_1_1io_1_1_i_file_system.html#a3)

person icon
spawn
Guest
Quote
2008-03-21 23:10:33

Hi all , same this here? Hope I didnt bump to old of a thread.
I added a bit of code to an existing example.

     video::IVideoDriver* driver = device->getVideoDriver();
     scene::ISceneManager* smgr = device->getSceneManager();
     
     //testing/////
     irr::io::IFileSystem::changeWorkingDirectoryTo(D:\game dev stuff\irrlicht\irrEdit-1.4alpha\scenes);
     
     smgr->loadScene("example.irr");
     ///////

my out put show :

NVIDIA GeForce FX 5500 nv4_disp.dll 6.14.10.9371
Loaded texture: ../../media/wall.bmp
Loaded texture: ../../media/t351sml.jpg
Loaded mesh: ../../media/sydney.md2
Loaded texture: ../../media/sydney.bmp
Loaded texture: ../../media/irrlichtlogoalpha2.tga

It skipped over the load scene like as though it was not there. No errors or any status? Why is that? I tried with and with out the setting of the dir.



person icon
JP
Registered User
Quote
2008-03-22 19:16:48

Don't change the working directory in your code, do it in irrEdit, it's one of the options.

If you change it in your code then it would most likely break when executed on a different computer as they may not have a D drive or the same folder structure as you.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |