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.41k stars 438 forks source link

setCloudsEnabled causes problems with DX rendering #2060

Open MrDadosz opened 3 years ago

MrDadosz commented 3 years ago

Describe the bug If you set setCloudsEnabled to false and make script that renders 3D DX functions on custom object you won't see DX function even if it returns true. It's working when you are rendering DX function on standard GTA object, but not on object from editor/createObject. Video below.

To reproduce

  1. place an object
  2. setCloudsEnabled(false)
  3. move your camera, you will see disappearing markers
  4. setCloudsEnabled(true)
  5. everything is okay

Expected behaviour You should see DX functions on custom objects without clouds.

Screenshots https://youtu.be/oR9slwpErJ4

Version Multi Theft Auto v1.5.8-release-20809 Server with standard resources

Additional info https://www.mediafire.com/file/m7si51yj29ctk2n/MTA_DX_bug.zip/file https://www.virustotal.com/gui/file/028d9bc55433b0fa3d9d25338813beb51a42cd89650d7475c920b5476cbfe3f7/detection Start wb-policja, dadosz-markers, run script for teleport.lua in runcode

Einheit-101 commented 3 years ago

I just want to mention that my own material lines work fine, maybe it is interior / dimension related