XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Nov 23, 2017 8:59 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: SF4 Asset editor
PostPosted: Sat Aug 08, 2009 10:20 am 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
chrrox wrote:
How does the obj export and import work isn't the weighting information needed to avoid some weird side effects?


You are right, weighting information should be edited too, (but as is it handles slight deformations pretty well, specially if you are not near joint intersection)

This is a preview, next step will be exporting/importing complete model (ms3d or smd)

_________________
http://sf4viewer.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: SF4 Asset editor
PostPosted: Sun Aug 09, 2009 1:45 am 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
Thank to your script magnum I made some progress on the skeleton front! :)


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
http://sf4viewer.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: SF4 Asset editor
PostPosted: Sun Aug 09, 2009 8:07 pm 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
I switched from fixed pipeline to a shader driven one, allowing texturing progress.
Still... now I must find a way to trigger automatically the right texture stage for each model :cry:


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
http://sf4viewer.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: SF4 Asset editor
PostPosted: Tue Aug 11, 2009 10:36 pm 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
I thought I'd find some texture<->mesh assignment in #EMM material section but no luck, it must be embedded in sub #EMG meshes headers.

EMM block a pretty straight forward exept I found that every submesh setting is 32 for the name and either 8 or 4 when the name ends by _W.
so it can be 36 or 40.

EMM is
16 bytes (including #EMM tag)
4 byte count followed by as many 4 byte offsets
Each offset points to 32 bytes "value type name" and either 4/8 bytes as described above


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
http://sf4viewer.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.31 RELEASE
PostPosted: Sun Aug 16, 2009 10:01 pm 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
Normal mapping screenshot


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
http://sf4viewer.sourceforge.net/


Last edited by piecemontee on Sun Aug 16, 2009 10:03 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.31 RELEASE
PostPosted: Sun Aug 16, 2009 10:02 pm 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
Ink rendering snapshot


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
http://sf4viewer.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.31 RELEASE
PostPosted: Sun Aug 16, 2009 10:22 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Aug 11, 2008 11:30 pm
Posts: 421
Has thanked: 23 times
Have thanks: 13 times
haha, you are the man with a big M :)


Top
 Profile  
 
 Post subject: Re: SF4 Asset explorer
PostPosted: Mon Aug 17, 2009 9:34 pm 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
magnum wrote:
The EMO script (which btw is in Perl, not Python) spits out a *_data.txt file that shows almost the entire data dump for the file. There's 7 numbers that I can't figure out what are for, and is holding back model importing (from what I remember, when I tried modifying them, it crashed the game). It's the 3 unknown floats and the 4 chars (3 of which seems to always have the same value, and the 4th which is always 255).

An interesting thing to note is that the first 3 floats all change in increments of 1/255 (and range from -1 to 1), so I wonder if they're some how related to the chars.

I'll have to double check the crashing part, because I tried that in my early days of trying to modify the files, and maybe the crash was actually due to something else...


