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 01-30-07, 07:04 AM   #12
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Block 01 (3d object ) structure

01000000 block type dword
00000000 block subtype dword
00000000 block size dword
XXXXXXXXXXXXXXXX ID int64
XX unknown 1 Byte
number of vertex dword
then cames vertex data: 3 floats (x,y,z) repeats number of vertex times
number of faces dword
faces data : vertices (3 x word) ;texture coords 3x word; face material byte
The above values references index from the vertex/texture coords arrays.
number of texture coordinates dword
texture coordinates u,v float repeats number of texture coordinates
sometimes here cames a TMAP chunk (don't know what it is) I just skip it.

Ref
__________________
ref is offline   Reply With Quote
 

Thread Tools
Display Modes

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 01:55 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.