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-07-09, 06:25 PM   #1
thyro
Commander
 
Join Date: Mar 2006
Location: on a rock surrounded by water, that people call it UK
Posts: 473
Downloads: 31
Uploads: 0
Default

here are the pictures





Now the above 3D object appears black on SH4... what I'm missing here? Thanks
__________________
"The good news is that you’re never, ever more than 6 miles from land. The bad news is, the land is straight down!"


thyro is offline   Reply With Quote
Old 04-07-09, 08:53 PM   #2
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Your material has the same texture linked for the lightmap (ambient occlusion map) which is wrong. The lightmap is always a different texture, which contains lighting/shading info. Secondly, do you even have the texture coordinates for the lightmap (uv2) on the model? If not, then you should remove the 'yellow bulb' chunk, so the game can render the model with only a diffuse pass. If you do, then the 'yellow bulb' chunk should point to a proper ambient occlusion texture, for the ambient occlusion pass to work. If not, well, black...

Note: S3D behaves a little differently in some scenario's.
skwasjer is offline   Reply With Quote
Old 04-09-09, 07:45 AM   #3
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
Old 04-14-09, 04:16 PM   #4
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Thanks Seeadler, I think this relates to the same bug reported to me about 2-3 months ago via another forum. I will test this scenario in my local build when I can, but I think it is fixed already for next release (whenever that is!?). Unfortunately I'm horribly tied up IRL right now. Haven't touched S3D since January, my goals for final release have been postponed, and postponed... and postponed... Anyway, you get it...

But, at least there's a positive note to add that things are somewhat stabilizing so hopefully in some weeks...
skwasjer is offline   Reply With Quote
Old 04-18-09, 04:26 AM   #5
jean74
Medic
 
Join Date: May 2006
Location: Near Lake Leman and Geneva, FRANCE
Posts: 162
Downloads: 150
Uploads: 0
Default Damage model edit function

Hi Skwasjer,

First Many thanks for your incrédible soft S3D.

I use your version 0.9.4 for SH3 and I enjoy it very much.
On your website I have seen (on your screenshot page) that we can have an Damage model edit function.

But I'am unable to found and use it. Perhaps, this function will include in your next release.

Please, Can you confirm ?

Many thanks for your reply,

Best regards,

Jean

Ps Sorry for my bad english language.
jean74 is offline   Reply With Quote
Old 04-18-09, 06:07 AM   #6
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Hi jean74,

Yes, the zone editor is not yet available but will be in next release. I posted the screenshots a while ago because initial plan was to release that version somewhere late januari, but due to some critical flaws/bugs I haven't done so yet. I hope soon...

skwas
skwasjer is offline   Reply With Quote
Old 04-18-09, 06:54 AM   #7
jean74
Medic
 
Join Date: May 2006
Location: Near Lake Leman and Geneva, FRANCE
Posts: 162
Downloads: 150
Uploads: 0
Default Thank you

Thank you very much

for your answer and for your great job.
So I'm Waiting for your next release.

Have a good day,

Best regards,


Jean
jean74 is offline   Reply With Quote
Old 04-18-09, 04:28 PM   #8
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,710
Downloads: 300
Uploads: 0


Default

Hey; I was wondering if any Windows XP users are having problems with S3ditor? Since the most recent automatic update released by Microsoft, it crashes at startup, stating that it has "encountered a problem". I've been trying to fix it for hours - no luck.
iambecomelife is offline   Reply With Quote
Old 04-18-09, 04:39 PM   #9
vickers03
Ace of the Deep
 
Join Date: May 2007
Location: germany
Posts: 1,001
Downloads: 712
Uploads: 37


Default

Quote:
Hey; I was wondering if any Windows XP users are having problems with S3ditor? Since the most recent automatic update released by Microsoft, it crashes at startup, stating that it has "encountered a problem". I've been trying to fix it for hours - no luck.
recently updated too via internet explorer, frame network 3.5, no problems..
vickers03 is offline   Reply With Quote
Old 04-19-09, 02:45 AM   #10
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,710
Downloads: 300
Uploads: 0


Default

Never mind - problem solved.
iambecomelife is offline   Reply With Quote
Old 04-19-09, 05:34 AM   #11
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

iabl:

http://www.subsim.com/radioroom/show...304#post857304

Problem is a corrupted config file. Can be fixed by simply removing it.
skwasjer is offline   Reply With Quote
Old 04-21-09, 04:28 PM   #12
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Today tried to edit *.sim file by S3D and has received extra code ... Type 10 with rubbish ...?
Ver. 0.94

__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart 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:40 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.