.Scene format question

Problems building or running the engine, queries about how to use features etc.
Post Reply
tippythop
Gnoblar
Posts: 11
Joined: Thu Apr 19, 2018 10:18 am

.Scene format question

Post by tippythop » Mon Feb 25, 2019 12:18 am

Ogre Version: :?: 1.6
Operating System: :?: Windows
Render System: :?: D3D9

Ok so I figured out some of my previous issues regarding an old mmo built on ogre 1.6. Im rebuilding this mmo with new server and game client. My main problem right now is how to go about converting the original games .scene files. They use a really old format. They used lfa maya to export these scenes. I want to use ogre 1.11. The game was built in 2008 and from what i seen in their ogre.log it used 1.6 Shoggoth. I have express permission to reuse their models,textures and sounds and what not so long as i dont use their original game client. Also looking for an editor to load these scenes up in. I tried loading them with Ogitor but it doesn't support the older format of these files. I'm currently using Artifexterra to load the mesh files but Artifexterra doesn't seem to have a way to load scene files.

Here is an example of one of their scene files:

Code: Select all

<scene id="0" formatVersion="0.2.0" sceneManager="any" minOgreVersion="0.14.0" author="LFA Maya Scene Manager v3.2 by metaldev">
    <nodes>
        <node name="MLNode" id="">
            <position x="0" y="0" z="0" />
            <rotation qx="0" qy="0" qz="0" qw="1" />
            <scale x="1" y="1" z="1" />
            <room id="ML" />
            <collision collidable="0" />
            <objectType name="" />
            <node name="subfloorNode" id="0">
                <position x="0" y="0" z="0" />
                <rotation qx="0" qy="0" qz="0" qw="1" />
                <scale x="1" y="1" z="1" />
                <room id="AT" />
                <collision collidable="1" />
                <objectType name="Env" />
                <entity name="subfloor" id="0" meshFile="subfloor.mesh" static="false" castShadows="false" hasLOD="false" />
            </node>
            <node name="MainLobbyNode" id="0">
                <position x="0" y="0" z="0" />
                <rotation qx="0" qy="0" qz="0" qw="1" />
                <scale x="1" y="1" z="1" />
                <room id="ML" />
                <collision collidable="1" />
                <objectType name="Env" />
                <entity name="MainLobby" id="0" meshFile="MainLobby.mesh" static="false" castShadows="false" hasLOD="false" />
            </node>]
Ogitor states only version 1.0 is supported.
0 x

User avatar
EricB
Gnome
Posts: 314
Joined: Fri Apr 09, 2010 5:28 am
Location: Florida
x 103
Contact:

Re: .Scene format question

Post by EricB » Wed Mar 06, 2019 10:55 pm

Looks like you'll have to write some custom code for Ogitor. In short, you just need to parse the xml, and create the objects the .xml says to. I suggest taking at look at the DotSceneLoader example in the wiki.


The other option is to write your own scene converter. Convert the old scenes to the whatever scene format you want.
0 x
Image

Post Reply