![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#301 |
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
|
![]()
I'll list here our current situation, TDW and Zedi can comment if you have something to correct:
Good things ![]() - High quality, functional ships imported from SH 4 with all maps and textures working - Illumination, sun affects ships lighting - Ships take damage from Deck Gun and Torpedoes - Damage graphics (holes and internal structure) show when looked underwater - Possibility to add SH 5 wakes - Animated, fully working Sh 5 crew - Possibility to add SH 5 or Sh 4 guns and instruments to ships - Basic importing is fast Bad things ![]() - Ships don't cast shadows - Ships don't reflect through water when looked above waterline - Illumination anomaly (wrong side of the ship illuminated) when camera is really close to ships - Damage graphics (holes and internal structure) don't show when looked above waterline - Guns are rendered completely black, Sh 4 guns show textures only when camera is really close to ships - Caustics show only on one side (SH 4 feature), Sh 5 caustics don't seem to work Uncertain things (haven't been tested yet) ![]() - Flooding modelling is unfinished - Some ships seem to bounce and roll too much when travelling |
![]() |
![]() |
![]() |
#302 |
Sea Lord
![]() Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
|
![]()
If im going wild and I create a ship in Max, how would I import it in SH5? Is that possible at all?
|
![]() |
![]() |
![]() |
#303 | |
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
|
![]() Quote:
![]() By the way, one weird thing I have noticed is that we can edit .val file, and the changes show, we can make a nice wake and foam, but why is .sim forbidden? I mean I can edit it in S3D or in Goblin, but haven't seen any changes in game. And it contains all the nice stuff, reflections, caustics and so on.... |
|
![]() |
![]() |
![]() |
#304 | |
Black Magic
![]() |
![]() Quote:
@ Rongel: if you look at the ships I sent you they all have the new SH5 wake controllers added. Look at the wakes (they even make their own waves at high speeds) ![]() |
|
![]() |
![]() |
![]() |
#305 |
Black Magic
![]() |
![]()
after much thought about why the caustics effect is only showing on one side (for DAT file units) I came to the conclusion that the shader isn't 'interpreting' the normal map correctly. More specifically since the normal map is mirrored to the other side of the ship it will pose problems for the caustics pixel shader (upon looking at what the caustics pixel shader was doing I was correct). So I made some changes to the caustics pixel shader
![]() Here's what I've done: the pixel shader takes the light direction and the texel normal and does a dot product on them (both of these are vectors). It then throws this into a saturate function which just clamps the value to between 0 and 1. Do you see the problem??? I do. If the light direction and texel normal basically point in the same direction (texel is facing light) the dot product value will be > 0. If they point in basically opposite directions the dot product value will be < 0 (texel is facing away from light). Recall the saturate function clamps to between 0 and 1. Now since the normal map is mirrored on the other side of the ship, the side facing away from the light will always have a dot product value < 0 (the light direction is from the object to the light source not the other way around). PROBLEM ![]() ![]() ![]() Last edited by TheDarkWraith; 05-05-11 at 01:08 AM. |
![]() |
![]() |
![]() |
#306 |
Ace of the deep .
|
![]()
Another problem solved , thankyou .
|
![]() |
![]() |
![]() |
#307 |
Black Magic
![]() |
![]()
Here you can see the effects of my Caustics PS change. Clearly you can tell the sun is shining on the other side of the ship
![]() Once again unlit side in brighter daylight. I increased the caustics effect range on the unit. Instead of rendering only to a little area next to the waterline it renders more up the side of the unit. Should it render even higher ![]() Last edited by TheDarkWraith; 05-05-11 at 01:09 AM. |
![]() |
![]() |
![]() |
#308 |
Ocean Warrior
![]() Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
|
![]() |
![]() |
![]() |
![]() |
#309 |
Black Magic
![]() |
![]()
Whoever wrote the Unified Render shaders needs their head examined
![]() [begin rant] Let's see....caustics effects.....they are sunlight reflections/refractions off the water onto the unit.....so why would someone model them as sunlight striking the side of the unit ![]() ![]() ![]() ![]() [/end rant] Almost all the problems (I believe) we are having with rendering units with .dat files is because of the shaders. Now I must pull out my reference books on shaders and do a little reading up/refreshing.... |
![]() |
![]() |
![]() |
#310 |
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
|
![]()
Great work TDW! I was concerned that the shader change would mess with other, regular ships, but nice to know it's only for the dat ships.
You know I did some progress too! I think I have eliminated the illumination bug/anomaly! I can use high LOD values, guns are rendered and the lighting is good! Ships take damage and it's seen underwater. I did few things: 1. Used SH 4 stock Normal Map (I think there may be something wrong with our maps) 2. Assigned one (and only one) material to DMG_col-nodes. It seems the material has to be the last of the list in dat-file. The one that has no cfg#TXR text, but just a "1" or "2". But yeah! We can take some of those Bad Things out of the list! ![]() Try it out when you have time! And shouldn't you be sleeping at this time? Here is beautiful morning already! |
![]() |
![]() |
![]() |
#311 |
Sea Lord
![]() Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
|
![]()
Even Bdu is very impressed with this work you guys do! Here, a present from papa Donitz
![]() ![]() |
![]() |
![]() |
![]() |
#312 |
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
|
![]() ![]() Some proof! Don't know if you can see it, but the guns aren't black anymore even when I'm far away from the ship. This wasn't possible before. EDIT: Whoa! Spilled my morning coffee! |
![]() |
![]() |
![]() |
#313 |
Sea Lord
![]() Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
|
![]() |
![]() |
![]() |
![]() |
#314 |
Seasoned Skipper
![]() Join Date: Jun 2007
Location: Bremen/Germany
Posts: 749
Downloads: 71
Uploads: 1
|
![]()
Hi,
i see that you are doing here a great job with converting ships from SH4 to SH5 and i beleave that you will fix all the small last problems. If you need some more units you can get my ships i have build for SH4, fore example some US DD´s like the Porter Class. ![]() PM me if you want them. Regards Maddy
__________________
AOTD is gone, iam the last survivor ........ |
![]() |
![]() |
![]() |
#315 | |
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
|
|