The ring theory part two
Based on this:
http://www.wowinterface.com/forums/s...ght=discokugel http://www.wowinterface.com/forums/s...ad.php?t=45817 Today after finishing my config I had some time to think about stuff. What really got me is that no-one has ever used scrollFrames to do stuff. I set up an experiment that I may try to prove if I have time. I made the following graphics: Basic ring setup: We put a scrollFrame with an inline texture into ring segment 1: This will happen if we change the setpoint of the scrollFrame and the setpoint of the texture inside the scrollFrame: This is what is going to happen if we only adjust the size of the scrollframe: What about rotation? Let's see. Hmm the offset does not fit. So this is what happens if we correct the offset. What we are doing in the last screenshot. We rotate the scrollFrame right while adjusting the setpoint properly. Additionally we rotate the ringTexture inside the scrollFrame in opposite direction. *edit* Ahhh...got an even better idea. Why would you rotate the scrollFrame at all? We can just leave as it is and just rotate the texture inside. This is what will happen: The pink thingy is the alpha layer of the ring texture. Now if we rotate the texture inside the scrollFrame it will adjust on it's own. This should make it very simple to create any kind of rings. Just set up 4 scrollFrames and throw in any ring texture you want. The number of rings per scrollFrames is unlimited. Each ring texture can be rotated individually. Only one limitation. Start and end point of a ring segment can only be in one segment if at least one point is at 0° or 90°. It even should be possible to do full half-rings with only 2 scrollFrames. Your ring texture would span 180° then. |
Tripped out :)
|
Hmm...actually I set down to prove the concept.
It works! Addon: http://www.wowinterface.com/download...rTestRing.html SVN: http://code.google.com/p/rothui/sour...5.0/rTestRing/ Free your mind. If I look at how simple that actually is I want back my time when I did rRingThing. Damnit. |
Quote:
|
This is superb.
There are just some major drawbacks to the texture rotation: It only works for mono-color and symmetrical textures. Otherwise, the illusion fails. |
Looks great, zork. I love your ideas. Your 'scroll frame revelation' made me laugh :p
It actually inspired me to try and use a scroll frame myself for some to-do list I'm working on. Sliding panel with transparent frames (so no lazy moving behind the parent frame) \o/ The possibilities... they are endless. Edit: You could also make a pretty cool experience bar with it. A full circle represents one level. You have a segment for the current experience, then a second segment starting at the end of the first one representing rested experience. If you make the second one semi-transparent, you could see how far it overlaps into the next level as well, something which traditional experience bars can't do. |
@Haleth
Nice one. @humfras You can cheat alot more if you have to. Atleast it's a huge improvement of what we currently had to do. The texture can use blending and gradients are possible aswell. Additonally you can use overlays or backgrounds. You can recolor on value change. You can even position another texture (spark) ontop of the ring. Lua Code:
On that note...I have not tested frame rotation which should be possible via animationgroups. Thus some could try to stack textures on a frame and rotate the full frame inside the scrollFrame. Another big plus is the ability of AnimationGroups. Sth like Animation > SetSmoothing is just nice to have. Quote:
|
Quote:
Dynamische Texturen (hier: sich verwindente Doppelstränge) brauchen zur Darstellung eine vorlaufende Sichtgrenze. Sollte ja möglich sein. Problematisch wird es, wenn dynamische Schattenverläufe nötig sind. Oder ist dies mit Overlay-Texturen möglich ('MaskTexture')? |
Lol...SetRotation has a bug. It does sth to my ring texture.
To get it to work properly I had to use the SQRT trick posted by Saiket here: http://www.wowinterface.com/forums/s...ad.php?t=36679 My code is: Lua Code:
Maybe it has sth to do with the mysterious 1px I read about. Going to try to snip out 1px of my ring. Afaik I read sth about it in Iriels ring theory. Thus every texture with a transparent outer edge needs to stay away from the texture edge by atleast 1px. Gonna try that. I think they did that to determine matching background colors or the like. Loooool. That worked. I stripped the outer pixel and BÄÄÄM. So when working with Texture:SetRotation() you have to make sure to do these:
|
The reason for the first bug you mentioned is just the way WoW decides to render the out of bounds area of a texture's image. It tends to duplicate the last pixel out past the bounds of the image in order to fill the rendering area of the texture. This has nothing to do with texture:SetRotation() and will show up if you use texture:SetTexCoord() with coordinates that extend out of bounds.
The problem in which the SQRT method fixes is that Blizzard chose to have a texture shrink so the corners of an image fit in it at a 45 degree angle whenever texture:SetRotation() is used. If you manually calculate the coordinates of the corners and set the texcoord yourself, this doesn't apply. Although it's probably easier and more efficient to just multiply the intended size of the texture object with SQRT(2) as shown by your code example. |
Thanks for the insight SDPhantom.
I'm on the way of creating an oUF layout from this. I really wanted to do this for a long time. Now I'm finally able to make it work properly. I'm currently setting up the orb templates in my GFX program. Currently I have two templates in mind that I want to bring to life. Outer ring templates It can be combined with an orb in the center. Thanks to SetPortraitToTexture() [http://wowprogramming.com/docs/api/S...raitToTexture] it is even possible to work with circular icon symbols. It may not seem that the icon is circular but in fact it is. Lua Code:
Result: So a template-idea can be adding a circular cast icon inside a circular castbar and ring unitframes. *edit* I made the code of the stuff above available via SVN: http://code.google.com/p/rothui/sour...5.0/rTestRing2 |
Love what I'm seeing here :)
|
|
The second layout I want to do is a revival of my oUF_Orbs mod (http://www.wowinterface.com/download...-oUF_Orbs.html).
The problem is the castbar icon. I think I have to put it somewhere else. |
*swoons* :o
|
Why not have the castbar circle the healthbar which circles the mana bar?
|
Looks amazing. :D
|
The bright colors and round shapes remind me of poké balls from Pokémon.
|
You get that those are only examples showing the technique behind the scenes right? I'm just showing options. Everything else is personal preference. Do whatever you want. You have the freedom to do so.
You can use any color. You can do quarter, half, full-rings. You can use any ring-width and so on ... |
Quote:
That looks kind of okay to me. |
All times are GMT -6. The time now is 11:01 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI