mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

dxDrawModel3D issues

Open chris1384 opened this issue 5 months ago • 0 comments

Describe the bug

These issues were stumbled while testing [DM] race maps and trying to improve the overall draw distance of the decorations, as they contain a lot of objects and slowloads occur most of the time. I've created a resource that grabs every object element and stores their info in a separate table, then render each one of them without any limitations.

Bugs:

  • on nightime, drawModels sometimes are rendered without any light update, making them bright as they appear in the day.
  • most of the time some drawModels are not properly being rendered, making them flash as they've reached the objects stream limit, or not render at all in the case of bushes, palms, traffic objects etc.
  • drawModels have the same area bugs behaviour as normal objects, see https://github.com/multitheftauto/mtasa-blue/issues/2729
  • engineStreamingRequestModel does not work properly in model crowded areas (?)
  • drawModels use ZYX (vehicles order) rotation instead of ZXY (objects order)
  • does not support objects with animated UVs (eg. waterfalls, casino signs)

Suggestion:

  • make drawModels have doublesided and alpha properties (maybe add color parameter?)

Screenshots: mta-screen_2024-09-16_02-21-19 mta-screen_2024-09-16_02-21-30 mta-screen_2024-09-16_02-19-17 ^ palms, neons, bridges, bushes are missing ^

Steps to reproduce

Try to improve draw distance.

Version

22721

Additional context

No response

Relevant log output

No response

Security Policy

  • [X] I have read and understood the Security Policy and this issue is not security related.

chris1384 avatar Sep 16 '24 03:09 chris1384