Log in

View Full Version : Changing the initial position of the FreeCommandRoom camera?


LGN1
11-07-09, 06:05 AM
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 :06: (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 :cry:

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

Cheers, LGN1

LGN1
11-08-09, 12:30 PM
No one any idea or tip :06: ? :wah: ;)

Where are the camera mod masters? :D

Cheers, LGN1

DivingDuck
11-09-09, 01:21 PM
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

Uber Gruber
11-09-09, 03:11 PM
I've absolutely no idea what you just said there Diving Duck,,,,,but it sounded brilliant!
:salute:

LGN1
11-09-09, 03:32 PM
Hi Diving Duck,

thank you very much for your help :up:

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] (http://img338.imageshack.us/i/s3d.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 :06:

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 :hmmm:

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

Thanks a lot!

Cheers, LGN1

DivingDuck
11-10-09, 10:05 AM
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

LGN1
11-10-09, 12:39 PM
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! :yep:

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

Cheers, LGN1

LGN1
11-10-09, 02:58 PM
Ok, I tested it further and everything works fine :yeah: When pressing shift+F2, I now have a free camera in the middle of the sub :up:

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 :hmmm:

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

Cheers, LGN1