HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 blender 2.49 import extension/addon/plugin

View previous topic View next topic Go down 
Go to page : 1, 2  Next
AuthorMessage
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: blender 2.49 import extension/addon/plugin   Wed 04 Jul 2012, 08:27

My blender scripts are located at C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts

Just throw this there http://kito.staunhansen.dk/download/importTL.py

Requires:
Blender 2.49
Python 2.6.6 http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
OgreCommandlineTools 1.6.0 located in C:\OgreCommandLineTools

Usage requirement:
Have a folder with 1 .mesh file and .skeleton file
Or the script will try to import all .skeleton files it can get its hands on

Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 21
Location : Australia

PostSubject: Re: blender 2.49 import extension/addon/plugin   Wed 04 Jul 2012, 21:13

Thanks RedEye for this! it's gonna come in handy so much!
Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 21
Location : Australia

PostSubject: Re: blender 2.49 import extension/addon/plugin   Fri 06 Jul 2012, 03:23

sorry for double posting but I didn't think you see this otherwise;

I got the kitten model, imported it and the skeleton and made some changes and whatnot then when I try to export it and the skeleton/armature OgreXMLConverter crashes and the .skeleton file isn't created (even if I turn off the automatic OgreXMLConverter, the .skeleton file isn't created)

OgreXMLConverter.log:
Quote :
15:50:23: Creating resource group General
15:50:23: Creating resource group Internal
15:50:23: Creating resource group Autodetect
15:50:23: Registering ResourceManager for type Mesh
15:50:23: Registering ResourceManager for type Material
15:50:23: Registering ResourceManager for type Skeleton
15:50:23: XMLMeshSerializer reading mesh data from C:\OgreCommandLineTools\cub.mesh.xml...
15:50:23: Reading submeshes...
15:50:23: Reading geometry...
15:50:23: Geometry done...
15:50:23: Reading bone assignments...
15:50:23: Bone assignments done.
15:50:23: Submeshes done.
15:50:23: Skeleton: Loading cub.skeleton
15:50:23: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource cub.skeleton in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 753)
15:50:23: Unable to load skeleton cub.skeleton for Mesh conversion. This Mesh will not be animated. You can ignore this message if you are using an offline tool.

15:50:23: XMLMeshSerializer import successful.
15:50:23: Reorganising vertex buffers to automatic layout..
15:50:23: MeshSerializer writing mesh data to C:\OgreCommandLineTools\cub.skeleton.xml...
15:50:23: File header written.
15:50:23: Writing mesh data...
15:50:23: Writing submesh...
15:50:23: Exporting submesh texture aliases...
15:50:23: Submesh texture aliases exported.
15:50:23: Exporting dedicated geometry bone assignments...
15:50:23: Dedicated geometry bone assignments exported.
15:50:23: Submesh exported.
15:50:23: Exporting skeleton link...
15:50:23: Skeleton link exported.
15:50:23: Exporting bounds information....
15:50:23: Bounds information exported.
15:50:23: Exporting submesh name table...
15:50:23: Submesh name table exported.
15:50:23: Exporting edge lists...
15:50:23: Edge lists exported
15:50:23: Mesh data exported.
15:50:23: MeshSerializer export successful.
15:50:23: Unregistering ResourceManager for type Skeleton
15:50:23: Unregistering ResourceManager for type Material
15:50:23: Unregistering ResourceManager for type Mesh

I have blender 2.49 / python 2.6.6 (obviously)

what did I do wrong/what didn't I do?
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: blender 2.49 import extension/addon/plugin   Fri 06 Jul 2012, 03:27

o, when you try to export it. Was reading it as import.
Which exporter are you using?

________________________________
Retired
Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 21
Location : Australia

PostSubject: Re: blender 2.49 import extension/addon/plugin   Fri 06 Jul 2012, 03:34

a exporter script called
ogremeshesexporter.py

I got it from that IT-Mane Tutorial on deviantart like a year ago or something.

It works with everything else I've done.
Items, editing animals from the ITBlender folder but not with this import .skeleton script you've supplied.

