Looking for example DotScene files

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
User avatar
zarfius
Gnome
Posts: 367
Joined: Wed Jan 03, 2007 12:44 pm
Location: Brisbane, Australia
x 13

Looking for example DotScene files

Post by zarfius »

Hi

I am currently working on a DotScene importer for my Glue Editor project and I need some example DotScene files for testing. If anyone has a couple of scenes laying around with the associated resources and they don't mind giving them away I'd really appreciate the help. You can read more about it on my blog.

Thanks :)
Craftwork Games - hand crafted entertainment.
http://www.craftworkgames.com/
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Looking for example DotScene files

Post by Transporter »

Here is an example for a scene file:

Code: Select all

<scene upAxis="y" unitsPerMeter="1" unitType="meters" formatVersion="1.0" minOgreVersion="1.8" author="EasyOgreExporter">
    <environment>
        <colourAmbient r="0" g="0" b="0" />
        <colourBackground r="0" g="0" b="0" />
    </environment>
    <nodes>
        <node name="plx" id="0" isTarget="false">
            <position x="0" y="0" z="0" />
            <rotation qx="-0.707107" qy="-0" qz="-0" qw="-0.707107" />
            <scale x="0.01" y="0.01" z="0.01" />
            <node name="Display1" id="1646" isTarget="false">
                <position x="0" y="0" z="0" />
                <rotation qx="-1.77636e-015" qy="-0" qz="-0" qw="-1" />
                <scale x="1" y="1" z="1" />
                <node name="polymsh5953" id="1647" isTarget="false">
                    <position x="0" y="0" z="0" />
                    <rotation qx="-0" qy="-0" qz="-0" qw="-1" />
                    <scale x="1" y="1" z="1" />
                    <entity name="polymsh5953" id="1648" meshFile="polymsh5953.mesh" castShadows="true">
                        <subentities>
                            <subentity index="0" materialName="Gestell" />
                        </subentities>
                    </entity>
                </node>
                <node name="polymsh5952" id="1649" isTarget="false">
                    <position x="0" y="0" z="0" />
                    <rotation qx="-0" qy="-0" qz="-0" qw="-1" />
                    <scale x="1" y="1" z="1" />
                    <entity name="polymsh5952" id="1650" meshFile="polymsh5952.mesh" castShadows="true">
                        <subentities>
                            <subentity index="0" materialName="rot_ncl1_2" />
                        </subentities>
                    </entity>
                </node>
                <node name="polymsh5951" id="1651" isTarget="false">
                    <position x="0" y="0" z="0" />
                    <rotation qx="-0" qy="-0" qz="-0" qw="-1" />
                    <scale x="1" y="1" z="1" />
                    <entity name="polymsh5951" id="1652" meshFile="polymsh5951.mesh" castShadows="true">
                        <subentities>
                            <subentity index="0" materialName="Gestell" />
                        </subentities>
                    </entity>
                </node>
            </node>
        </node>
        <node name="Point_Light1:Point_Light1" id="4677" isTarget="false">
            <position x="0" y="0" z="0" />
            <rotation qx="-0.707107" qy="-0" qz="-0" qw="-0.707107" />
            <scale x="0.01" y="0.01" z="0.01" />
            <node name="Point_Light1:Licht" id="4678" isTarget="false">
                <position x="0" y="0" z="0" />
                <rotation qx="-1.77636e-015" qy="-0" qz="-0" qw="-1" />
                <scale x="1" y="1" z="1" />
            </node>
        </node>
        <node name="Light_Box:Light_Box" id="4679" isTarget="false">
            <position x="0" y="0" z="0" />
            <rotation qx="-0.707107" qy="-0" qz="-0" qw="-0.707107" />
            <scale x="0.01" y="0.01" z="0.01" />
            <node name="Light_Box:Light_Box_ncl1_1" id="4680" isTarget="false">
                <position x="0" y="0" z="0" />
                <rotation qx="-1.77636e-015" qy="-0" qz="-0" qw="-1" />
                <scale x="1" y="1" z="1" />
                <node name="Light_Box:Light_Box_Root2" id="4681" isTarget="false">
                    <position x="3" y="3" z="-3" />
                    <rotation qx="-0" qy="-0" qz="-0" qw="-1" />
                    <scale x="1" y="1" z="1" />
                    <node name="Light_Box:Light_Box_Interest2" id="4682" isTarget="false">
                        <position x="0" y="0" z="0" />
                        <rotation qx="-0" qy="-0" qz="-0" qw="-1" />
                        <scale x="1" y="1" z="1" />
                    </node>
                </node>
                <node name="Light_Box:Light_Box_Root1" id="4683" isTarget="false">
                    <position x="3" y="3" z="-3" />
                    <rotation qx="-0" qy="-0" qz="-0" qw="-1" />
                    <scale x="1" y="1" z="1" />
                    <node name="Light_Box:Light_Box_Interest1" id="4684" isTarget="false">
                        <position x="0" y="0" z="0" />
                        <rotation qx="-0" qy="-0" qz="-0" qw="-1" />
                        <scale x="1" y="1" z="1" />
                    </node>
                </node>
            </node>
        </node>
    </nodes>
</scene>
You can create a simple scene with blender for free and export the scene to create test files for your program.
User avatar
zarfius
Gnome
Posts: 367
Joined: Wed Jan 03, 2007 12:44 pm
Location: Brisbane, Australia
x 13

Re: Looking for example DotScene files

Post by zarfius »

Thanks
Craftwork Games - hand crafted entertainment.
http://www.craftworkgames.com/
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179

Re: Looking for example DotScene files

Post by jacmoe »

For this to be useful, you need to gather scene files from all the various exporters, as they are slightly different.

EasyMaxExporter, Blender scene exporter (from ogreaddons repo) and the unofficial Blender 2.5x exporter, OgreMax and oFusion - just to name a few.

I think the Ogitor scene serializer manages to parse most of them.

All it takes is long and very ugly switch statements. :P

I think you can grab a scene file or two for oFusion in the oFusion forum, but it would be great if other people would post theirs here.

I have the naughty idea of snatching the scene files for Ogitor too. :D
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.