Need some advice for a noobie

I’m halfway through the beginner tutorials, and I wanted to stop and try to load some models that I had found on Blendswap just to poke around with the engine. Those models come in a .blend format.



Am I suppose to convert that to OgreXML?

Or once loaded in the project’s Models folder just convert it to j3o?



Tutorials make references to Blender 2.4 or 2.5 but no mention of 2.6, (the current version). Is there OgreXML for 2.6? Do I need get an older version of Blender?



//models I’m trying to load

12_1314.blend - http://www.blendswap.com/3D-models/weapons/t106/

Nomad.blend - http://www.blendswap.com/3D-models/characters/nomad-desert-mech/

spider_drone.blend - http://www.blendswap.com/3D-models/characters/spider-drone/

yoda.blend - http://www.blendswap.com/3D-models/animals/master-yoda/

tank.blend - http://www.blendswap.com/3D-models/weapons/m1-abrams-riggedtextured/



//experience loading models

12_13114.blend - successfully converts to j3o. However the background is black. My call on viewPort to change background color fails with this model loaded.



Nomad.blend - conversion to j3o fails. (NullPointerException). View Model displays “Error opening Nomad.blend”



spider_drone.blend - loads, but without legs for some reason. Also seems to have a built in background or red light anyway.



yoda.blend - j3o conversion fails. No errors visible to me. Just fails. View Model displays dialog box “Error opening yoda.blend”



tank.blend - creates a j3o file but fails with dialog box “Error in scene!” (OutOfMemoryError: Java heap space) If I click view Model I get dialog box “Error in scene!” (OutOfMemoryError: Direct buffer memory)



If anyone could impart a few words of wisdom or some direction, I’d be highly appreciative.

One last thing, when I open 12_1314.blend in blender 2.6 nothing shows. All other referenced models show using Blender.

1 - The easiest way would opening .blend models directly in jME. Or export it with OgreXml to jME.

2 - Yes, convert it.

3 - The ogrexml that comes with jmp is for blender 2.49, you should update your jmp to get the ogrexml for blender 2.59x …2.6.



//experience loading models
12_13114.blend – successfully converts to j3o. However the background is black. My call on viewPort to change background color fails with this model loaded.

Nomad.blend – conversion to j3o fails. (NullPointerException). View Model displays “Error opening Nomad.blend”

spider_drone.blend – loads, but without legs for some reason. Also seems to have a built in background or red light anyway.

yoda.blend – j3o conversion fails. No errors visible to me. Just fails. View Model displays dialog box “Error opening yoda.blend”

tank.blend – creates a j3o file but fails with dialog box “Error in scene!” (OutOfMemoryError: Java heap space) If I click view Model I get dialog box “Error in scene!” (OutOfMemoryError: Direct buffer memory)


Is your jmp up to date?

It is up to date now.



//installing ogrexml

Running Tools → OgreXML → Install Blender OgreXML

Requests the location to the scripts folder.



//I gave it this install location:

C:\Users\Rico\AppData\Roaming\Blender Foundation\Blender\2.60\scripts

io_export_ogreDotScene.py is in this scripts folder.



When I run Blender no mention of ogreXML in the export list.

Nevermind, I have figured out how to load the ogrexml add-on from within blender.

@rico16135 said:
Nevermind, I have figured out how to load the ogrexml add-on from within blender.

Would be nice if you mentioned how so this thread is useful for other people too.

I guess he simply installed the ogre addon via file—>user preferences


>addons.

You have to enable it in the add-ons menu and then save the current state as the default. I don’t know of ways of doing it programmatically

//From within Blender 2.6

  1. File → User Preferences →
  2. click button, “Install Add-On” at bottom
  3. Navigate to and select the io_export_ogreDotScene.py that was installed in the scripts folder
  4. click the Install Add-On button while the file is highlighted.


  5. Under Categories select Import-Export
  6. find the OgreXML entry and check the checkbox; exit preferences.
  7. Under File → Export there should now be an OgreXML entry.
1 Like