SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [TEC] Pack3D and SH4... (https://www.subsim.com/radioroom/showthread.php?t=112162)

GuillermoZS 04-17-07 12:26 PM

Quote:

Originally Posted by UBOAT234

I search a solution from much time...
I hope to find one solution... But is Hard! :damn:

BEST REGARDS
UBOAT234

I know how you feel man, this is driving me nuts too... But itīs possible: a few weeks ago U-5000 did a mod of the Yamato with the Imperial Emblem:

http://www.subsim.com/radioroom/show...ghlight=yamato

Itīs perfect. I downloaded it to analyze what he did but actually I have no idea how he did it... :huh: If he is over here it could be great that he could give us some tips ;)

As for what Iīve doing I think there is a problem with Pack3d and SH4 it seems not to manage the normal/specular/caustics maps correctly when repacking (well, itīs normal since it was designed for SH3 where this maps werenīt used...) But then, I have no idea how U-5000 did it...:damn:

UBOAT234 04-17-07 12:28 PM

Pack3d
 
Hi DD,

I have try:
1) export 3d obj with Pack3d.
2) I have imported the same object, that I have exported, without to touch or save with software of 3d design. The original file exported, and it causes many changes and the result is that one in the previous image.

It import only to point TMAP. But it changes also other data...

...and I dont have a solution... :oops:

BEST REGARDS
UBOAT234

UBOAT234 04-17-07 12:46 PM

Quote:

Originally Posted by GuillermoZS
Quote:

Originally Posted by UBOAT234

I search a solution from much time...
I hope to find one solution... But is Hard! :damn:

BEST REGARDS
UBOAT234

I know how you feel man, this is driving me nuts too... But itīs possible: a few weeks ago U-5000 did a mod of the Yamato with the Imperial Emblem:

http://www.subsim.com/radioroom/show...ghlight=yamato

Itīs perfect. I downloaded it to analyze what he did but actually I have no idea how he did it... :huh: If he is over here it could be great that he could give us some tips ;)

As for what Iīve doing I think there is a problem with Pack3d and SH4 it seems not to manage the normal/specular/caustics maps correctly when repacking (well, itīs normal since it was designed for SH3 where this maps werenīt used...) But then, I have no idea how U-5000 did it...:damn:

I have this file for Yamato, but have the same problem. This dat is more small compared with the original... And have the same problem. It CTD my SH4... :rock:

BEST REGARDS
UBOAT234

DivingDuck 04-17-07 01:33 PM

Hi UBOAT,
Quote:

Originally Posted by UBOAT234
Hi DD,

I have try:
1) export 3d obj with Pack3d.
2) I have imported the same object, that I have exported, without to touch or save with software of 3d design. The original file exported, and it causes many changes and the result is that one in the previous image.

It import only to point TMAP. But it changes also other data...

...and I dont have a solution... :oops:

BEST REGARDS
UBOAT234

Pack3d doesnīt export this TMAP section. When trying to import your (original/altered) file back to the *.dat you have to do this by hex too. Thatīs how I did it with all the uboat interior files while working on open hatch.
Import to a dummy.dat file. Open the file and search for the object data, just the vertex coords. Triangle coords and texture coords donīt need to be touched. Copy these data and paste them before the TMAP section. Keep in mind that triangle and texture coords are located between vertex and TMAP. After all check/alter the size information for the data block.

Iīm not at home. Thatīs why I canīt give more detailed info. Hope to be back at my desktop pc tomorrow noon.

Regards,
DD

UBOAT234 04-17-07 01:35 PM

Pack3d
 
Many thanks DD :sunny:

BEST REGARDS
UBOAT234

GuillermoZS 04-17-07 01:45 PM

Quote:

Originally Posted by UBOAT234
Quote:

Originally Posted by GuillermoZS
Quote:

Originally Posted by UBOAT234

I search a solution from much time...
I hope to find one solution... But is Hard! :damn:

BEST REGARDS
UBOAT234

I know how you feel man, this is driving me nuts too... But itīs possible: a few weeks ago U-5000 did a mod of the Yamato with the Imperial Emblem:

http://www.subsim.com/radioroom/show...ghlight=yamato

Itīs perfect. I downloaded it to analyze what he did but actually I have no idea how he did it... :huh: If he is over here it could be great that he could give us some tips ;)

As for what Iīve doing I think there is a problem with Pack3d and SH4 it seems not to manage the normal/specular/caustics maps correctly when repacking (well, itīs normal since it was designed for SH3 where this maps werenīt used...) But then, I have no idea how U-5000 did it...:damn:

I have this file for Yamato, but have the same problem. This dat is more small compared with the original... And have the same problem. It CTD my SH4... :rock:

BEST REGARDS
UBOAT234

You are completelly right man, :lol: I just opened in 3ds max and, donīt know why, I didnīt tested it in the game before... :damn: My comp doesnīt crash but it looks just like the one I posted at the start of this topic...

