How to work with scene created with coppercube irredit

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
insomniac1
Posts: 21
Joined: Wed Jan 10, 2018 8:45 pm

How to work with scene created with coppercube irredit

Post by insomniac1 »

My question is when i create a scene with irredit export it as .irr how do i work with the file?
Inside the .irr file created with irredit what is this <node type="unsupported"> I think it should be terrain?
I load my file the same way as example 15 but the only thing that shows is the test cube.
How do I load the trees, grass etc?

Edit: When I open the .irr file and change <node type="unsupported"> to <node type="animatedMesh"> it loads the scene but as you can see does not load correctly. Image

The console outputs
Loaded mesh: data/maps/1.irr.meshes/1.irrmesh
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/~editor_defaults/default_skybox2.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/~editor_defaults/default_skybox1.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/~editor_defaults/default_skybox0.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/~editor_defaults/default_skybox3.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/~editor_defaults/default_skyboxup.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/~editor_defaults/default_skyboxdn.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/grass.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/ground_brown.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/wall_concrete.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/grasspatch.png
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/grasspatch2.png
Loaded mesh: data/maps/1.irr.meshes/2.irrmesh
Could not load mesh, because file could not be opened: : ##tree1
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/trunk.jpg
Loaded texture: C:/Users/insom/OneDrive/Desktop/sdl_2 and irrlect 3d++/textures/leaves.png
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Loaded mesh: data/maps/1.irr.meshes/3.irrmesh
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Loaded mesh: data/maps/1.irr.meshes/4.irrmesh
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Loaded mesh: data/maps/1.irr.meshes/5.irrmesh
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
Could not load mesh, because file could not be opened: : ##tree1
[09:48:27] node nameScene
[09:48:27] node name
[09:48:27] node namecubeMesh1
[09:48:27] node namestartup skybox
[09:48:27] node name
[09:48:27] node name
[09:48:27] node nametree10
[09:48:27] node nametree12
[09:48:27] node nametree13
[09:48:27] node nametree37
[09:48:27] node nametree40
[09:48:27] node nametree44
[09:48:27] node nametree49
[09:48:27] node nametree60
[09:48:27] node nametree70
[09:48:27] node nametree74
[09:48:27] node nametree77
[09:48:27] node nametree81
[09:48:27] node name
[09:48:27] node nametree2
[09:48:27] node nametree3
[09:48:27] node nametree14
[09:48:27] node nametree15
[09:48:27] node nametree21
[09:48:27] node nametree23
[09:48:27] node nametree24
[09:48:27] node nametree30
[09:48:27] node nametree36
[09:48:27] node nametree38
[09:48:27] node nametree39
[09:48:27] node nametree43
[09:48:27] node nametree50
[09:48:27] node nametree51
[09:48:27] node nametree53
[09:48:27] node nametree57
[09:48:27] node nametree58
[09:48:27] node nametree59
[09:48:27] node nametree61
[09:48:27] node nametree66
[09:48:27] node nametree67
[09:48:27] node nametree72
[09:48:27] node nametree79
[09:48:27] node nametree83
[09:48:27] node nametree85
[09:48:27] node nametree87
[09:48:27] node nametree89
[09:48:27] node name
[09:48:27] node nametree5
[09:48:27] node nametree6
[09:48:27] node nametree8
[09:48:27] node nametree9
[09:48:27] node nametree11
[09:48:27] node nametree17
[09:48:27] node nametree18
[09:48:27] node nametree20
[09:48:27] node nametree22
[09:48:27] node nametree25
[09:48:27] node nametree26
[09:48:27] node nametree27
[09:48:27] node nametree31
[09:48:27] node nametree32
[09:48:27] node nametree33
[09:48:27] node nametree34
[09:48:27] node nametree45
[09:48:27] node nametree47
[09:48:27] node nametree48
[09:48:27] node nametree52
[09:48:27] node nametree55
[09:48:27] node nametree56
[09:48:27] node nametree62
[09:48:27] node nametree63
[09:48:27] node nametree64
[09:48:27] node nametree71
[09:48:27] node nametree73
[09:48:27] node nametree76
[09:48:27] node nametree82
[09:48:27] node nametree84
[09:48:27] node name
[09:48:27] node nametree1
[09:48:27] node nametree4
[09:48:27] node nametree7
[09:48:27] node nametree16
[09:48:27] node nametree19
[09:48:27] node nametree28
[09:48:27] node nametree29
[09:48:27] node nametree35
[09:48:27] node nametree41
[09:48:27] node nametree42
[09:48:27] node nametree46
[09:48:27] node nametree54
[09:48:27] node nametree65
[09:48:27] node nametree68
[09:48:27] node nametree69
[09:48:27] node nametree75
[09:48:27] node nametree78
[09:48:27] node nametree80
[09:48:27] node nametree86
[09:48:27] node nametree88
[09:48:27] node nameDirectionalLight
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to work with scene created with coppercube irredit

Post by CuteAlien »

Sorry, you have to ask on Ambierra forum. My guess would be Niko created new nodes which Irrlicht does not support and on export calls them "unsupported" so people realize it's not working in .irr, but the data is still there, so someone could make it work. Thought a bit strange name as it could use any name and it would just not load.

Maybe it's really meant to be used with Coppercube these days.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
insomniac1
Posts: 21
Joined: Wed Jan 10, 2018 8:45 pm

Re: How to work with scene created with coppercube irredit

Post by insomniac1 »

CuteAlien wrote:Sorry, you have to ask on Ambierra forum. My guess would be Niko created new nodes which Irrlicht does not support and on export calls them "unsupported" so people realize it's not working in .irr, but the data is still there, so someone could make it work. Thought a bit strange name as it could use any name and it would just not load.