I think there is a little missinterpretation in your script, when 64 byts long a vertex is not
x, y, z, nx, ny, nz, u, v, ...
Code:
   my @node_weights;
   for( 0..$vertexblockcount-1 ) {

      my @floats;
      if( $vertexblocksize == 64 ) {
         @floats = readu( $INPUT, "f11", 44 );

         my @v_uc = ($floats[6],-$floats[7]);

         my @v_xyz = (-$floats[0],$floats[2],$floats[1]);
         my @v_normal = (-$floats[3],$floats[5],$floats[4]);

         push( @uv, \@v_uc );
         push( @xyz, \@v_xyz );
         push( @normal, \@v_normal );

      } elsif( $vertexblocksize == 32 ) {   # used in skeleton EMO files


Instead you have : x, y, z, tx, ty, tz, u, v, nx, ny, nz, a, w1, w2, w3, w4
where (tx, ty, tz) is the vertex tangent for normal mapping (see viewer release v0.31) and a is a precomputed static ambiant occlusion factor (to be interpreted as a diffuse color):

Code:
   my @node_weights;
   for( 0..$vertexblockcount-1 ) {

      my @floats;
      if( $vertexblocksize == 64 ) {
         @floats = readu( $INPUT, "f11", 44 );

         my @v_uc = ($floats[6],-$floats[7]);

         my @v_xyz = (-$floats[0],$floats[2],$floats[1]);
         my @v_tangent = ($floats[3],$floats[4],$floats[5]);
         my @v_normal = ($floats[8],$floats[9],$floats[10]);

         push( @uv, \@v_uc );
         push( @xyz, \@v_xyz );
         push( @normal, \@v_normal );

      } elsif( $vertexblocksize == 32 ) {   # used in skeleton EMO files

_________________
http://sf4viewer.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.33 RELEASE
PostPosted: Wed Aug 19, 2009 8:07 pm 
Offline
advanced

Joined: Mon Aug 03, 2009 9:34 pm
Posts: 50
Has thanked: 5 times
Have thanks: 16 times
"piecemontee's SF4 Assets Explorer v0.33 RELEASE" fixes the normal mapping and the ink shader


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
http://sf4viewer.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.33 RELEASE
PostPosted: Wed Aug 19, 2009 9:05 pm 
Offline
veteran

Joined: Sun Feb 08, 2009 5:45 pm
Posts: 115
Has thanked: 35 times
Have thanks: 7 times
OMG, SNOW-WHITE!

Haha, thanks for the work mate!


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.33 RELEASE
PostPosted: Sun Aug 23, 2009 5:11 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Sun Jun 05, 2005 12:00 pm
Posts: 528
Location: Ontario, Canada
Has thanked: 23 times
Have thanks: 156 times
how do I import parts from other costumes, I've seen people combine models

_________________
Research: [DOA2U] [DOA5U]


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.33 RELEASE
PostPosted: Mon Aug 24, 2009 2:56 pm 
Offline
beginner
User avatar

Joined: Sun Jul 05, 2009 11:58 pm
Posts: 31
Has thanked: 1 time
Have thanks: 2 times
Mario_Kart wrote:
how do I import parts from other costumes, I've seen people combine models

If you make sure that it has the same amount of verts, it should work just fine....


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.33 RELEASE
PostPosted: Mon Aug 24, 2009 9:31 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Sun Jun 05, 2005 12:00 pm
Posts: 528
Location: Ontario, Canada
Has thanked: 23 times
Have thanks: 156 times
I reshaped sakura's body, but there where no shoulders to work with;

Image

I had to create shoulders from the shirt she was wearing, but the weights are out of sync with the arms, so there is tearing visible.

I thought if I could swap the model block from one costume, to another I could fix this. or.. if model injection ever becomes supported ^_^ well I would love that.

_________________
Research: [DOA2U] [DOA5U]


Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.33 RELEASE
PostPosted: Mon Aug 24, 2009 10:00 pm 
Offline
beginner
User avatar

Joined: Sun Jul 05, 2009 11:58 pm
Posts: 31
Has thanked: 1 time
Have thanks: 2 times
If Piecemontee would support Resized Assets, I'm pretty sure adding verts will be possible.

I've already made a tool that can make EMB's of any size, it's just that I have no idea how the Model stuff works :mrgreen:

This makes me think about how Assets Explorer handles COS and COL files, because it seems to rely too much on the contents of COL/COS files instead of threading the files as an EMB ARCHIVE.
This is clearly visible when I Open a resized EMB file in Assets Explorer: Some textures etc are messed up.


Last edited by LouNGeR on Sun Aug 30, 2009 1:51 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: piecemontee's SF4 Assets Explorer v0.33 RELEASE
PostPosted: Mon Aug 24, 2009 10:03 pm 
Offline
veteran

Joined: Sun Feb 08, 2009 5:45 pm
Posts: 115
Has thanked: 35 times
Have thanks: 7 times
I smell Mugen 3.0!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group