emoose / DQXIS-SDK

Wrapper DLL & SDK for Dragon Quest XI S

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First-person improvements

emoose opened this issue · comments

Would be sweet if we could improve the first-person camera, allowing movement / actions / etc..

Camera FirstPerson actually does allow movement already, but the camera height is far lower than your characters head.. changing UCapsuleComponent::CapsuleHalfHeight does seem to increase the camera height, but also seems to affect physics as well? Jumping also doesn't move the camera at all, guess it's not tied to the characters Z position or something.
(it seemed like Camera FirstPerson wouldn't let you change camera back too since Camera Reset didn't work after it, but actually Camera Normal seems to go back to the 3rd person camera fine, though the camera has to move from the previous spot where it was active for some reason)

E: latest commit adds INI settings for changing the height, and lets you change FirstPersonCamera action to use the movable camera instead.
NPCs dissolve/fade/dither away when getting close, this was an issue with the other first-person view too, would be nice to find out what's causing it.

E2: NPC dither should be fixed now, AJackPlayerCameraManager::CloseupHiddenControlCollisionComponent seemed like it was likely to be responsible, but changing the radius of it didn't seem to do much... luckily there was also an AJackPlayerCameraManager::SetHiddenControlBeginOverlapEnabled() function too which does seem to stop dither from happening (but I would have preferred lowering the radius instead...)

The normal DQXI first-person cam could probably use this fix as well, but since you can exit that camera with B/right-click we can't really tell when camera is switching back, so not that easy to revert the HiddenControl change... I've tried breakpointing when CameraStyle changes, but it kinda looks like the FirstPersonView isn't using CameraStyle to handle it ;_;

E3: alright, latest commit handles dithering in the normal first-person mode now too, no more NPCs disappearing when switching over :)
I think this issue is done, gonna make a new one for issues I've noticed with the movable camera.