Iīm trying now with other ships, letīs see what happens :hmm:

Madox58 04-17-07 01:51 PM

The SH4 ships use external skins.
Replace the chunks that call the outside skin and place the skins IN the dat.
Even in SH3, external skins cause problems for Pack3d.
I now do this as standard practice and have FAR fewer problems.
Once work is done, re-hex the dat to call outside skins.

GuillermoZS 04-17-07 01:54 PM

Quote:

Originally Posted by DivingDuck
Iīm not at home. Thatīs why I canīt give more detailed info. Hope to be back at my desktop pc tomorrow noon.

Regards,
DD

Really looking forward for it DD :up:

UBOAT234 04-17-07 02:26 PM

Pack3d
 
Quote:

Originally Posted by privateer
The SH4 ships use external skins.
Replace the chunks that call the outside skin and place the skins IN the dat.
Even in SH3, external skins cause problems for Pack3d.
I now do this as standard practice and have FAR fewer problems.
Once work is done, re-hex the dat to call outside skins.

Ok P,
between these two cfg#TXR_ I think?

http://immagini.p2pforum.it/out.php/...hexfuso009.jpg

BEST REGARDS
UBOAT234

Madox58 04-17-07 04:47 PM

http://i108.photobucket.com/albums/n...SH4/Remove.jpg

This is what has to go.
(Be sure to keep this chunk as we put it back after all work is done)

I'll get part 2 up shortly showing what to put in it's place.

Madox58 04-17-07 05:16 PM

Ok, open up NBB_Rodney from SH3 in Pack3d and a hex editor.

http://i108.photobucket.com/albums/n.../Install_1.jpg

Extract the above with the hex editor and save it to a file.
Note the ID's!!

Now extract this area with the hex editor

http://i108.photobucket.com/albums/n.../Install_2.jpg



We want to attach this to the end of the first block we extracted.
Note the IDs!!!


Change the ID's to match the ID's from part 1 and place it in the SH4 dat.
EXACTLY where we took out the multi skin stuff.

Reopen the SH4 dat in Pack3d.
If you did it right, it will open and show the new info and your almost done!!!

Now import the skin for the ship and go to work!!

Once done, reverse the process.

The whole swap takes about 5 minutes.
:up:

UBOAT234 04-20-07 05:41 AM

Pack3d
 
Hi,

Have completly remapped the sh3 NPPL, for sh4 with damage .obj and only one tex (the work not ended), without TMAP section. And it work fine.

http://immagini.p2pforum.it/out.php/t139223_nppl001.jpghttp://immagini.p2pforum.it/out.php/t139226_nppl003.jpghttp://immagini.p2pforum.it/out.php/t139227_nppl002.jpg

Have tried with unit of sh4 but failure all my thousand hex :hmm:
The problem is the completly remap of TMAP section?
Have try to duplicate a face and this face work fine, the original face is a disaster!

For fix the error in import .obj from pack3d, I have cancel some cfg#txr to .mtl file.
Here original extracted from Pack3d:
http://immagini.p2pforum.it/out.php/i139221_fix002.jpg

Here the edited:
http://immagini.p2pforum.it/out.php/i139222_fix001.jpg

Anyone have other info for rework/remap of the main hull, of unit sh4?


BEST REGARDS
UBOAT234

UBOAT234 04-20-07 05:48 AM

...
I think only the solution of privateer, is right.

Have try to import an .obj, after the insert of image?

BEST REGARDS
UBOAT234

GuillermoZS 04-20-07 06:33 AM

Outstanding work :up:
I have no idea about HEX editing, thatīs why I didnīt continue my efforts on importing ships... when you are ready, and if you have time, could you please post a tutorial/explanation on how to solve the textures issue? Or one about HEX editing?

Thanks and great work!

UBOAT234 04-22-07 08:02 AM

TMAP
 
Some information for TMAP, I think the big problem for rework unit.

To store information on texture maps EI uses a TMAP chunk. TMAP chunks are associated with an object. An object has one TMAP chunk for every texture that is applied to it. This chunk contains information about the texture image such as the dimensions of the bitmap image (this can be troublesome for the exporter as it simply cannot reference a texture map and output its name; rather, it must load the image header for the file from disk to determine its dimensions so that the exporter can store that information in the TMAP chunk). The TMAP chunk also stores the type of projection to use when it is being mapped onto the object. This seems like a very strange thing. Another chunk (TMEI) stores information on what the projection looks like but doesn't store the type of projection it represents! This is why the TMAP appears before the TMEI in the file. The TMAP chunk also includes information about the images bounding box.

If you do not import this chunk, you must delete the secondary image stored in folder unit: O01 and N01, but it work without MIPMAP render.
Is not the best solution ;)

BEST REGARDS
UBOAT234


All times are GMT -5. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Đ 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.