![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-11-11, 01:44 AM
|
#1 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Like i say don't put hope to high it is not yet done but there is a good chance it would work. But for transparency i really think it would be very difficult to achieve in any way because we don't have access to the ocean shader it is hard coded. Even with dll injection i don't think it could be done. What i try once was to simulate the boat silhouette under water with a large particle system plane where i apply a render of the boat i did underwater in 3d program but when the plane move up and dow with the sub buoyancy it was not looking good at all. Will try to find early picture test of water flooding to show you how it would look if i can find a trigger like i say earlier. Best regards Hans |
|
|
|
04-11-11, 01:47 AM
|
#2 | |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Quote:
Ahh thats too bad it was hardcoded, I mean the did it when looking out of the water ( i watched your vids for HAHD) and when you were showing the sub on surface from under water you could see the conning tower and all of that) It makes no sense whatsoever why they wouldnt do the same when looking down in the water But at any rate, maybe you'll be able to figure something out, I have faith Also, is your mod going to change anything gameplay wise like GWX did too?? (Damage, realistic flooding, crush depths etc etc.) |
|
|
04-13-11, 08:08 AM
|
#3 | |
|
Pacific Aces Dev Team
![]() |
Quote:
Code:
ps_1_1
tex t0
texbem t1, t0
mad t1, t1, c0.w, c1.w
dp3_sat r0, v0_bx2, t0
lrp r0.xyz, r0.w, c0, c1
lrp r0.xyz, v0.w, t1, r0
+ mov r0.w, t0.w
// approximately 6 instruction slots used (2 texture, 4 arithmetic)
|
|
|
|
04-13-11, 12:46 PM
|
#4 |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia Ū
Posts: 2,481
Downloads: 122
Uploads: 1
|
![]() ps.1.1 tex t0 texbem t1, t0 tex t2 tex t3 mad t1, t1, c0.a, c1.a dp3_sat r0, v0_bx2, t0 lrp r0.rgb, r0.a, c0, c1 lrp r0.rgb, v0.a, t1, r0 +mov r0.a, t0.a mul r1, t3, t2 mul r1, r1, v1 lrp r0.rgb, r1.a, r1, r0 ********************* ps.1.1 tex t0 texbem t1, t0 mad t1, t1, c0.a, c1.a dp3_sat r0, v0_bx2, t0 lrp r0.rgb, r0.a, c0, c1 lrp r0.rgb, v0.a, t1, r0 +mov r0.a, t0.a
__________________
Alex Ū ![]() Moses said: "Don't create yourself an idol"... |
|
|
04-13-11, 04:50 PM
|
#5 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Uhhh what does all this stuff below me mean?? Translate it to english! PLEASE!! lol
|
|
04-13-11, 08:36 PM
|
#6 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
|
Just some OT comments (sorry
days ago i was looking at the Sh3 shadows issue again and as the ships (stock at least) have out of the box nice shadows and the uboats too (we can live without shadows on crew)...seems that the main problem is how to cast shadows over the water (ocean). The hard point is that the ocean isnīt a "visible" 3D object on sh3 files, so we canīt put on it the dynamicsShadows controller...so my question is : with the Seeadler's input above (ocean pixel shaders) we can have again some hope to have shadows cast on the water?
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
|
|
04-13-11, 10:03 PM
|
#7 | |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Quote:
|
|
|
04-13-11, 10:26 PM
|
#8 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
|
Yes itīs true. If we could change the water pixel shader perhaps we could have finally transparent water! Yeah!
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
|
|
04-14-11, 07:52 AM
|
#9 | ||
|
Pacific Aces Dev Team
![]() |
Quote:
In my widescreen dll I have hooked the DirectX function CreatePixelShader() and then dissassembled the buffer with the actual pixelshader code and dump it in a text file. Now I have every hardcoded pixel shader of SH3 as asm shader source code in separate files. Unbelievable but SH3 uses only 5 pixel shaders 1 = shadow shader 2 = water reflection shader 3 = water shader 4 = terrain shader 5 = ?????? in comparison SH4 approx 200 Quote:
Code:
ps.1.1 tex t0 mov r0, t0 ![]() This is just a proof of concept to change the pixel shaders in SH3 from external files such in SH4/5. It needs allot more work, ...extend to shader version 2.0, make use of more texture registers, storing own textures in the registers and so on... |
||
|
|
04-14-11, 11:58 AM
|
#10 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Outstanding work I try many time in the past year to make water transparency with no sucess but since i have experience in 3d i know that the reflexion use in shader might be the culprit to it. If you go in Scene.dat and go in EnvData controller there is a water opacity set to 255 even if you change the setting nothing change in game water remain exactly as before so you can clearly see that they were planning to implemented transparency but for a reason they abandon the idea. I also try to open the SeaInf.Raw in Env folder and change the alpha to get transparency and nothing change in game i wonder for what they use that file in game and you see here in Env.cfg it is active : [Environment] SeaTypeImageDimX=4320 SeaTypeImageDimY=2160 LandIDX=255 DefaultSeaType=0 SeaTypesNo=1 [SeaInfo01] StartDate=0101 EndDate=1231 SeaInfName=SeaInf.raw Compressed=NO [EnvColors] SeaType00=EnvColors_Atl.dat SeaType80=EnvColors_Med.dat SeaType150=EnvColors_Arct.dat [SkyColors] SeaType00=SkyColors_Atl.dat SeaType80=SkyColors_Med.dat SeaType150=SkyColors_Arct.dat I know how shader work but unfortunately i cannot read C++ shaders coding. Best regards Hans |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
