irrb 0.4 (Blender Exporter)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
narpas
Posts: 5
Joined: Mon Jul 25, 2011 6:33 pm

Re: irrb 0.4 (Blender Exporter)

Post by narpas »

Hmm its still not working for me, the checkbox won't let me enable it, I looked at my console and have these errors:

7/29/11 8:39:02 PM [0x0-0x371371].org.blenderfoundation.blender[27771] File "/Users/brookharker/Library/Application Support/Blender/2.58/scripts/addons/io_export_irrlicht.py", line 1927, in menu_func
7/29/11 8:39:02 PM [0x0-0x371371].org.blenderfoundation.blender[27771] default_path = bpy.data.filepath.replace('.blend', '.irr')
7/29/11 8:39:02 PM [0x0-0x371371].org.blenderfoundation.blender[27771] AttributeError: 'NoneType' object has no attribute 'data'
7/29/11 8:39:02 PM [0x0-0x371371].org.blenderfoundation.blender[27771] Traceback (most recent call last):
7/29/11 8:39:02 PM [0x0-0x371371].org.blenderfoundation.blender[27771] File "/Applications/blender-2.58a-OSX_10.5_x86_64/blender.app/Contents/MacOS/2.58/scripts/modules/bpy_types.py", line 534, in draw_ls

Im on Mac btw but because its python I don't think that should affect it.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Re: irrb 0.4 (Blender Exporter)

Post by pc0de »

narpas wrote:Hmm its still not working for me,
That's really odd because that function should only be called when the exporter is invoked from the file menu. What's more is the log is saying Blender's "bpy" module is None...

Can you try it with a more recent version of Blender from http://www.graphicall.org/blender/os-x ? In the meantime I'll try to get access to a Mac for testing.
narpas
Posts: 5
Joined: Mon Jul 25, 2011 6:33 pm

Re: irrb 0.4 (Blender Exporter)

Post by narpas »

I downloaded one of those and it still would not let me enable (I can enabled other plugins though), although it did not log in the console like last time.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Re: irrb 0.4 (Blender Exporter)

Post by pc0de »

Okay thanks for trying. Go ahead and go back to the 2.58 release and try this updated version of irrB 0.6 - io_export_irrlicht.py.
narpas
Posts: 5
Joined: Mon Jul 25, 2011 6:33 pm

Re: irrb 0.4 (Blender Exporter)

Post by narpas »

Ok new problem now, still can't enable, here is the latest log:

8/6/11 4:09:59 PM [0x0-0x338338].org.blenderfoundation.blender[36338] File "/Applications/blender-2.58a-OSX_10.5_x86_64/blender.app/Contents/MacOS/2.58/scripts/modules/addon_utils.py", line 219, in enable
8/6/11 4:09:59 PM [0x0-0x338338].org.blenderfoundation.blender[36338] mod.register()
8/6/11 4:09:59 PM [0x0-0x338338].org.blenderfoundation.blender[36338] File "/Users/brookharker/Library/Application Support/Blender/2.58/scripts/addons/io_export_irrlicht.py", line 1936, in register
8/6/11 4:09:59 PM [0x0-0x338338].org.blenderfoundation.blender[36338] _registerIrrbProperties()
8/6/11 4:09:59 PM [0x0-0x338338].org.blenderfoundation.blender[36338] File "/Users/brookharker/Library/Application Support/Blender/2.58/scripts/addons/io_export_irrlicht.py", line 1386, in _registerIrrbProperties
8/6/11 4:09:59 PM [0x0-0x338338].org.blenderfoundation.blender[36338] if len(gWalkTestPath.strip()) > 0:
8/6/11 4:09:59 PM [0x0-0x338338].org.blenderfoundation.blender[36338] AttributeError: 'NoneType' object has no attribute 'strip'
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Re: irrb 0.4 (Blender Exporter)

Post by pc0de »

Thanks for testing. I made another update to fix the problem when IWALKTEST isn't defined.
narpas
Posts: 5
Joined: Mon Jul 25, 2011 6:33 pm

Re: irrb 0.4 (Blender Exporter)

Post by narpas »

Thanks a ton I can enable it now!
LookingForAPath
Posts: 49
Joined: Tue Jan 18, 2011 12:35 am

Re: irrb 0.4 (Blender Exporter)

Post by LookingForAPath »

So I was running through forums today then I saw this...

Halifax and pc0de, yall have saved me a crap load of time developing a map editor. This is basically plug and build, even with physics(I just gotta hook something up to get ODE running with it, lol).

Thanks a ton, from the very dark core of my heart. O_o
endless_dark
Posts: 18
Joined: Mon May 04, 2009 12:18 am

Re: irrb 0.4 (Blender Exporter)

Post by endless_dark »

Maybe this is a noobish question but... when I export my scene it's really tiny compared to the md2 model size. Where is the best point to adjust this? and what is the best way?

Thanks!
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Re: irrb 0.4 (Blender Exporter)

Post by pc0de »

@narpas - glad to hear it.

@LookingForAPath - You're welcome :)

@endless_dark - Have a look at the bottom of page 12 of this thread to see what sydney.md2 looks like compared to a standard 1x1 cube when imported into Blender.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: irrb 0.4 (Blender Exporter)

Post by sudi »

Hey is there a plan to update this addon to the new blende?
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.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Re: irrb 0.4 (Blender Exporter)

Post by pc0de »

Sudi wrote:Hey is there a plan to update this addon to the new blende?
hey Sudi, yes it's already been updated to work with the latest version of Blender - see the link half way up this page. I just need to find the time to finish the documentation. :oops:
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: irrb 0.4 (Blender Exporter)

Post by sudi »

pc0de wrote:
Sudi wrote:Hey is there a plan to update this addon to the new blende?
hey Sudi, yes it's already been updated to work with the latest version of Blender - see the link half way up this page. I just need to find the time to finish the documentation. :oops:
So it already works for Blender 2.5? thats great to hear! I will try this out when i have some time.
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.
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: irrb 0.4 (Blender Exporter)

Post by ACE247 »

So, to ask what would it take to add exporting a displacement mapped plane from blender as Heightmap Terrain Node in IrrB script and where can I add my own user data per node in Blender?
I'm not very good with Blenders scripting interface or Python for that matter, but I'm learning what I need from your script allready. Also, can you recommend any resources/guides to Blender scripting interface system?

And the animation system with keyframe animation userdata is really great! IrrB has infact now completely replaced any other Editors for Irrlicht I used before! :D
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Re: irrb 0.4 (Blender Exporter)

Post by pc0de »

Hello ACE247.
ACE247 wrote:So, to ask what would it take to add exporting a displacement mapped plane from blender as Heightmap Terrain Node
I'll have a look to see what it takes.
ACE247 wrote:where can I add my own user data per node in Blender?
Custom properties added to a Blender Object (mesh, light, camera) are added to the corresponding Irrlicht scene node as "UserData". Custom properties added to a Blender Mesh (data) are exported as "UserData" to the .irrmesh file.
ACE247 wrote:can you recommend any resources/guides to Blender scripting interface system?
I ended up learning by studying the scripts that are packaged with Blender and reading the Blender/Python documentation - http://www.blender.org/documentation/bl ... pi_2_61_0/.
Post Reply