-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
alphaTransparent and "draw_last" flag doesn't change anything! #3124
Comments
Hi! |
I sent the resource to you on discord |
No idea tbh. Probably 127 and lower (less than 50%). |
Should be 100(or 140, depends on entity type). But probably better to use flag "no_zbuffer_write" for glass, in that case an alpha doesn't matter. But note that when alpha is less than beforementioned value the usage of flag "draw_last" loses its meaning because alpha testing takes the stage. |
100 is better to use in this case. |
And yes, this flag can produce unexpected results in some conditions. It's the specifics of GTA:SA transparent objects sorting. |
Please, create a test resource and attach to the issue. It would be easier to help with it. |
This is an important comment about distance. Because it explains the where the bug comes from and how to solve it. I have a possible solution but without a test resource cannot check the correctness of it. |
Okay, I just got the test resource. I have already responded in PM, but maybe it would be interested for someone else. This is not a bug actually, just a feature of GTA:SA renderer. The problem is quite common. Glass and other transparent objects must be a separate object. Without it glass isn't able to be sorted the correct way. Moreover, transparent objects must be separated so that a camera wouldn't be able to be positioned within the transparent object's bounding box. |
There is still bug with glass. Even with glass as separated object with alpha 100 |
Like I said, GTA SA rendering isn't perfect and has limitations. Seems like a glass object is too large to let SA handle it correctly. You cannot create one big object contains all transparent parts of a house. There are some considerations require you to separate all windows(but depends on the windows themselves) into isolated flat(not concave or convex) objects. |
Describe the bug
Setting the "DRAW_LAST" flag for the model still doesn't change anything and transparent models still don't show vehicles and other objects behind them.
alphaTranasparent is set to true in the engineReplaceModel function.
I think that flags still doesn't work correctly.
Steps to reproduce
Load the model with transparent materials
Version
Multi Theft Auto v1.6-release-21890
Additional context
No response
Relevant log output
No response
Security Policy
The text was updated successfully, but these errors were encountered: