Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 07/23/08 19:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Onisplit - importing to .oni file types

Hey, I'm working on the input for the Onisplit GUI and I want to make sure I've got all the file types. I am almost positive I am missing some. Help me figure out what it is I am missing!

TXMP
~~~~
DDS
TGA
PMG
XMP

M3GM\TRBS
~~~~
obj
dae

ONCC\TRAC\TRAM
~~~~
XML

SUBT
~~~~
TXT

Last edited by Gumby (07/23/08 19:07)


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#2 07/23/08 20:07

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Onisplit - importing to .oni file types

SNDD
~~~~
wav
aif


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#3 07/23/08 21:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Onisplit - importing to .oni file types

Many thanks.


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#4 07/23/08 21:07

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

Re: Onisplit - importing to .oni file types

Add CJBO for XML

From the OniSplit help:

        -export <directory>             Export a Oni .dat file to directory
        -import <directory>             Import a Oni .dat file from directory
                                        Target file format is determined from source files (when possible)
        -import:sep <directory>         Import a Oni .dat file from directory
                                        Create a .dat file that uses .raw and .sep binary files (Mac and PC Demo)
        -import:nosep <directory>       Import a Oni .dat file from directory
                                        Create a .dat file that uses only .raw binary file (PC)

        -extract:dds <directory>        Extracts all textures (TXMP) from a Oni .dat/.oni file in DDS format
        -extract:tga <directory>        Extracts all textures (TXMP) from a Oni .dat/.oni file in TGA format
        -extract:png <directory>        Extracts all textures (TXMP) from a Oni .dat/.oni file in PNG format
        -extract:wav <directory>        Extracts all sounds (SNDD) from a Oni .dat/.oni file in WAV format
        -extract:aif <directory>        Extracts all sounds (SNDD) from a Oni .dat/.oni file in AIF format
        -extract:txt <directory>        Extracts all subtitles (SUBT) from a Oni .dat/.oni file in TXT format
        -extract:obj <directory>        Extracts all M3GM and ONCC instances to Wavefront OBJ files
        -extract:dae <directory>        Extracts all M3GM and ONCC instances to Collada files
        -extract:xml <directory>        Extracts all instances to XML files

        -create:txmp <directory> [-genmipmaps] [-nouwrap] [-novwrap] [-format:bgr32|bgra32|bgr555|bgra5551|bgra4444|dxt1] [-envmap:texture_name] image_file
        -create:m3gm <directory> [-tex:texture_name] obj_file
        -create:trbs <directory> dae_file
        -create:subt <directory> txt_file
        -create <directory> xml_file    Creates an .oni file from an XML file

Last edited by EdT (07/23/08 21:07)

Offline

#5 07/23/08 22:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Onisplit - importing to .oni file types

(Thanks EdT) Kay. Right now it can read the file type and tell me what type of .oni file it should be.

So...it looks like I don't need to worry about telling the differences between XML files, as they are all inputted the same way...

I'm a bit confused on M3GM\ONWC\ONCC\TRBS.
*What is the difference?
*Is there any difference between the source files?
*Is there even an import option for ONWC\ONCC?


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#6 07/23/08 23:07

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

Re: Onisplit - importing to .oni file types

Perhaps this page will help:
http://wiki.oni2.net/Onisplit

When exporting ONCC as either OBJ or DAE, you get the 3D model, plus the texture files. When exporting TRBS, you just get the 3D model.
Exporting ONWC will give you the weapon model and the texture maps.
Exporting M3GM gives you the 3D model and texture file for that object, for example the vehicles in the intro for Airport Assault.

To import the ONCC as 3D model, you would use the command -create:trbs.
Now that you mention it, there is no easy way to import ONWC back to Oni, time to bug Neo! smile

Offline

#7 07/24/08 00:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Onisplit - importing to .oni file types

I did read that page. Several times. But I have no idea how it works, and I don't know much about modeling, so I got very confused...

So ONCC is inported the same way as TRBS? That will make things easier.

