multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.38k stars 424 forks source link

Ped Stop rendering with updatePosition = false on setPedAnimation #3576

Open gta191977649 opened 2 months ago

gta191977649 commented 2 months ago

Describe the bug

When the update position is false, ped rendering seems limited to a certain radius within the original ped's original position. This might be due to the game's default behaviour for rendering performance optimisation. However, in the case of making cutscenes, this becomes an issue since the rendering area for the ped is very limited. Screen: 20240717042925

Video: https://github.com/user-attachments/assets/b407c37a-1a97-46dc-a784-3ca97a9eb1cb

Steps to reproduce

Play the IFP from the attachment with the anim name: "Phil" and set the updatePosition = false option on a ped; you should see after the ped walks out several meters from the original, the rendering stops.

PC_conc.zip

Version

No response

Additional context

No response

Relevant log output

No response

Security Policy

https://github.com/user-attachments/assets/6d622359-15d2-42b0-8008-26a8cdf21e6b

T-MaxWiese-T commented 2 months ago

On my project I have a ped NPC resource and there the peds are invisible if they are in an interior other than 0. But I have not yet investigated whether I can fix the problem. I can imagine that it is related to this issue: https://github.com/multitheftauto/mtasa-blue/issues/375