Page 1 of 1

dotsceneloader

Posted: Wed Oct 19, 2011 9:24 pm
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

Re: dotsceneloader

Posted: Wed Oct 19, 2011 9:28 pm
by dov84d
same problem here,

anyone?

Re: dotsceneloader

Posted: Thu Oct 20, 2011 6:30 am
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.

Re: dotsceneloader

Posted: Thu Oct 20, 2011 10:15 am
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!

Re: dotsceneloader

Posted: Fri Oct 21, 2011 1:26 pm
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.

Re: dotsceneloader

Posted: Sun Oct 23, 2011 12:00 pm
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.