Hmm. Hmmmmmm. I suppose when you import the files, you will have to specify which type of 3D file you are importing, M3GM or TRBS. How did you do it on the Mac side of things?

EDIT: Yay. A GUI. And it looks nice. The future version will have tabs and such to select the different things (import, export, options, console).
Right now all it does is take the input and tell you what type of file it will spit out.

onisplitimportmj0.jpg

Last edited by Gumby (07/24/08 02:07)


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#8 07/24/08 09:07

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

Re: Onisplit - importing to .oni file types

Gumby: Looks good!

For importing, I made some assumptions, if it is a .dae, then create TRBS, .tga create TXMP and so on.  Importing is much more difficult since there are so many options.  For example TXMP, there are some TXMP that has an alpha channel, which allows for reflectivity, they have to be handled differently from regular TXMP files.  I still need to figure how to handle M3GM, since it needs the name of the texture map.

On your TXMP Options, you could delete the Generate Mipmaps option and just automatically include it in your commands, that's what I did.

Finally, Neo states that we should export and import ONWC as .xml if we want to change the 3D model of the weapon. Then import a M3GM for the weapon's model.  Also, since ONWC is xml we can modify its parameters!

EDIT: I got tabs!

install.jpg
export.jpg
import.jpg

Last edited by EdT (07/24/08 10:07)

Offline

#9 07/24/08 11:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Onisplit - importing to .oni file types

Ok. I an replace the mipmaps option with the option for transparency\reflectivity. Could you tell me which option that is?


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#10 07/24/08 11:07

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Onisplit - importing to .oni file types

Tabs rock smile


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#11 07/24/08 12:07

s10k
Member
Registered: 01/14/07
Website

Re: Onisplit - importing to .oni file types

Love the gui.

Offline

#12 07/24/08 13:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Onisplit - importing to .oni file types

Heh. Can anyone guess what the mysterious box in the right portion does?


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#13 07/24/08 14:07

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

Re: Onisplit - importing to .oni file types

For reflectivity here's the basic code:
create:txmp  level0_Final -format:bgra4444 -genmipmaps -envmap:TXMPenvksarmor TXMPIteration001%2FKS_chestpack.tga

An -envmap needs to be specified and there are several other ones, TXMPstrikerarmor, TXMPenvksface and TXMPSUPER_REFLECT. Weapons have their own.

Iritscen, wrote the code that compares the file to be imported with a list of names that need the envmap and generates the correct command.  I can provide the list if you want.

Regarding the box on the right, its obvious... its for the top secret, will knock your socks off, feature you plan on adding!

Last edited by EdT (07/24/08 15:07)

Offline

#14 07/24/08 15:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Onisplit - importing to .oni file types

Ok, that would work for now. But shouldn't it be "TXMPIteration001%2FKS_chestpack.png?

What happens if someone wants to create a custom TXMP? Should I give an option to specify a TXMP name for envmaps?

Last edited by Gumby (07/24/08 15:07)


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#15 07/24/08 15:07

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

Re: Onisplit - importing to .oni file types

Opps, fiixed the extension.  Actually, on the Mac we have to use tga, has to do with the Mono framework.

That's a good idea to add the option for a custom TXMP name, I need to add that too.  Same thing for M3GM, I need to add that option for the texture_name

Offline

#16 07/24/08 15:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Onisplit - importing to .oni file types

Ok. I already added the option (on the GUI) for M3GM textures. Now to actually make it so it does something ^_^.

EDIT: Darn. I had to rearrange things to put in that custom envmap option

Last edited by Gumby (07/24/08 15:07)


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#17 08/10/08 12:08

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Onisplit - importing to .oni file types

For all the xml friends out there: Neo has a new candy for you. If you like download and test onisplit v0.9.24
This time you can convert particle into xml and back !

syntax:
onisplit.exe -extract:xml xml_directory source_directory/filename.oni

Last edited by paradox-01 (08/12/08 05:08)

Offline

Board footer

Powered by FluxBB