EDIT: I changed the link in blender so the cub.mesh uses the original kitten.skeleton file (so it doesn't export the skeleton file [just use the existing one in the game folder] and i manually convert the .xml.mesh to .mesh] and it all works, except in-game the cub is a little... deformed during some animations... (because the armature/bones are moving but the mesh remains still so it deforms the mesh)

All I did was add/remove a few vertices, lengthen the tail and neck. I didn't touch the armature at all.
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: blender 2.49 import extension/addon/plugin   Fri 06 Jul 2012, 03:55

Are you using it right?

The exporter I tried was version 1.4 and worked excellent. Here's my export settings:





________________________________
Retired
Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 21
Location : Australia

PostSubject: Re: blender 2.49 import extension/addon/plugin   Fri 06 Jul 2012, 05:01

I'll try seeing if any of my settings are different

but like I said it works when I edit animals from Kovu's original ITBlenders folder that's downloadable elsewhere on this site.

I turned a zebra into a unicorn with absolutely no problems.

EDIT: I don't have the buttons 'Apply Modifiers' or 'Require Materials'

I usually have 'Copy Textures' & 'Game Engine Materials' selected
and while attempting to fix this problem I turned off OgreXMLConverter and Skeleton name follow mesh

i'll try with what I can of your settings.

EDIT2: I tried with your settings but OgreXMLConverter still crashes.
I turned it off and kept 'Skeleton name follow mesh' but no .skeleton file is created.

Export Log says: (when it crashed so I typed everything below)

Exporting...
Output directory "d:\Documents\blender\items\RoW\finished"
Processing Object "cub"
Exporting mesh "cub"
Exporting armature "cub"
Writing skeleton animation "Praise".
Writing skeleton animation "Run".
Writing skeleton animation "Idle".
Writing skeleton animation "RestPose".
Running OgreXMLConverter: ""C"\OgreCommandLineTools\OgreXMLConverter.exe" -log "d:\Documents\blender\items\RoW\finished\OgreXMLConverter.log" -e -r -o "d:\Documents\blender\items\RoW\finished\cub.skeleton.xml"

and then OgreXMLConverter crashes. If I close the 'unresponsive program' then it continues exporting but the .skeleton file is corrupted

I know it's corrupted because if I move it and the mesh to IT and then go into a map with the critter as soon as it spawns the game crashes with no error report. Take the animal out and it works fine.
Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 21
Location : Australia

PostSubject: Re: blender 2.49 import extension/addon/plugin   Sun 15 Jul 2012, 08:20

Okay, so I got it fixed but I have one small problem..
the model runs sideways Neutral

I've tried what I can think of but nothing works...
How do I fix that?
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: blender 2.49 import extension/addon/plugin   Sun 15 Jul 2012, 09:01

You can either rotate in Blender (some with blender knowledge can probably tell how) or use the MeshMagick tool to rotate it.

An example:
MeshMagick transform -rotate=90/0/1/0 final.mesh

________________________________
Retired
Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 21
Location : Australia

PostSubject: Re: blender 2.49 import extension/addon/plugin   Sun 15 Jul 2012, 10:17

Ehh, i tried in blender and it doesn't seem to be working... or at least the way I was trying XD

How do I use MeshMagick to rotate it? I mean, where does the code go into?
Back to top Go down
Slycan



Game username : Sly
Server : KITO
Female Posts : 1198
Join date : 2011-07-24
Age : 27

PostSubject: Re: blender 2.49 import extension/addon/plugin   Sun 15 Jul 2012, 19:30

Solution 1 - Import and export it 3 times

Solution 2 - From: http://www.kitopen.com/t189-howto-kito-s-fixed-wow-model-exporter-to-ogre
Start>Run>Cmd
type in "cd (.mesh and .skeleton files location folder here)" in the black window, for sample: cd C:\Users\Owner\Desktop\kito
press enter
next type in location of MeshMagick.exe with the codes needed to turn/rotate meshm + mesh name, for sample: C:\OgreCommandLineTools\MeshMagick.exe transform -rotate=270/0/1/0 MeshNameGoesHere.mesh
press enter.
Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 21
Location : Australia

PostSubject: Re: blender 2.49 import extension/addon/plugin   Thu 19 Jul 2012, 10:15

Ahh!

Thanks sly it's all fixed and running in the right direction, many thanks to the both of you Smile
Back to top Go down
Techwolf77

avatar

Game username : Noctis-Suhasha
Server : Nocturnal
Female Posts : 117
Join date : 2012-09-28
Age : 19
Location : In between dimensions

PostSubject: Re: blender 2.49 import extension/addon/plugin   Mon 01 Oct 2012, 18:51

I can't even get it to import! It says, Python script error, check console
Back to top Go down
Slycan



Game username : Sly
Server : KITO
Female Posts : 1198
Join date : 2011-07-24
Age : 27

PostSubject: Re: blender 2.49 import extension/addon/plugin   Mon 01 Oct 2012, 19:02

wrong python, try 2.6.1 to 2.6.5
I ended up using 2.6.2 myself.
Back to top Go down
Techwolf77

avatar

Game username : Noctis-Suhasha
Server : Nocturnal
Female Posts : 117
Join date : 2012-09-28
Age : 19
Location : In between dimensions

PostSubject: Re: blender 2.49 import extension/addon/plugin   Tue 02 Oct 2012, 17:16

oooooh ok! I will uninstall 2.6.6
Back to top Go down
rihanna789



Posts : 5
Join date : 2012-10-18

PostSubject: Re: blender 2.49 import extension/addon/plugin   Mon 19 Nov 2012, 06:06

but still what does python do ???
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: blender 2.49 import extension/addon/plugin   Mon 19 Nov 2012, 09:24

http://en.wikipedia.org/wiki/Python_%28programming_language%29

________________________________
Retired
Back to top Go down
RainbowDash

avatar

Game username : Rainbowdash or akarivskage
Server : Bloodline
Female Posts : 144
Join date : 2012-08-20

PostSubject: Re: blender 2.49 import extension/addon/plugin   Fri 15 Mar 2013, 15:59

Awsome i will have to check this out when i get home
Back to top Go down
RainbowDash

avatar

Game username : Rainbowdash or akarivskage
Server : Bloodline
Female Posts : 144
Join date : 2012-08-20

PostSubject: Re: blender 2.49 import extension/addon/plugin   Sat 23 Mar 2013, 23:12

How do i download it?
Back to top Go down
Delete me.
Coder
Coder


Male Posts : 353
Join date : 2011-07-25
Age : 22

PostSubject: Re: blender 2.49 import extension/addon/plugin   Sun 24 Mar 2013, 06:24

RainbowDash wrote:
How do i download it?

RedEye wrote:
My blender scripts are located at C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts

Just throw this there http://kito.staunhansen.dk/download/importTL.py
Making sure you have the rest of the required downloads as well, right click the link above, and "save link as" and navigate to your scripts folder and save it in there.
Back to top Go down
Wolfess

avatar

Game username : Wolfess
Server : CoA, GoD
Female Posts : 73
Join date : 2011-10-26
Age : 27
Location : PTZ

PostSubject: Re: blender 2.49 import extension/addon/plugin   Thu 23 May 2013, 12:55

Have tested all the python vercions from 2.6.1 to 2.6.6...none works for me with this plug-in. No

Spoiler:
 

this thing continues trolling me for another year... XD

Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: blender 2.49 import extension/addon/plugin   Thu 23 May 2013, 13:02

Quote :

Usage requirement:
Have a folder with 1 .mesh file and .skeleton file
Or the script will try to import all .skeleton files it can get its hands on

________________________________
Retired
Back to top Go down
Wolfess

avatar

Game username : Wolfess
Server : CoA, GoD
Female Posts : 73
Join date : 2011-10-26
Age : 27
Location : PTZ

PostSubject: Re: blender 2.49 import extension/addon/plugin   Thu 23 May 2013, 13:06

Same.

Edit: Maybe it needs x86 python version not x64 to run?


Code:

mouse.mesh
File not valid!
has skeleton:  True
file:  C:\tmp\ITBlenders\mouse\mouse.mesh.xml
name:  mouse
file:  C:\tmp\ITBlenders\mouse\mouse.skeleton.xml
name:  mouse
file match:  C:\tmp\ITBlenders\mouse\mouse.skeleton.xml
File not valid!
Back to top Go down
WindRunner

avatar

Posts : 60
Join date : 2013-03-24

PostSubject: Re: blender 2.49 import extension/addon/plugin   Mon 10 Jun 2013, 19:28

Ahhhhh heres what im looking for!! Lol i been woundering how you do this.

Edit:

It won't let me import nothing, i have a folder with a .mesh and a .skeleton only, i have python 2.6.2 i also tried python 2.6.6 and it still did it, when i import a .mesh it says: Python error script: Check consol.
Back to top Go down
GlaciaTheWolf
®
®
avatar

Game username : Glacia, GlaciaIceWolf, GlaciaTheWolf
Server : Canis lupus (Owner/creator) DD (member)
Female Posts : 974
Join date : 2013-12-09
Age : 21
Location : Ohio

PostSubject: Re: blender 2.49 import extension/addon/plugin   Wed 18 Feb 2015, 21:53

Ik this is really really old, but the links broken, anyway i cna get it?
Back to top Go down
 
blender 2.49 import extension/addon/plugin
View previous topic View next topic Back to top 
Page 1 of 2Go to page : 1, 2  Next

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: START HERE :: Helpful Programs-
Jump to: