View Single Post
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 03-26-2020 , 23:06   Re: Coordinates of the player's camera first person view
Reply With Quote #12

Here's what I found!
I made a demo using source_tv to get a side view, that's what I got:

If the view is from the first person
https://forums.alliedmods.net/attach...1&d=1585277667
Correct location of the camera, repeating the animation, but the center of the point for attaching the camera is shifted to the feet of the 3D model of the player.
There is an error in the camera movement when the player looks up or down.

If the view is from a third person(from the side)
https://forums.alliedmods.net/attach...1&d=1585277687
Incorrect location of the camera(behind the 3D model of the player), the animation of the player's movement (left-right/up-down view) is not repeated at all.

The player's entity consists of 2 connected 3D models:
- One v_model (first-person view).
- The other is the view of the model from the side.
Obviously, I attach the camera to the player's model with a 3-person view (side view).
Attached Images
File Type: jpg ent_cam.jpg (68.8 KB, 224 views)
File Type: jpg ent_cam01.jpg (61.3 KB, 172 views)

Last edited by tonline_kms65; 03-26-2020 at 23:33.
tonline_kms65 is offline