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-19-09, 06:31 PM   #1
XanderF
Samurai Navy
 
Join Date: Jun 2003
Location: Portland, OR
Posts: 554
Downloads: 14
Uploads: 0
Default How to flag whether a camera is obstructed or not?

Not sure I worded that well, BUT...

I'm thinking there is a simple flag to determine if a camera can be "blocked" by things or not. For example, if you raise both periscopes, and pan around with one...you can easily see that part of your view is blocked by the other periscope. (Indeed, if you don't raise your scope all the way, the view is blocked by the radar, bridge, etc)

So the periscope 'camera' is one that can be 'obstructed'.

On the bridge, though, using binoculars...you can pan all around. You can look through the very hull of the ship! Looking at the periscope shaft? Not to worry - you can see right through it! This bothers me - it seems there should be a way to set some views as 'obstructed'.

Indeed, the TBT seems like it should be aflicted much worse than the periscope - given where it is mounted, it seems likely that you couldn't really get much more than a 270 degree field of view from it (if that! The person using it would need to be hanging off the front of the bridge to 'aim' backwards that far!). I could have SWORN there was a mod out there which actually addressed this, but I can't find it, now. On the other hand, I'm betting this is also a pretty simple tweak to the cameras.dat, ergo the question. Might just be easier to mod the files I'm using, now.
__________________
XanderF is offline   Reply With Quote
Old 04-19-09, 06:38 PM   #2
LukeFF
Silent Hunter
 
Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
Default

The value you are looking for is ClipDistance, and it can be found in the CameraParams section for each respective camera view. The higher the value, the farther away the game will remove objects from the camera's view.
__________________


ROW Sound Effects Contributor
RFB Team Leader
LukeFF is offline   Reply With Quote
Old 04-19-09, 06:47 PM   #3
XanderF
Samurai Navy
 
Join Date: Jun 2003
Location: Portland, OR
Posts: 554
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by LukeFF View Post
The value you are looking for is ClipDistance, and it can be found in the CameraParams section for each respective camera view. The higher the value, the farther away the game will remove objects from the camera's view.
Gotcha. So, for my purposes, I want to set to '0' for the TBT and binocs (or, well, whatever the periscopes are using).

Any way to prevent the TBT from rotating all the way around, then, too? While having it obstruct the rear view suits my needs, the ability to point it "backwards" (even if obstructed) and still be looking through it seems rather silly.

EDIT: Actually, I see that in the dat file, too. Awesome! Lemme give that a shot... +/- 90 degrees seems about feasible.

EDIT #2: Hmmm...found a problem with this plan. The TBT appears to be in the wrong position! If setting the clip distance too low on it, the compass and engine telegraph obstruct the view. Camera appears to be about 0.1m too low! (Is this something that can be set in the 'cameras.dat', too, or is it boat specific?)
__________________

Last edited by XanderF; 04-19-09 at 07:04 PM.
XanderF is offline   Reply With Quote
Old 04-19-09, 07:23 PM   #4
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Quote:
Originally Posted by XanderF View Post
Gotcha. So, for my purposes, I want to set to '0' for the TBT and binocs (or, well, whatever the periscopes are using).

Any way to prevent the TBT from rotating all the way around, then, too? While having it obstruct the rear view suits my needs, the ability to point it "backwards" (even if obstructed) and still be looking through it seems rather silly.

EDIT: Actually, I see that in the dat file, too. Awesome! Lemme give that a shot... +/- 90 degrees seems about feasible.

EDIT #2: Hmmm...found a problem with this plan. The TBT appears to be in the wrong position! If setting the clip distance too low on it, the compass and engine telegraph obstruct the view. Camera appears to be about 0.1m too low! (Is this something that can be set in the 'cameras.dat', too, or is it boat specific?)
You'd be introducing a bug there if you did that. Although it's true the forwarwd TBT could only rotate 180 degrees, it was also true that there was an after TBT, which could also only rotate 180 degrees, but would cover the after half of the bearings. As the after TBT is not modelled in the game as a seperate station, you'd be removing the ability to take accurate bearings from aft, which you would be able to do in real life and thereby removing options that existed in real life. Unless you plan to mod in a second TBT station, I wouldn't remove that functionality from the one TBT.

To change the position of the camera for the TBT, have a look in the conning tower dat files - \data\objects\conning_Balao_01.dat for example and in there, there is a node called Dummy_TBT_NSS_Balao_Tower01 which is the TBT's position on the bridge for the camera.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 04-20-09, 09:52 PM   #5
XanderF
Samurai Navy
 
Join Date: Jun 2003
Location: Portland, OR
Posts: 554
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by Nisgeis View Post
You'd be introducing a bug there if you did that. Although it's true the forwarwd TBT could only rotate 180 degrees, it was also true that there was an after TBT, which could also only rotate 180 degrees, but would cover the after half of the bearings. As the after TBT is not modelled in the game as a seperate station, you'd be removing the ability to take accurate bearings from aft, which you would be able to do in real life and thereby removing options that existed in real life. Unless you plan to mod in a second TBT station, I wouldn't remove that functionality from the one TBT.

To change the position of the camera for the TBT, have a look in the conning tower dat files - \data\objects\conning_Balao_01.dat for example and in there, there is a node called Dummy_TBT_NSS_Balao_Tower01 which is the TBT's position on the bridge for the camera.
Aft TBT? On all boats? I don't seem to recall one on any of the subs I've been on - you sure about that? Where would it be mounted?
__________________
XanderF is offline   Reply With Quote
Old 04-21-09, 01:08 PM   #6
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

It would be mounted between the air search radar mast and the rear AA gun and ideally it would be on the centreline, so it could be sighted for accuracy on the jack staff. The Bowfin has one on her website page virtual tour, the Cobia and Silversides both have one on them as well.

The Bowfin virtual tour of the aft end of the conning tower has a nice close up view with binoculars attached, but that one appears to have been installed off centreline.

EDIT: I don't know 100% about them being installed on all classes of boat, perhaps DaveyJ would be able to help out with that one?
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 04-21-09, 01:56 PM   #7
Fish40
The Old Man
 
Join Date: Aug 2006
Location: Yonkers, NY U.S.A.
Posts: 1,507
Downloads: 154
Uploads: 0
Default

From the Bowfin:http://rds.yahoo.com/_ylt=A0geu6YyFe...ms/TBT/tbt.htm
Fish40 is offline   Reply With Quote
Old 05-15-09, 07:02 PM   #8
XanderF
Samurai Navy
 
Join Date: Jun 2003
Location: Portland, OR
Posts: 554
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by Nisgeis View Post
EDIT: I don't know 100% about them being installed on all classes of boat, perhaps DaveyJ would be able to help out with that one?
If so, how hard would it be, you suppose, to add a 'new' camera for it? IE., a second TBT? Rather trivial in the realism boost (having to move to the second one for 'aft' shots), but would be a nice touch if it didn't take a lot of effort.
__________________
XanderF is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 10:18 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.