![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
10-08-14, 09:13 PM
|
#1 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Nobody knows even how to change the color from red to green? Possibly the depth cutout is hard coded into an EXE file somewhere, but it's hard to believe there isn't some file with RGB values for the display. The DDS files are actually green so there must be a shader someplace.
|
|
|
10-09-14, 11:51 AM
|
#2 |
|
Ocean Warrior
![]() Join Date: Dec 2007
Location: Between test depth and periscope depth
Posts: 3,018
Downloads: 175
Uploads: 16
|
To answer your second question, try the units cfg file. Specifically the surface depth entry. It's been some time since I've worked on that aspect but I believe that's where you want to look.
__________________
USS Kentucky SSBN 737 (G) Comms Div 2003-2006 Qualified 19 November 03 Yes I was really on a submarine. |
|
|
10-09-14, 05:28 PM
|
#3 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Not finding a units cfg file here.
|
|
|
10-10-14, 12:39 AM
|
#4 |
|
Ocean Warrior
![]() Join Date: Dec 2007
Location: Between test depth and periscope depth
Posts: 3,018
Downloads: 175
Uploads: 16
|
Sorry, NSS_Sargo.cfg. That make more sense?
__________________
USS Kentucky SSBN 737 (G) Comms Div 2003-2006 Qualified 19 November 03 Yes I was really on a submarine. |
|
|
10-10-14, 11:28 AM
|
#5 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Makes sense but no joy.
\Data\Submarine\NSS_Sargo\NSS_Sargo.cfg [Unit] ClassName=SSSargo 3DModelFileName=data/Submarine/NSS_Sargo/NSS_Sargo HumanPlayable=YES Interior=data/Interior/NSS_Salmon/NSS_Salmon UnitType=200 MaxSpeed=21 MaxSpeedSubmerged=8.75 Length=94.6404 Width=8.1788 RenownAwarded=130 [Salvo] 1=1,3,2,4 2=1,2,4 3=1,3,4 4=1,4 5=2,3 6=1,3 7=2,4 [Properties] PeriscopeDepth=16.7;meters SnorkelDepth=15;meters CrashDepth=40;meters MaxDepth=100;meters SurfaceDepth=5.061;meters TorpLaunchMaxDepth=30;meters StormConditions=9,0.1;max wind speed [m/s], max rain intensity [0,1] [EngineProperties] AllStop=0.00 AheadSlow=0.40 AheadOneThird=0.57 AheadStandard=0.80 AheadFull=0.94 AheadFlank=1.00 BackSlow=-0.26 BackStandard=-0.40 BackFull=-0.53 BackEmergency=-0.66 Nothing in there about radar. |
|
|
04-20-15, 06:15 PM
|
#6 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Well, in the library\us subparts\Sensors_sub_US.sim after comparing ID numbers to parent IDs in the dat file, I found the salmon/sargo SJ1 radar specs. Got a min and max height and a min and max sensor height, changing the min sensor height to -50 or whatever seems to have no effect. I know that number 55 in that file is the correct one because in addition to checking the ID with the parent ID I changed the sweep period from 20 to 6, and ingame the radar sweep takes 6 seconds instead of 20 for a complete rotation. I'd leave it that way (IIRC modern radar PPI scopes have a six second sweep) but then the sweep arc has to be changed from 9 degrees to 1 so it don't look weird, and the spike on the A scope don't look right either.
Questions not either self explanatory or explained by the descriptions; RPMDetLevel=0.0 - Detection level at percentage of maximum RPM (between 0 and 1). SkipSweep=true - When sweeping sensor skip invalid sectors. Okay, but what do those mean, what do they affect? |
|
|
05-01-15, 09:41 PM
|
#7 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
I'm keeping this thread going in the hope that someone will eventually know the answer to one of these two questions. Automatic shutoff depth for the SJ radar is 40 feet, since I got one of those flat calms today I was able to test this - the SJ antenna doesn't actually go under on the SARGO until a depth of 50 feet. Makes no sense that the SJ cuts off when the antenna is still 10 feet above the water, makes even less sense that the crew AI doesn't have enough brainpower to turn it back on automatically when it keeps cutting out in heavy seas, and makes zero sense that there isn't a simple way to adjust the cutoff depth.
|
|
|
05-04-15, 08:50 PM
|
#8 | |
|
Silent Hunter
![]() Join Date: Sep 2010
Posts: 3,969
Downloads: 153
Uploads: 11
|
Quote:
I can only take a guess, but I think the first is related to detection being a function of how fast the beam is sweeping by. |
|
|
|
05-05-15, 02:45 PM
|
#9 | ||
|
Eternal Patrol
|
Quote:
http://www.subsim.com/radioroom/showthread.php?t=115207 In the mod are Radar.dds, ppiCircles.dds, & in the Shaders folder is a fix for PPIRadarPS.fx by Anvart. The CT *.sims were included in a version 1.21. Readme: Quote:
![]() Screenshot from: http://www.subsim.com/radioroom/show...=115207&page=6 Last edited by aanker; 05-05-15 at 02:55 PM. |
||
|
|
05-05-15, 06:58 PM
|
#10 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
No mods in there so far, I'm up to page 15 and every link is a 404. The one post where he mentions a hack in the PPIRadarPS.fx file is a string:
So here's the change (orange is my addition) : float4 f=tex2D(fadetex,In.Tex0)+tex2D(grid,In.Tex1); I don't have in mine. float Fade:register(c0); float Intensity:register(c1); sampler map: register(s0); sampler grid: register(s1); sampler noise: register(s2); sampler fadetex: register(s3); struct PS_IN { float2 Tex0 : TEXCOORD0; float2 Tex1 : TEXCOORD1; float2 Tex2 : TEXCOORD2; float2 Tex3 : TEXCOORD3; }; float4 main( PS_IN In ) : COLOR { float gchan; float bchan; float mixedchan; float4 blur = 0; blur = tex2D(fadetex, In.Tex0); blur.r = 0; gchan = blur.g; bchan = blur.b; blur.rgb =0; mixedchan = (gchan+bchan) / 2; blur.g = mixedchan; int N = 7; float R = 0.08; float Rcolor = 0.005; blur = tex2D(map, In.Tex0); float4 color = tex2D(fadetex,In.Tex0); float4 ret=color;//+blur*0.25; bchan = ret.b; ret.g += bchan; ret.b -= bchan; ret.rb=pow(ret.g,8); ret.rgb = ret.grb; return ret; } I assume there's some way to edit this to replace R with G, but it's all Greek to me. I tried the PPIcircles.dds and radar.dds files when I first started looking at this, but one is already green and the other is blue. There's no way to combine blue and green to make red, so the color has to be somewhere in that PPIRadarPS.fx file. The CT*.sim files you mentioned (can't confirm this since all the filefront / rapidshare / whatever links are history) are probably range adjustments or something, if the color change preceded 1.21 it's unlikely to be in anything that wasn't in the first version. I'll look at it anyway; LightColor = R1, G209, B12 That's for the sonar indicator light, not the radar, but it is the kind of color adjustment that SHOULD HAVE been used for the radar someplace. Why in the world they would use RGB values in sim files for one piece of equipment and C code in a .fx file for another is beyond me, but it looks to me like that's what they did. What the SHControllers.act has to do with anything is a mystery but I'll look at that with a hex editor while I'm at it. |
|
|
05-05-15, 11:43 PM
|
#11 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Still don't understand how this works, but a direct substitution of R for G and G for R in the PPIRadarPS.fx file works;
float Fade:register(c0); float Intensity:register(c1); sampler map: register(s0); sampler grid: register(s1); sampler noise: register(s2); sampler fadetex: register(s3); struct PS_IN { float2 Tex0 : TEXCOORD0; float2 Tex1 : TEXCOORD1; float2 Tex2 : TEXCOORD2; float2 Tex3 : TEXCOORD3; }; float4 main( PS_IN In ) : COLOR { float rchan; float bchan; float mixedchan; float4 blur = 0; blur = tex2D(fadetex, In.Tex0); blur.g = 0; rchan = blur.r; bchan = blur.b; blur.rgb =0; mixedchan = (rchan+bchan) / 2; blur.r = mixedchan; int N = 7; float G = 0.08; float Gcolor = 0.005; blur = tex2D(map, In.Tex0); float4 color = tex2D(fadetex,In.Tex0); float4 ret=color;//+blur*0.25; bchan = ret.b; ret.r += bchan; ret.b -= bchan; ret.gb=pow(ret.g,8); ret.rgb = ret.grb; return ret; } Colored letters are what I changed, the color shows what letter was originally there - swap r and g except where it was obvious it shouldn't be swapped. (rgb is the correct order for programming, so grb might throw a wonky into the code, dunno why the ret.rgb = ret.grb string but it didn't look like something that needed to be changed since it was a straight reversal) And what that gets me is this; ![]() Gonna make a backup of that and see what I can do to tweak it. Rather than fooling around like I did I would suggest just copying the entire code as I pasted it above, unless 1.5 differs from the original that I have. |
|
|
05-06-15, 11:54 AM
|
#12 |
|
Eternal Patrol
|
Cool, nice detective work!
__________________
" Bless those who serve beneath the deep, Through lonely hours their vigil keep. May peace their mission ever be, Protect each one we ask of thee. Bless those at home who wait and pray, For their return by night and day." |
|
|
05-06-15, 01:11 PM
|
#13 |
|
The Old Man
![]() Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Main problem remaining is the sweep is pink, gotta figure out how to make that green.
|
|
|
05-06-15, 09:09 PM
|
#14 |
|
Silent Hunter
![]() Join Date: Sep 2010
Posts: 3,969
Downloads: 153
Uploads: 11
|
Yes, good work. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