Maybe it's really meant to be used with Coppercube these days.
Thanks, I created an account on their forum last night and posted I'm not sure if there is a minimum time after account creation you have to wait before you can post but it did not show up on the forum. I will try there again.
I am at a critical point in my game where I need come up with the maps structure and trying to not recreate the wheel lol! hopfully I can use irredit and not have to create my own editor.

Edit: Added new post on there forum still not showing up!
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to work with scene created with coppercube irredit

Post by CuteAlien »

OK, I hope they can help you. If you want you can also put a project you exported somehwere online and I an take a look in case I get more ideas when I see the file.

Btw, writing your own editor is not so bad really. When I did that for my racer it took a bit over 5% of the development time. Far, far less than I spend for example on the UI... should have written better UI tools as well I guess. And it gave me full control over formats to use. And I could do stuff like adding special lines I needed for my AI tracks. And I re-used it once more later with tiny changes for another project. And these days I make most of my money by coding on an editor for architectects (with Irrlicht!) ;-)

edit: Maybe also take a look at http://irrrpgbuilder.sourceforge.net in case it can be used for your project.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
insomniac1
Posts: 21
Joined: Wed Jan 10, 2018 8:45 pm

Re: How to work with scene created with coppercube irredit

Post by insomniac1 »

CuteAlien wrote:OK, I hope they can help you. If you want you can also put a project you exported somehwere online and I an take a look in case I get more ideas when I see the file.

Btw, writing your own editor is not so bad really. When I did that for my racer it took a bit over 5% of the development time. Far, far less than I spend for example on the UI... should have written better UI tools as well I guess. And it gave me full control over formats to use. And I could do stuff like adding special lines I needed for my AI tracks. And I re-used it once more later with tiny changes for another project. And these days I make most of my money by coding on an editor for architectects (with Irrlicht!) ;-)

edit: Maybe also take a look at http://irrrpgbuilder.sourceforge.net in case it can be used for your project.
Well still nothing on the coppercube forum but thankyou, you convinced me that I do need to create my own editor!
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to work with scene created with coppercube irredit

Post by CuteAlien »

OK. If you want to take a look at my editor - the link is in my .sig here, part of the racer sources. You have to set HC1_ENABLE_EDITOR when compiling the project in compile_config.h. Then press 'e' in the start-screen to start the editor (for testing you can load all level files). But can take a peek at sources without having to compile. Main stuff is in src/editor.cpp or .h and src/gui_dialogs/gui_editor.cpp or .h.

Thought it's not as nice as irrEdit: Image
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: How to work with scene created with coppercube irredit

Post by sudi »

You might be able to salvage the work we did a long time ago to create an open source scene editor for irrlicht.
EditIrr Forum post and I think you can download it still from sourceforge
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
insomniac1
Posts: 21
Joined: Wed Jan 10, 2018 8:45 pm

Re: How to work with scene created with coppercube irredit

Post by insomniac1 »

@Thankyou both!
insomniac1
Posts: 21
Joined: Wed Jan 10, 2018 8:45 pm

Re: How to work with scene created with coppercube irredit

Post by insomniac1 »

I found a work arround for the trees when your creating your scene in irredit create a tree(plant) as a static mesh then export it as irrmesh, delete that tree and import the tree you exported as a animated mesh then distribute over terrain!
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to work with scene created with coppercube irredit

Post by CuteAlien »

Well, if you can post the full file (with all files included in it) somewhere I can take a look maybe (in case it's just an easy to fix bug).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
insomniac1
Posts: 21
Joined: Wed Jan 10, 2018 8:45 pm

Re: How to work with scene created with coppercube irredit

Post by insomniac1 »

CuteAlien wrote:Well, if you can post the full file (with all files included in it) somewhere I can take a look maybe (in case it's just an easy to fix bug).
Thankyou heres the fileshttps://www.mediafire.com/file/yjrqvyri ... e.zip/file
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to work with scene created with coppercube irredit

Post by CuteAlien »

OK, guess Niko (CopperCube coder) hasn't updated .irr exporter for some types. So exporter writes "unsupported" for node-types it doesn't know. Looks like some kind of grouping node maybe. So using animatedMesh without having mesh kinda works for it.
Alternatively you could add a SceneNode factory for type "unsupported" which returns some dummy node (then you wouldn't have to change the .irr file itself, but could handle it in code).

And yeah "##tree2" looks like some name which doesn't get resolved on export. Should be reported as bug to Ambierra - likely easy to fix.

But could be Niko takes a small coding pause right now, he got a new kid last week ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
insomniac1
Posts: 21
Joined: Wed Jan 10, 2018 8:45 pm

Re: How to work with scene created with coppercube irredit

Post by insomniac1 »

CuteAlien wrote:OK, guess Niko (CopperCube coder) hasn't updated .irr exporter for some types. So exporter writes "unsupported" for node-types it doesn't know. Looks like some kind of grouping node maybe. So using animatedMesh without having mesh kinda works for it.
Alternatively you could add a SceneNode factory for type "unsupported" which returns some dummy node (then you wouldn't have to change the .irr file itself, but could handle it in code).

And yeah "##tree2" looks like some name which doesn't get resolved on export. Should be reported as bug to Ambierra - likely easy to fix.

But could be Niko takes a small coding pause right now, he got a new kid last week ;-)
Thanks for looking over the files, Ill report that bug to ambierra at some point.
I will add a scene node factory for type unsupported.
Post Reply