SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REL] first/third-person-view cameras mod v1.0 (https://www.subsim.com/radioroom/showthread.php?t=120160)

Vorkapitan 08-11-07 12:50 PM

Quote:

Originally Posted by Vorkapitän
SERGBUTO,

What a marvelous mod....It really adds more depth to SH4.


I have a question, when in the new F5 view mode, and moving the mouse, the mouse is very jerky.. jittery etc. Is this what everyone is getting or do I have a problem with this laser mouse?

I forgot to add the brand name of the mouse. It is a Logitech FX610 laser mouse..
for anyone having similar problems.

Quote:

Originally Posted by lba
Not only does my camera seem stuck in a loop when going forward (not backwards) so moving anywhere is anything but easy,

Not sure what he meant by "loop", but when I use up-arrow to move forward, not only does the camera move forward, it also pitches up until I'm looking straight up in the sky. And when I use down-arrow to move backward, in addition to the camera moving back it also pitches down until I'm looking at the deck. If there was no limit on the vertical rotation, the camera would do a complete "loop" if I moved forward or back far enough!

I've got my hand totally off the mouse when this happens, so I don't think it's anything to do with the mouse. Anybody else experiencing anything like that?

DH[/quote]

DH,

Yes, I'm getting this also, but managed to work around it....wondering if this is causing all the problems?

sergbuto 08-11-07 01:57 PM

Quote:

Originally Posted by DirtyHarry3033
Not sure what he meant by "loop", but when I use up-arrow to move forward, not only does the camera move forward, it also pitches up until I'm looking straight up in the sky. And when I use down-arrow to move backward, in addition to the camera moving back it also pitches down until I'm looking at the deck. If there was no limit on the vertical rotation, the camera would do a complete "loop" if I moved forward or back far enough!

From this description, it sounds like it could be a driver thing.

vodkamike 08-11-07 02:06 PM

Exactly!
 
Quote:

Originally Posted by John Channing
You can walk the camera to the friggin bow and scream "KING OF THE WORLD" if you want!

This is very nice work...


JCC

I feel like Leo now :D

It's really a great feeling to be able to walk around on your own ship, it's really adds greatly to the experience...

A big attaboy for ya, Sergbuto!

DirtyHarry3033 08-11-07 03:28 PM

Quote:

Originally Posted by sergbuto
Quote:

Originally Posted by DirtyHarry3033
Not sure what he meant by "loop", but when I use up-arrow to move forward, not only does the camera move forward, it also pitches up until I'm looking straight up in the sky. And when I use down-arrow to move backward, in addition to the camera moving back it also pitches down until I'm looking at the deck. If there was no limit on the vertical rotation, the camera would do a complete "loop" if I moved forward or back far enough!

From this description, it sounds like it could be a driver thing.

Hmm, what driver? I've tried killing my Logitech stuff in Task Manager and still does it. Also killed my Nostromo Speedpad stuff and disconnected the Speedpad, still does it. So I'm not sure what else to try killing, to pinpoint the prob.

Keyboard is Saitek Eclipse, afaik there are no special drivers or software loaded for it, so nothing to kill there.

Any other ideas what I should kill?

DH

lba 08-11-07 03:59 PM

Quote:

Originally Posted by DirtyHarry3033
Quote:

Originally Posted by lba
Not only does my camera seem stuck in a loop when going forward (not backwards) so moving anywhere is anything but easy,

Not sure what he meant by "loop", but when I use up-arrow to move forward, not only does the camera move forward, it also pitches up until I'm looking straight up in the sky. And when I use down-arrow to move backward, in addition to the camera moving back it also pitches down until I'm looking at the deck. If there was no limit on the vertical rotation, the camera would do a complete "loop" if I moved forward or back far enough!

I've got my hand totally off the mouse when this happens, so I don't think it's anything to do with the mouse. Anybody else experiencing anything like that?

DH

Well that's a better description of my problem. Yes it's not a full loop, but I play too much fligth sim so it sort of feels like I'm setting up for one. :ping:

I have still no idea what it could be. A driver issue? Maybe, but it works perfectly well on the normal external free cam, so it's unlikely, or? :hmm:

DirtyHarry3033 08-11-07 04:44 PM

I thought that's what you meant ;)

I've been flying flight sims for over 20 years, and that's exactly what it looked like to me, like I was in a plane flying a loop - moving forward, pitching nose-up and gaining altitude all at the same time.

Seems to me like when camera is moving forward/backward, there is a fixed "rotation point" that the camera is moving around.

Another strange thing, I get no forward/backward movement at all, until I hit the limits of the camera's ability to rotate up or down. In other words, if I move "forward" until the camera is rotated up 45 degrees, then move "back" an equal amount so the camera is level again, I'm at the same position on the bridge as where I started.

But if I hit the camera's rotation limit, I'll start moving in the chosen direction.

It's also worth noting that I can "work around" this by constantly pulling the mouse backward as I move forward, or shoving the mouse forward as I move back. That way, the camera remains more or less "level", I don't do "loops", and I start moving forward or backward immediately.

I don't think it's a driver issue. I've killed my mouse drivers (and besides this particular problem happens without using mouse at all) and also my Nostromo Speedpad drivers (which emulate a keyboard) and it still happens.

As far as the external free cam working fine, afaik that is different from the bridge cam. Bridge cam I think was only intended to rotate around a single, fixed point whereas free cam was intended to go anywhere.

Hmm, I wonder if it would be possible to replace the bridge cam with a free cam that starts on the bridge? And with no collision detection? Wish I knew how to mod, I might try it...

DH

Vorkapitan 08-11-07 07:02 PM

BUMP!

One thing I've noticed, if I hold a mouse button, I can move, fordward, mouse button 2 when held down will work, but when I let go of it, it takes me to the control room.

BTW, what mods have you got loaded?

AkbarGulag 08-11-07 11:25 PM

Awesome MOD SergButo... I like it.. I like it alot :up:

W_clear 08-12-07 02:08 AM

I need ti for a lang time.THANKS

alexoscar 08-12-07 03:39 AM

First/Third-person-view cameras installed and working wonderfully. I only write this to say you:

THANK YOU!!!

This game is a big game (just like SH3) because the modders. You (all of you) are our modern heroes :up:

Regards.

CaptainCox 08-12-07 06:01 AM

Brilliant mod this! just installed it and checked it out...brillliant!:up:

Dutchtub 08-12-07 10:04 AM

Quote:

Originally Posted by sergbuto
The mod introduces a first-person-view free-walk camera for the conning tower bridge instead of a static camera. It also replaces an external unit-view camera with a camera which allows for much closer viewing distance and which is not reset to a default view on switching between units with keys ">" and "<".

When surfaced, a player will be able to freely move through the bridge and the deck of the sub in the "F5" view. This is kind of a replacement of the "shift-F2" option which existed in v1.0 and 1.1 of the game. However, this time the player will be moving together/riding on the sub which makes it even better.


The reason for changing the external unit-view camera (">" and "<" view) is that in the stock version the closest viewing point is still quite far from the unit, especially when compared with that in SH3. Now it is possible to view units at much closer distance. This comes at some expense though. When using the left and right arrow keys, the rotation will be around the observation point, not around the unit. On the other hand, switching between the units will not reset the camera to the default position but keep the current position and orientation which I have found to be quite handy. Let you avoid doing zooming-in again and again upon switching to another unit.

Although, I am mostly satisfied with what I wanted to achive, I have not been able to eliminate a bug (due to lack of time) which was introduced with my changes to the external unit-view camera. It often happens when fully zoomed-in onto the unit to the extend when the camera is colliding with the unit collision spheres and starts to go around the unit, as in case of the external "F11" camera, in this situation an attempt to switch to another unit may drive the camera in a buggy state by placing it at an arbitrary position, quite far and away from the unit. I try to move camera a bit back and away from the colliding state before switching to another unit. In any case the player would barely need such extremely zoomed-in views anyway.

Despite the bug I decided to make this mod available because I will not have much time to continue to work on it for a few upcoming weeks. After that, I will try to improve the mod.

Download is available on my site.

A few screenshots on what can be done in the F5 view

http://usx218.fysik.uu.se/users/Serg.../cameras01.jpg

http://usx218.fysik.uu.se/users/Serg.../cameras02.jpg

http://usx218.fysik.uu.se/users/Serg.../cameras03.jpg

http://usx218.fysik.uu.se/users/Serg.../cameras04.jpg

http://usx218.fysik.uu.se/users/Serg.../cameras05.jpg

http://usx218.fysik.uu.se/users/Serg.../cameras06.jpg

http://usx218.fysik.uu.se/users/Serg.../cameras07.jpg

Outstanding work , maybe one day inside boat yes ? :sunny:

John Channing 08-12-07 10:11 AM

Shift F2 already allows you to walk around the Control Room and Conning towers.... and that is all that is available inside the boat.

JCC

Digital_Trucker 08-12-07 11:17 AM

Thanks, Sergbuto, for this great new way to look at the world. I managed to get seasick yesterday standing on the bow looking at the living breathing ocean. :up:

DirtyHarry3033 08-12-07 12:59 PM

Like a couple other guys, I've had problems with very jerky views when using mouse to look around in the F5 view, and also with the camera acting like you're doing a "loop" in a plane when moving forward/backward with the arrow keys.

Well I've found "fixes" for both of these issues. They work for me anyway, YMMV.

The "looping" effect is apparently caused because the default F5 view used the arrow keys to rotate left/right and look up/down. In the modded F5 view, they are now used to move around, i.e. forward/back/left/right.

But for some reason (on my system anyway) they are still rotating the view as well. Not sure why, looks like Sergbuto took out the x-y axis rotation in Cameras.dat for the F5 camera. :hmm: At any rate, in addition to doing the new function of changing the camera position, they are also still rotating the camera as was originally done.

Anyway, I fixed this by editing Commands.cfg. The following commands rotate the camera up/down/left/right, and are bound to the arrow keys:

[Cmd80] Name=To_left
[Cmd81] Name=To_left_fast
[Cmd82] Name=To_left_slow
[Cmd83] Name=To_right
[Cmd84] Name=To_right_fast
[Cmd85] Name=To_right_slow
[Cmd86] Name=To_up
[Cmd87] Name=To_up_fast
[Cmd88] Name=To_up_slow
[Cmd89] Name=To_down
[Cmd90] Name=To_down_fast
[Cmd91] Name=To_down_slow

I originally tried just commenting out the keymapping, but that also kills ability to rotate with mouse. So I rebound them to KP4 and KP6 for left-right, and KP3 and KP9 for up-down.

For each command, comment out the Key0= line which is the one bound to arrow keys and replace it with the appropriate KP binding. I'm listing them below, with a comment after each as to whether it's normal, fast or slow speed. Copy to the appropriate command, i.e. copy Key0=0x64,Rsn,"" to the command To_left_fast.

Left:

Key0=0x64,Rn,"" (Normal)
Key0=0x64,Rsn,"" (Fast)
Key0=0x64,Rcn,"" (Slow)

Right:

Key0=0x66,Rn,"" (Normal)
Key0=0x66,Rsn,"" (Fast)
Key0=0x66,Rcn,"" (Slow)

Up:

Key0=0x69,Rn,"" (Normal)
Key0=0x69,Rsn,"" (Fast)
Key0=0x69,Rcn,"" (Slow)

Down:

Key0=0x63,Rn,"" (Normal)
Key0=0x63,Rsn,"" (Fast)
Key0=0x63,Rcn,"" (Slow)

Goes without saying, make a backup of Commands.cfg before you do this!

This completely fixed the problem of the camera rotating when moving, on my system. I can now move forward/back/left/right and the camera doesn't rotate at all.


OK, the problem of the "jerky" mouse views I fixed by editing Cameras.dat. I used skwasjer's awesome Silent 3ditor for this. Maybe you could also use SH3 MiniTweaker, I didn't try so I can't say...

Naturally, back up your Cameras.dat before you start!

Run Silent 3ditor and load C:\Program Files\Ubisoft\Silent Hunter Wolves of the Pacific\Data\Library\Cameras.dat.

Open the node "_Dummy_Cam_ConningDeck", then open "FreeMove" under that node. Click "Properties". In the right-hand pane, expand the "FreeMove" branch if it's not already expanded.

You want to change 3 values. The original values are:

RotationSpeed=120
RotationInertia=0.05
RotationRun=2

Change all 3 of these values to 0:

RotationSpeed=0
RotationInertia=0
RotationRun=0

and save the file. This totally eliminated the "jerky" mouse movements on my system :up: I can look around with the mouse and it's as smooth as it was before the mod!

Hope this info is useful to someone! :yep:

DH

lba 08-12-07 04:25 PM

Quote:

Originally Posted by DirtyHarry3033
Like a couple other guys, I've had problems with very jerky views when using mouse to look around in the F5 view, and also with the camera acting like you're doing a "loop" in a plane when moving forward/backward with the arrow keys.

Well I've found "fixes" for both of these issues. They work for me anyway, YMMV.

<...>

Hope this info is useful to someone! :yep:

DH

Yes it worked! Thank you, thank you, thank you! :up:

Edit: Okay a small but annoying problem came from this. I can no longer use the arrow keys on the plotting map. I can scroll using the edges or click/drag with the mouse, but the arrow keys are not working anymore. So was that because I "For each command, comment out the Key0="? I wonder what would happen if I don't comment them out...... :hmm: Do I also have to name them Key2= so it doesn't conflict with the other key0=? And would this even work, I mean I guess the arrow keys will try to do two things in the f5 free cam now?

Edit: Well I set them to key2, and I got down and right to work on the map, but then those two did not work in the F5 view anymore and were back to rotation/loop.

Vorkapitan 08-12-07 07:22 PM

DirtyHarry3033,


Thank you for taking time to resolve this problem for us.

Yes, there is a minor glitch..but I'm confident that it will soon be resolved.

Thanks again. :up: :up: :up: :up: :up:

DirtyHarry3033 08-12-07 07:41 PM

Quote:

Originally Posted by lba
Edit: Okay a small but annoying problem came from this. I can no longer use the arrow keys on the plotting map. I can scroll using the edges or click/drag with the mouse, but the arrow keys are not working anymore. So was that because I "For each command, comment out the Key0="? I wonder what would happen if I don't comment them out...... :hmm: Do I also have to name them Key2= so it doesn't conflict with the other key0=? And would this even work, I mean I guess the arrow keys will try to do two things in the f5 free cam now?

Edit: Well I set them to key2, and I got down and right to work on the map, but then those two did not work in the F5 view anymore and were back to rotation/loop.

Hmm, sorry there is a problem :oops: I meant to say in my original post that there might possibly be some problems or something else broken by messing with the keymappings, but you can see I tend to run my mouth too much (grin) and I totally forgot!!! I did all the things I normally do using arrow keys and everything worked fine...

At any rate, don't think I've ever used the cursor (or any other) keys on the plotting map - always have used mouse wheel to zoom, and click-drag to move the map so I didn't notice this problem.

If you really want to use the plotting map with the keyboard, you can do so using the KP4, KP6, KP9 and KP3. Just tried it and it works great! Sure it's something new to get used to, but it's offset by not getting "seasick" with Sergbuto's mod, right???

Glad I was able to actually give something back for a change (if I actually did...) !!!!

DH

DirtyHarry3033 08-12-07 07:49 PM

Quote:

Originally Posted by Vorkapitän
DirtyHarry3033,


Thank you for taking time to resolve this problem for us.

Yes, there is a minor glitch..but I'm confident that it will soon be resolved.

Thanks again. :up: :up: :up: :up: :up:

No prob Joe! This mod was so close to what I've wanted since the 1.2 patch destroyed the Shift-F2 view, but the jerkiness and the camera rotations made it almost useless for me. So somehow I managed to "fix" both probs despite not having a clue how do do it, and now it's my favorite mod!

Thought I'd share what I found, and I'm glad if it has helped others. Now all I'm waiting on for it to be perfect is the ability to "walk the deck" of other ships! I'm trying to find out how to do that but no luck yet :damn:

DH

lba 08-12-07 08:07 PM

I’m new to this so I just walk on until I hit a wall. I have a temporary solution now for the map keys. Hopefully I can explain it well. I used the SH4 Keyboard Configurator to find keys that were not in use, I quickly learned that list wasn’t exactly correct as L was listed. That’s used for lock isn’t it? Anyway for now I landed on “r-f-g-h”. F=left, H=right, G=down, H=up. I then I added a Key1 or Key2 depending how many there were before. Then I gave it the command properties of the original arrow keys, and finally I put that at the bottom of each [ cmd(X) ], The results were that I can now use “r-f-g-h” to move the navigation map around, and the F5 custom free cam now also works as Sergbuto designed it I guess. The camera is now steady when using the mouse and it goes straight when I use the arrow keys. Additionally I can use the “r-f-g-h” keys to tilt and angle the camera the same way you can do with the mouse.

My changes (including DirtyHarry3033 changes):
Quote:

[Cmd80]
Name=To_left
Ctxt=1,2,3,5,6,9,11
MnID=0x31000001
Key0=0x64,Rn,""
Key1=0x46,R,"F"

[Cmd81]
Name=To_left_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x64,Rsn,""
Key1=0x46,Rs,"F"

[Cmd82]
Name=To_left_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x64,Rcn,""
Key1=0x46,Rc,"F"

[Cmd83]
Name=To_right
Ctxt=1,2,3,5,6,9,11
MnID=0x31000003
Key0=0x66,Rn,""
Key1=0xb0,R,""
Key2=0x48,R,"H"

[Cmd84]
Name=To_right_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x66,Rsn,""
Key1=0xb0,Rs,""
Key2=0x48,Rs,"H"

[Cmd85]
Name=To_right_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x66,Rcn,""
Key1=0xb0,Rc,""
Key2=0x48,Rc,"H"

[Cmd86]
Name=To_up
Ctxt=1,2,3,5,6,9,11
MnID=0x31000002
Key0=0x69,Rn,""
Key1=0x52,R,"R"

[Cmd87]
Name=To_up_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x69,Rsn,""
Key1=0x52,Rs,"R"

[Cmd88]
Name=To_up_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x69,Rcn,""
Key1=0x52,Rc,"R"

[Cmd89]
Name=To_down
Ctxt=1,2,3,5,6,9,11
MnID=0x31000004
Key0=0x63,Rn,""
Key1=0xb1,R,""
Key2=0x47,R,"G"

[Cmd90]
Name=To_down_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x63,Rsn,""
Key1=0xb1,Rs,""
Key2=0x47,Rs,"G"

[Cmd91]
Name=To_down_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x63,Rcn,""
Key1=0xb1,Rc,""
Key2=0x47,Rc,"G"
I hope I got that right. And remember I'm shooting blind so if anyone sees a problem with the keys I chose say the word. :up:


All times are GMT -5. The time now is 09:12 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.