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

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.
0 x

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

Re: dotsceneloader

Post by dov84d » Wed Oct 19, 2011 9:28 pm

same problem here,

anyone?
0 x

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

Re: dotsceneloader

Post by Mind Calamity » Thu Oct 20, 2011 6:30 am

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.
0 x
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 » Thu Oct 20, 2011 10:15 am

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!
0 x

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

Re: dotsceneloader

Post by Kojack » Fri Oct 21, 2011 1:26 pm

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

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

Re: dotsceneloader

Post by Mind Calamity » Sun Oct 23, 2011 12:00 pm

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.
0 x
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