ppsspp icon indicating copy to clipboard operation
ppsspp copied to clipboard

Add ability to change camera near clipping

Open brianconnoly opened this issue 1 year ago • 3 comments

What should happen

PPSSPP should have setting to adjust camera near clipping distance

Playing PPSSPP VR, and moving camera to character head breaks all immersion because object disappear in front of you (

Who would this benefit

All PPSSPP VR players that want to play in first person camera

GTA Stories is great example of such game PPSSPP gives great stereo 360 image, and camera control, but lack of control over near clipping destroys possibility to play in first repson

Platform (if relevant)

Android

Games this would be useful in

ULUS-10041 Grand Theft Auto: Liberty City Stories

Other emulators or software with a similar feature

Every game engine has capability to change near/far distance Even some games has that setting (90s / early 00s)

Checklist

brianconnoly avatar May 07 '24 09:05 brianconnoly

@lvonasek

sum2012 avatar May 07 '24 21:05 sum2012

I will look into it during June.

lvonasek avatar May 08 '24 05:05 lvonasek

I did a quick test and when I set a near clipping plane using projection matrix then it does nothing in GTA.

lvonasek avatar May 15 '24 19:05 lvonasek

Did you zoomed close enough?

brianconnoly avatar Jul 24 '24 16:07 brianconnoly

Yes. The near clip plane is hardcoded in the code: https://github.com/hrydgard/ppsspp/blob/cc5763cffdb60488785e41bf2460e3df09d27a45/Common/VR/PPSSPPVR.cpp#L649

When I modified it, it had a zero effect on the games I tried.

lvonasek avatar Jul 24 '24 16:07 lvonasek