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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-07-09, 06:05 AM   #1
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default Changing the initial position of the FreeCommandRoom camera?

Hi everybody,

I have been trying to modify the camera position for the different cameras. I think I figured out how to do this via the NSS_Uboat*_CR.cam files (via the EditObjPos controller). However, I don't know how to do the same for the FreeCommandRoom camera because there is no EditObjPos controller for it (I can modify the position in the camera.dat file, but then it is not sub specific).

I tried to add an EditObjPos controller to the NSS_Uboat*_CR.cam file and connected it to a new node in the NSS_Uboat*_CR.dat file, but it did not work

So, does anyone know how one can change the initial position of the FreeCommandRoom camera in a sub-specific way?

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 11-08-09, 12:30 PM   #2
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

No one any idea or tip ?

Where are the camera mod masters?

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 11-09-09, 01:21 PM   #3
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin LGN1,

you´ll have to add a new child node to your 'CommandRoomFreeCam' in 'cameras.dat', a 'CameraPositioner'. Add a sub entry pointing to the InteriorForeCam and you´ll have your FreeCam linked to the fore cam´s position. Thus the position will fit all subs.

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 11-09-09, 03:11 PM   #4
Uber Gruber
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I've absolutely no idea what you just said there Diving Duck,,,,,but it sounded brilliant!
  Reply With Quote
Old 11-09-09, 03:32 PM   #5
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Hi Diving Duck,

thank you very much for your help

Unfortunately, it seems I am missing something. I modified the camera.dat along the lines you describe and it now looks like this:

[img=http://img338.imageshack.us/img338/5092/s3d.th.jpg]

The 0x9579.....aa4 is the id of the InteriorFore camera node. I did not touch the InteriorFore camera node or anything else. However, the modified camera is still at its initial position. The only change I have realized is that after the change, the camera always jumps back to the initial position if I press Shift+F2

Do I have to change anything in the InteriorFore camera node? Or do I have to change the position of the FreeCommandRoom node? In this case I would not understand how it would be sub-specific if the relative position between the InteriorFore view and FreeCommandRoom view is sub-specific

Anyway, I hope it makes sense what I am telling and hope you have another tip for me.

Thanks a lot!

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 11-10-09, 10:05 AM   #6
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
Default

Moin,

this is how it works, from memory. So, forgive me any mistake. You will have to test it on your own.

If you set 'always' to '1' (true) then the values of the linked cam will be used when switching to free cam view. This however means you need to add as many sub entries as interior cams you want to switch to free cam view from. This is needed if you don´t want the free cam to always start at an initial position but in the position of the cam you came from. So, if you link InteriorFore to the free cam, then you will almost not recognize (all values set '1') when switching to free cam view (Shift+F2). But when you switch from any other cam to free cam, then you´ll be in the free cam´s intial position again. Let´s say you are in hydrophone view and go to free cam, you will find yourself in CR then. To avoid this, add one sub entry per interior cam and you will always start from the last cam´s view when switching to free cam. Don´t recall the behaviour when 'always' is unticked. So, that´s the bit you have to check out yourself. For the latest OH version (not yet released) I´ve always set 'always' to '1'.

Have fun testing,
DD
DivingDuck is offline   Reply With Quote
Old 11-10-09, 12:39 PM   #7
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Hi Diving Duck,

thanks for the reply! I will try it again and test. Just to be sure, I don't need to modify the nodes of any other camera, only the FreeCommandRoom node?

Edit: Everything works fine!

Thanks again, Diving Duck! I am eagerly waiting for your new open hatch masterpiece!

Cheers, LGN1

Last edited by LGN1; 11-10-09 at 12:54 PM. Reason: Understood it :)
LGN1 is offline   Reply With Quote
Old 11-10-09, 02:58 PM   #8
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Ok, I tested it further and everything works fine When pressing shift+F2, I now have a free camera in the middle of the sub

But, just for curiosity, it seems that I am exactly at the right horizontal place, but the view is either too low (if I set y-translation to true) or a tiny bit higher than the usual F2 view (if y-translation is set to false). It is really only a little bit higher, but just for curiosity I would like to understand why it seems I do never get exactly the F2 view

Anyway, thank you very much again, Diving Duck, for the help!

Cheers, LGN1
LGN1 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 04:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.