-
-
Notifications
You must be signed in to change notification settings - Fork 470
Feature: dxDrawModel3d #3172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: dxDrawModel3d #3172
Conversation
(cherry picked from commit 279c8ac549fd58168e7968b056338111edd9ff79)
This is nice. I guess you trade performance for free object streaming slots? |
you can call it that |
Eh I'd argue this is faster than having objects, as they have a lot of overhead. |
There is a lot of commented out lines. I doubt that it should be merged in this "dirty" condition. But now it is too late to worry anyway. |
It's never too late to worry. #3210 |
Object is rendered at zero coordinates in any dimension other than 0. |
What about dxDrawModel2D? |
It will be enough just to call dxDrawModel3d inside a render target. |
wiki says no rendertarget support |
Of course there is no RT support now. But it can be easily added. |
This reverts commit f886a35.
Reverted in 5b44a09 as a result of dev discord feedback: TEDERIs — Today at 2:24 PM |
This pull request adds function to draw arbitrary model in simillar fasion as other dxDraw* functions
syntax:
bool dxDrawModel3d(model, position, rotation, optional scale)
( draw in onClientRender/onClientPreRender loop )You can draw as many objects as you want, it has no limits both amount of models and draw distance.
Rendered models has no collision, they look exactly the same as objects created using "createObject" ( possibly transparency will be an issue )
use cases:
example:


dxDrawModel3d(3276, -719.64984, 951.26685, 12.13281, 0, 0,90)
- as you can see, it look 1:1 as createObjectNo limits:

