Blender to Direct X - error in exporter

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

Blender to Direct X - error in exporter

Post by mcunha98 »

I try use a X file with IRRLicht based in my work maked in Blender ( i dont cant back to Milkshape again :cry: )

But, when i try export model for X format i receive this error:
Compiled with Python version 2.4.
Checking for installed Python... got it!
Traceback (most recent call last):
File "<string>", line 1526, in ?
KeyError: 'key not found'
Somebody have sucess to export models of Blender to .X using some exporter (i use a mod of original export for compatible with IRRLicht).
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

This sounds like it's because the name of something contains non-ascii characters. Maybe textures, bones, frames or anything that has a name. Try using only characters 32 to 127 when naming things.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

Post by mcunha98 »

bitplane wrote:This sounds like it's because the name of something contains non-ascii characters. Maybe textures, bones, frames or anything that has a name. Try using only characters 32 to 127 when naming things.
Many strange
All things in scena have the common names (using "." for trees...)
Anything some indication of where i found many helpfull tips.

Image
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

What exporter are you using? Ive heard "." can cause problems only use letters and numbers thanks.

Cheers
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

Post by mcunha98 »

For all...

I find the reply to question.
In this link - http://blenderartists.org/forum/showthread.php?t=73602 - you find a exporter for Blender 2.42 (work fine in 2.43), it export correctly the animation and object.

Image

But when i load the model into a programm (vb.net) the debug show a strange message:

Unknown data object in x file: AnimTicksPerSecond

Some idea (see code, is very simple...):

Code: Select all

   Sub Main()
        Dim mDevice As New IrrlichtDevice(Video.DriverType.DIRECT3D9, New Dimension2D(800, 600), 32, False, True, False)
        Dim mDebug As System.IO.TextWriter

        mDevice.WindowCaption = "HP Test by MCunha98"
        mDebug = Console.Out

        If (mDevice Is Nothing) Then
            mDebug.WriteLine("Device nao definido !")
            Exit Sub
        End If

        Dim mScene As ISceneManager = mDevice.SceneManager
        Dim mDriver As IVideoDriver = mDevice.VideoDriver


        Dim mPlayer As IAnimatedMesh = mDevice.SceneManager.GetMesh("d:\apl\blender\hp.x")
        Dim mCamera As ICameraSceneNode = mDevice.SceneManager.AddCameraSceneNodeFPS(Nothing, 100, 100, 1065)
        mCamera.Position = New Vector3D(20, 0, -50)
        While mDevice.Run()
            If mDevice.WindowActive Then
                mDevice.SceneManager.DrawAll()
                'mDevice.VideoDriver.EndScene()

            End If
        End While


    End Sub
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

because thats not compatable with irrlicht... is that directx viewer?

don't look to me for that answer.

but you can try this
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=11690
always read the stickys :wink:

make sure you name it right. and stuff.

you may also need this to make irrlicht display properly
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=16951


and know that .x from blender is what you see atm (far as i know anyone know different?)

anyway the devs are on it. look around the network you might find something I haven't. doubtful.
Post Reply