Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 7/12/13 9:21

Michele
Member
From: Italy
Registered: 30/1/13

Please,Help me for a problem

I'd like know how to insert a object in the game ,how spawn it in the game and how move it with "env_anim".... hmm

Help me  big_smile  big_smile


I'm Italian and I'm 15 (I'm now 19 big_smile). My nickname is .PixeL

Offline

#2 7/12/13 12:02

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/07
Website

Re: Please,Help me for a problem

What you are asking is complicated... smile

1) Read over this page: http://wiki.oni2.net/XML:ONLV
      Objects are added by using the Physics.xml file.
2) Download the demo files.
      Study the various xml files in the demo.
3) Look at the Lab's cutscene bsl file and see how the command is used.
4) Experiment... it will take trial and lots of errors to figure it out.

Sorry, I have not personally used that command before, so I can't be more specific.

Offline

#3 8/12/13 6:58

Michele
Member
From: Italy
Registered: 30/1/13

Re: Please,Help me for a problem

I tried to study the command used in the warehouse to move the truck, but i didn't undestand everything.
thanks for your answer and for the link  cool

Last edited by Michele (8/12/13 7:01)


I'm Italian and I'm 15 (I'm now 19 big_smile). My nickname is .PixeL

Offline

#4 8/12/13 22:36

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/07
Website

Re: Please,Help me for a problem

Basically, to move the truck, there is the 3D model of the truck as M3GM, then an OBAN is used to animate the truck.  To see the relationship between them, extract the file ONLVEnvWarehouse.oni as xml from level 1. 

Then for example this info about the truckcab:
<OBOAObject>
                <Geometry>#514</Geometry>
                <Animation>OBANtruckcab</Animation>
                <Particle>#516</Particle>
                <Flags>InUse</Flags>
                <DoorGunkId>32047</DoorGunkId>
                <DoorId>0</DoorId>
                <PhysicsType>Animated</PhysicsType>
                <ScriptId>207</ScriptId>
                <Position>404.6857 21.3906479 -90.60252</Position>
                <Rotation>-0.334687442 0.622883856 0.6228838 -0.3346875</Rotation>
                <Scale>0.99999994</Scale>
                <Transform>-0.5519371 3.40699238E-08 -0.83388567 -0.83388567 2.98685165E-08 0.5519371 4.371139E-08 1 1.19248806E-08 404.6857 21.3806477 -90.60252</Transform>
                <Name>object_truckcab</Name>
            </OBOAObject>

This tells us the OBAN which is used: OBANtruckcab and the model name: object_truckcab, but you will find it in the level 1 files as M3GMtruckcab.  If you extract the OBANtruckcab as dae, you can import it into XSI and see the movement path.

(Note: The truck is actually made up of a number of parts: M3GMtruckcab, M3GMtruckback, M3GMtruckwheel01, M3GMtruckwheel02, M3GMtruckwheel03, M3GMtruckwheel04, M3GMtruckwheel05.  Each of them has their respective OBAN to animate them.)

To understand OBAN look over this page: http://wiki.oni2.net/XML:OBAN

Told you it was complicated big_smile

Offline

#5 9/12/13 8:18

Michele
Member
From: Italy
Registered: 30/1/13

Re: Please,Help me for a problem

THANKS !!!
I'll manage to make this mod!

8)  8)  8)  8)  8)  8)  8)
wink


I'm Italian and I'm 15 (I'm now 19 big_smile). My nickname is .PixeL

Offline

Board footer

Powered by FluxBB