SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-17-07, 12:26 PM   #16
GuillermoZS
Gunner
 
Join Date: Dec 2006
Location: Vigo, Spain
Posts: 100
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by UBOAT234

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

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... 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...
GuillermoZS is offline   Reply With Quote
Old 04-17-07, 12:28 PM   #17
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default 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...

BEST REGARDS
UBOAT234
UBOAT234 is offline   Reply With Quote
Old 04-17-07, 12:46 PM   #18
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default

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!

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... 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...
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...

BEST REGARDS
UBOAT234
UBOAT234 is offline   Reply With Quote
Old 04-17-07, 01:33 PM   #19
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

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...

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
DivingDuck is offline   Reply With Quote
Old 04-17-07, 01:35 PM   #20
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default Pack3d

Many thanks DD

BEST REGARDS
UBOAT234
UBOAT234 is offline   Reply With Quote
Old 04-17-07, 01:45 PM   #21
GuillermoZS
Gunner
 
Join Date: Dec 2006
Location: Vigo, Spain
Posts: 100
Downloads: 10
Uploads: 0
Default

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!

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... 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...
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...

BEST REGARDS
UBOAT234
You are completelly right man, I just opened in 3ds max and, donīt know why, I didnīt tested it in the game before... 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:
GuillermoZS is offline   Reply With Quote
Old 04-17-07, 01:51 PM   #22
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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.
  Reply With Quote
Old 04-17-07, 01:54 PM   #23
GuillermoZS
Gunner
 
Join Date: Dec 2006
Location: Vigo, Spain
Posts: 100
Downloads: 10
Uploads: 0
Default

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
GuillermoZS is offline   Reply With Quote
Old 04-17-07, 02:26 PM   #24
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default 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?



BEST REGARDS
UBOAT234
UBOAT234 is offline   Reply With Quote
Old 04-17-07, 04:47 PM   #25
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default



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.
  Reply With Quote
Old 04-17-07, 05:16 PM   #26
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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



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





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.
  Reply With Quote
Old 04-20-07, 05:41 AM   #27
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default 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.



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:


Here the edited:


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


BEST REGARDS
UBOAT234
UBOAT234 is offline   Reply With Quote
Old 04-20-07, 05:48 AM   #28
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default

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

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

BEST REGARDS
UBOAT234
UBOAT234 is offline   Reply With Quote
Old 04-20-07, 06:33 AM   #29
GuillermoZS
Gunner
 
Join Date: Dec 2006
Location: Vigo, Spain
Posts: 100
Downloads: 10
Uploads: 0
Default

Outstanding work
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!
GuillermoZS is offline   Reply With Quote
Old 04-22-07, 08:02 AM   #30
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default 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
UBOAT234 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:21 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.