View Single Post
Old 04-09-09, 07:45 AM   #1020
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Import problem

I have build a simple box in 3ds Max 9 and assigned to it a Multi/Sub material with 3 map ID's (red.tga, blue.tga, green.tga). The box is devided in 3 parts and the faces in each part has a material ID (assigned from top -> 1, 2, 3) and a uvw mapping in map channel 1, so in Max it looks correct.



I export the model to the obj format and open it in a different app which can read obj files and it also looks ok.


Now I import the obj model into a DAT file. The DAT contains the 3 textures (red.tga, blue.tga, green.tga) as separate materials and these materials are assigned to the box node but the preview is not correct and also not ingame (SHIII).



If I export this model again and import it into 3ds Max 9, the material ID's are re-assigned as in S3D and the uvw mapping is corrupted.

Requires each material its own mapping channel or does S3D not support the import of Multi/Sub material in one mapping channel in a correct manner?

Here is the MTL file of the box exported by 3ds Max 9
Code:
# Max2Mtl Version 4.0 Mar 10th, 2001
#
# Multi/Sub 01_-_Default (3) to come 
#
newmtl Material__25
Ka  0.5879999995 0.5879999995 0.5879999995
Kd  0.5879999995 0.5879999995 0.5879999995
Ks  0.8999999762 0.8999999762 0.8999999762
d  1
Ns  0
illum 2
map_Kd red.tga
#
newmtl Material__26
Ka  0.5879999995 0.5879999995 0.5879999995
Kd  0.5879999995 0.5879999995 0.5879999995
Ks  0.8999999762 0.8999999762 0.8999999762
d  1
Ns  0
illum 2
map_Kd blue.tga
#
newmtl Material__27
Ka  0.5879999995 0.5879999995 0.5879999995
Kd  0.5879999995 0.5879999995 0.5879999995
Ks  0.8999999762 0.8999999762 0.8999999762
d  1
Ns  0
illum 2
map_Kd green.tga
#
# Multi/Sub 01_-_Default done 
#
# EOF
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote