Skip to content
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

Objects with alpha below 141 are invisible #425

Open
qaisjp opened this issue Sep 7, 2018 · 1 comment
Open

Objects with alpha below 141 are invisible #425

qaisjp opened this issue Sep 7, 2018 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@qaisjp
Copy link
Contributor

qaisjp commented Sep 7, 2018

Describe the bug
Devan_LT said:

setElementAlpha on objects with the alpha set to 140 or less will cause the object to be invisible.

To Reproduce
Steps to reproduce the behavior:

run o = Object(1337, me.position)
run -- walk out of obj, look at obj
run o.alpha = 140 -- obj now invisible

Expected behavior
It should not be invisible.

Additional context
TheGTA said:

The problem was that MTA did not adjust render states (ALPHAREF stayed 100). I fixed this alpha issue for vehicles and objects, currently eir fork only, by rewriting RenderEntity.

From https://bugs.mtasa.com/view.php?id=5623

@qaisjp qaisjp added the bug Something isn't working label Sep 7, 2018
@qaisjp qaisjp added this to the Backlog milestone Sep 7, 2018
@Fernando-A-Rocha
Copy link
Contributor

Still happens:
invisible: crun setElementAlpha(createObject(1336,getElementPosition(localPlayer)), 140)
visible transparent: crun setElementAlpha(createObject(1336,getElementPosition(localPlayer)), 141)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants