dotsceneloader

What it says on the tin: a place to discuss proposed new features.
Post Reply
dowi
Halfling
Posts: 48
Joined: Wed Sep 07, 2011 3:37 am

dotsceneloader

Post by dowi »

hello,
I have an animated model,
after exporting dotscene file with ogre max, the animataion was export to the dotscene file

here is an example

Code: Select all


<scene formatVersion="1.0" upAxis="y" unitsPerMeter="39.3701" minOgreVersion="1.8" ogreMaxVersion="2.3.18" author="OgreMax Scene Exporter (www.ogremax.com)" application="3DS Max">
    <environment>
        <colourAmbient r="0.333333" g="0.333333" b="0.333333" />
        <colourBackground r="0" g="0" b="0" />
        <clipping near="0" far="100000" />
    </environment>
    <nodes>
        <node name="Eos_FogLight01_Low01">
            <position x="-0.209967" y="-0.123055" z="0.784811" />
            <scale x="1" y="1" z="1" />
            <rotation qx="8.74228e-008" qy="0" qz="0" qw="1" />
            <entity name="Eos_FogLight01_Low01" castShadows="true" receiveShadows="true" meshFile="Eos_FogLight01_Low01.mesh">
                <subentities>
                    <subentity index="0" materialName="GlassHeadlight" />
                </subentities>
            </entity>
            <animations>
                <animation name="Eos_FogLight01_Low01_animationNode" enable="false" loop="false" interpolationMode="spline" rotationInterpolationMode="spherical" length="20">
                    <keyframe time="0">
                        <translation x="-0.209967" y="-0.123055" z="0.784811" />
                        <rotation qx="8.74228e-008" qy="0" qz="0" qw="1" />
                        <scale x="1" y="1" z="1" />
                    </keyframe>
                    <keyframe time="0.25">
                        <translation x="-0.209967" y="-0.123055" z="0.784811" />
                        <rotation qx="8.74228e-008" qy="0" qz="0" qw="1" />
                        <scale x="1" y="1" z="1" />

I tried finding a dotSceneLoader that could decode that animation - without any succeed .
can some one help me?
(decode this by myself could take some time)
thanks
Last edited by dowi on Thu Oct 20, 2011 10:08 am, edited 1 time in total.

User avatar
dov84d
Deactivated User
Posts: 1
Joined: Fri Sep 16, 2011 3:15 pm

Re: dotsceneloader

Post by dov84d »

same problem here,

anyone?

User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: dotsceneloader

Post by Mind Calamity »

You didn't exactly export a scene, but a mesh, if it has animation in the XML file, you need to use the OgreXMLConverter to convert that XML into a mesh, by doing which, it automatically creates a .mesh file with animation and all.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt

dowi
Halfling
Posts: 48
Joined: Wed Sep 07, 2011 3:37 am

Re: dotsceneloader

Post by dowi »

hi Mind Calamity

thanks for the answer.

what you said is not what happened..

i exported a model that has node animation from 3ds max with ogremax
into a .scene file that has the key frames animaion and alot of small .mesh files that contains the parts of the model.

in ogremax, if i choose to export .mesh than all the parts of the model are exported into one big .mesh file but without the animation (ogremax supports siad that node animation is exported only into .scene or .model)

now i have alot of small .mesh, one .scene and one .material,
and the animation is in the .scene file...

so i was looking for a .scene loader

thanks alot in advance!

User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7153
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 521

Re: dotsceneloader

Post by Kojack »

Ogremax supplies a scene loader which can play node animations.
Go to http://www.ogremax.com/downloads and get the ogremax viewers package.

User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: dotsceneloader

Post by Mind Calamity »

Kojack wrote:Ogremax supplies a scene loader which can play node animations.
Go to http://www.ogremax.com/downloads and get the ogremax viewers package.
Oh, I didn't know that, since I haven't used OgreMax, sounds like an useful feature.

Anyway, hopefully, now the OP has solved their problem.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt

Post Reply