Why does a mask object automatically flip an art horizontally?
Hi all,
Just for testing, I have made a parallelogram texture and applied this on a plain texture object as well as on a texture object with a mask object. The first one draws an art as it is while the second one automatically flips an art horizontally... Here's an exact code snippet: Lua Code:
Is this an intended behavior of a mask object? Thank you! |
Hi, in my experience with masking in wow it doesn't..... some code I just tested using a mask created in gimp that turns any texture in to a circle works fine.
Code:
local tex = Frame:CreateTexture(nil, "ARTWORK", nil, 0); |
Quote:
I can confirm this problem exists, because I created all these mask textures: When rendered in game, most of them are wrong, so I had to map the opposing mask to the texture it was meant for. |
Didn't they fixed this? Maybe it's just not live yet.
|
Quote:
Notice how I swapped M1 left/right with the corresponding masks for M2. Lua Code:
From a programming perspective, I would imagine whoever implemented this only used symmetrical textures (as most masks are) during testing. |
Quote:
|
and what do you mean "Rendered in game" You don't render a mask, in fact is the complete opposite of that.
|
and secondly, why all the different colors? The engine uses Mask Alpha only
|
Quote:
Mask textures are still a bit buggy. |
I've has look further in to this and th reason I can't replicate the problem is becuase all masks i use are symmetrical, but that is how masks are in C. So for me the behaviour of the function is expected. The problem you are seeing may well be result of the raster operations performed to make the mask "work" for the want if a better word. It will likely combine bitwise and/or to crop out the mask and then apply srcalpha at the end. This is and has been the standard way of masking for a long time, and it is the fastest to my knowledge. However the result of the raster operation are a flipped image. Which may well be why you don't see asymmetrical masks in the bliz art.
|
Quote:
Quote:
Quote:
You must be new here. :rolleyes: |
New yes, but I'm finding my feet and I believe I have something to offer as well as learn a thing or two myself.
|
I poked a dev, it's gonna be looked into.
|
This issue was fixed in 7.3.5.
|
All times are GMT -6. The time now is 06:52 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI