Page 1 of 4

Onechancara Models: Can Someone Make Vertex Dumper

Posted: Thu Feb 19, 2009 12:30 pm
by mariokart64n
can someone please code a simple float parser to output as obj?

A point or vertex dumper would be helpful, that way I can remodel them using the points as reference

/thx'n adv

File Sample:
http://www.mediafire.com/file/zzzk2yomm ... ostume.zip

Image

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Thu Feb 19, 2009 1:08 pm
by LagDotCom
Doesn't that say 'oneechanbara'? Anyway.

Here are some quick notes. No, nothing like an extractor yet.

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Fri Feb 20, 2009 4:19 am
by mariokart64n
yeah CAN is a container that the game uses, and it is oneechanbara (little sister) ..but the northamerica release, the cover says onechanbara. ? donno why.

thanks for looking at the format a bit, least we have a general area of where the vertex data may be ^_^

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Sat Feb 21, 2009 1:01 am
by LagDotCom
Turns out I'm actually a moron, who'd have thought? There's more than 2 files in that archive, dunno how I missed them the first time. The actual TGF file format doesn't seem too obscure. Working on it.

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Sun Feb 22, 2009 9:57 am
by demolos
i found this the wii model version here (click on filefront link on this page)

http://darkmatter2.de-coder.net/index.p ... #entry1080

also i attached a float2txt converter just make a bat file with:

float2txt AyasLagacyCostume.can AyasLagacyCostume.txt 3
pause

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Sun Feb 22, 2009 10:21 am
by mariokart64n
that's nice, but I was looking for something that I could import into 3DMax.

the txt I can't do much with. could you program OBJ output? ..actually I think OBJ just requires me to write a V statement before the x,y,z .. I might be able to use this.

also you linked to my own forum, and my own topic. I have ripped the Wii Models, but 360 has 3 models Wii doesn't have. Anna, the old chick, and the old version of reiko.

anyway thanks a ton for the float2txt, I hope to use this to rebuild the models. (wish me luck) ^_^

EDIT:
looks like my idea was a lost cause. 3dmax doesn't allow me to import vertices only through OBJ format. ironically it works in milkshape, but still with whatever format 3dmax doesn't allow for vertex only import. :(
Image

poop

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Sun Feb 22, 2009 3:14 pm
by demolos
You don't need all float because this tool convert all data of the file.
You need to found where is the vertex data into the file but i suppose the file contain other data like .dds .tga
I made some stuff on worms 4 mayhem with some héxadécimal tricks (dany25 i have multi pseudo).
http://ffab.mypage.sk/viewtopic.php?t=51

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Sun Feb 22, 2009 5:21 pm
by mariokart64n
nah, there's something fishy is going on. I did isolate the area where the floats where. but theres obviously something wrong. maybe the verts are stored a bit differently

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Fri May 01, 2009 3:04 am
by alera
"3F80" would be 1.0f. it looks like the file has 16bit floats but I don't have a program to read this type of float. it could be that or a picture but to be honest it does looks like it is using 16bit float(instead of 32 bits). may I ask where are the float you isolated?

Edit: my japanese is by no means perfect but from what I could tell its onee-chan. a familiar way to address ones elder sister. or in a colloquial way a young woman. the japanese cover has "bara" written in kana so I guess it is refers to be the sound of swords hitting each other. I have no idea how I would put that in english :P

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Sun May 03, 2009 4:29 pm
by shekofte
I have a float2txt converter here , what is your idea about it ?
viewtopic.php?f=21&t=3460&p=29131#p29131

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Fri May 08, 2009 4:09 am
by alera
Mario said he isolated the data that had the model vertices. I don't know where this is but the floats I DID find where in a non standard 16bit format.

The float2txt program converts standard 32bit floats but this file seems to have 16bit floats.

I would like to know where in the file is the data mario speaks of, in order to see if I can convert the floats into standard 32bit floats. If it works then I could code a obj exporter for this file and others. also if the face index data is not found or is not there then I could link up the vertices randomly so it can be imported into 3dsmax.

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Tue Mar 16, 2010 2:38 am
by pceengied
alera wrote:Mario said he isolated the data that had the model vertices. I don't know where this is but the floats I DID find where in a non standard 16bit format.

The float2txt program converts standard 32bit floats but this file seems to have 16bit floats.

I would like to know where in the file is the data mario speaks of, in order to see if I can convert the floats into standard 32bit floats. If it works then I could code a obj exporter for this file and others. also if the face index data is not found or is not there then I could link up the vertices randomly so it can be imported into 3dsmax.
SOS! :cry:

is the 3d models extracted from [Onechancara] game?

how to extract models ??? :cry:

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Tue Apr 06, 2010 1:49 pm
by kekko
I had a quick look at this; it should be an easy format to decode, and the girl must be pretty :)
data is big-endian, vertices are standard IEEE 754 half-float here's the (conversion routine)
Image

the CAN file is a container, which contains other CAN archive files and/or data files
every archive or data file is preceded by an header
in the file above, the first 0x80 bytes are three headers: 0x30 + 0x30 + 0x20 bytes; the file contains 2 archives, the first archive contains two more files, the first of them is a TGF.

Code: Select all

// FILE-ARCHIVE header
// size does not include headers
// offsets are relative to current file/archive start


int header_size;

int file_size;
int file_name_offset;
int next_file_offset;

int file_size;
int file_name_offset;
int next_file_offset;
...

if next_archive_offset = 0xFFFFFFFF -> end of list

if header_size > 0x20 -> archive
if header_size = 0x20 -> file

here's the structure of TGF files

Code: Select all


// TGF /////////////////////////////////////////

--header (32 bytes)
char magic[4];             // 'TGF '
int  number_of_mesh_entries;
int  mesh_list_offset;
int  texture_index_offset;
int  an_offset_right_after_texture_names;
int  size_of_something;
int  another_offset;
int  end_of_file;

--mesh list (number_of_entries * 12)
int unknown1;
int offset_to_mesh_data;
int unknown2;

-- mesh data
--- header (variable size)
TO DO. there is the number of vertices, the vertex data size and the number of triangles
---vertex data (vertex_data_size * number_of_vertices)
---triangle data (unsigned short list)

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Tue Apr 06, 2010 4:13 pm
by epopoe
Well, doesn't really matter.

This is not Onechancara. correctly it can read Onechanbara (exactly chan and zzang middle pronunciation)

"O-ne''s meaning is elder sister
"chan" is a lovely title with a close people

Re: Onechancara Models: Can Someone Make Vertex Dumper

Posted: Sat Apr 10, 2010 3:21 pm
by Surveyor
Hi, mind if I join in?
I've been working on the Oneechanbara files for some time now and still couldn't get past the deformation issue yet (pic below). But where there's life there's hope (or the other way around ??) so I'll continue digging.
Texture coords look correct though I don't have the texture data to check things, if someone could post them here then it would be nice.
I'll update you with the progress.