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 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-22-05, 04:24 PM   #7
sergbuto
Pacific Aces Dev Team
 
Join Date: Sep 2002
Location: Sweden
Posts: 1,331
Downloads: 15
Uploads: 0


Default

Sansal,

I tested your tool and tried to extract, modify and import back some objects and I see now why there is a problem with textures for reinserted objects.

Both lurbz's DATNavogator and your tool do not extract/write back the full information concerning 3D-object faces. This becomes a problem for objects which use more than one texture plate, such as hull+deck+bridge/superstructure which come together in a single block/combined object for all the ships in SH3.

Here is an extract from the lurbz's description of Type 1: 3D chunk
Quote:
triangle data: there are ntri triangles and their texture mapping, each one is as follows
vertex1: unsigned 2-byte int
vertex2: unsigned 2-byte int
vertex3: unsigned 2-byte int
texture coord1: unsigned 2-byte int
texture coord2: unsigned 2-byte int
texture coord3: unsigned 2-byte int
????????????: one byte
The byte with question marks which lurbz could not identify is actually the texture plate number out of those used for the object. Say, usually three textures are used for the hull+deck+bridge object of the SH3 ships, their numbers will be 0,1,2, respectively. The texture number is written in the faces section in the 13-byte step.

This needs to be taken into account in the tool upon extracting/importing objects. It is also important to find the way to take this into account when entirely new object using a few texture plates is imported as a part of the entirely new model, created externaly by some other program.
__________________
Serg's SH4 and SH3 pages
sergbuto is offline   Reply With Quote
 


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 06:49 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.