![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
04-13-10, 09:39 PM
|
#11 | |
|
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
|
The general structure of a DAT-file is:
Code:
- material
- (optional) embedded image
- texture map (set to: Ambient Occlusion)
- (optional) embedded image
- root node
- model
- label (name of node/model)
- controllers (f.ex. UnifiedRenderControler)
- subnodes
For the AO-map, when using Max, you must ensure you use the correct import function (import UVW-file for AO-map, instead of extra OBJ-files). Obviously, you must have exported the UVW-file from Max. So you have: - model.OBJ (main model) - model-uv2.UVW (AO-map) The extra channels 3, 4 can be forgotten. The game does not use them, and they are left overs from the devs (iow. channels they used during design of the models). If you have an AO-map, you must have the UnifiedRenderControler. Again, check existing DAT-files on where to place the controller. It should be a child of the root-node, and placed before any subnodes, but after the label/model. Last, the order of each chunk is very important (a treenode = chunk). The order is indicated by the number in the name (and seen at the top of each chunk-page). You can move chunks up/down in this order using the green arrows. Again, check existing DAT-files (or reuse them) for the correct order. Quote:
[edit] Final note: before importing an OBJ-file, you MUST have set up the DAT-file with all the materials (use the same name or order as in Max), and have those materials assigned to the node that 'hosts' the model-chunk (the one you import into). If not done, the import may succeed, but will not yield correct rendering in most cases. Hope this helps, skwas
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
