Quantcast
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO Tools & Utilities for Developers


Post A Reply
Author Comments Comment Options
Unread 10-07-2013, 07:17 PM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 136
File comments: 179
Uploads: 12
Compositing

Here are a few more facts I've picked up after playing with it for a while:
  1. The BlendMode property, which applies to the Background image, really only supports the AlphaBlend mode. If you set BlendMode to another value, the image will either not be displayed at all, or it will be displayed in AlphaBlend mode.
  2. The BackColorBlendMode property, which applies to the BackColor, does seem to support all values of BlendMode.
  3. The BackColor (if not nil) for a given window is composited on top of the Background image.

The descriptions of the blending modes aren't very good in the Wiki, but the names seem to be somewhat industry standard, so you can refer to better documentation elsewhere, e.g. Wikipedia.
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-03-2013, 03:54 AM  
Lynx3d
The Undefeated
Interface Author - Click to view interfaces

Forum posts: 7
File comments: 3
Uploads: 1
Yes compositing is hard to understand, especially with the sparse documentation.
Each window has its own compositing layer it seems, and controls just draw on it...but only until the (undocumented) stretch modes come into play.

How background color and background(-image) work together also isn't really documented, I really had to try&error for my plugin until it worked, and I propably won't touch it again any time soon.

Just looked at Turbine's example plugin, it was the "None" and "Normal" blending modes that don't modify the window's own alpha, though don't ask me what the difference is...and as said, some stretching modes make the controls behave like a separate window again anyway.
Lynx3d is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-02-2013, 08:24 PM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 136
File comments: 179
Uploads: 12
I added a checkerboard-pattern backdrop for the images, so the images no longer make the browser window transparent.

When trying to get this to work, I figured out something that wasn't obvious from all of the documentation (and Garan's tutorials) that I've read:

If you want to render multiple images on top of each other independently (so that the transparent parts of the top image will show the bottom image), you need to put them in separate top-level parent windows. I ended up putting the images in their own top-level "overlay" window, which is superimposed over the main Asset Browser window. (The PositionChanged() method of the Asset Browser window calls the SetPosition() method of the overlay window.)

If they have the same parent window, you get the effects you saw in the previous version: The pixels in one child window's background wipe out the pixels in the other child window's background and in the parent window's background, depending on Z-Order. This seems to be regardless of blending modes.

Last edited by Thurallor : 06-02-2013 at 08:29 PM.
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-02-2013, 06:00 PM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 136
File comments: 179
Uploads: 12
Quote:
The grid mode is awesome
Thanks

Quote:
I'd only prefer a different blend-mode so the alpha channel doesn't make the browser window transparent, but rather shows its backdrop (alpha-blend I think it is, and maybe a checker pattern as in many image editors would be perfect as browser backround), but that's just nitpicking.
Yeah, I've thought of this, and the problem is there probably isn't just a single choice of settings (BlendMode, BackColor, BackColorBlendMode, ...?) that is ideal for every image. (I've noticed that some of the images, if you check the "Scaled" checkbox, simply disappear. So not every image even supports all display modes.) So I'm going to make those things user-selectable, I just haven't figure out how I'm going to add it to the user interface yet.

Quote:
Oh but I think the v1.3 zip-file is incomplete, the parent directory "Thurallor" and the "Turbine" subdir are not present.
:facepalm: Oops. I added the missing files and bumped the version number to v1.4.

Thanks for the feedback!
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-02-2013, 09:29 AM  
Lynx3d
The Undefeated
Interface Author - Click to view interfaces

Forum posts: 7
File comments: 3
Uploads: 1
The grid mode is awesome

I'd only prefer a different blend-mode so the alpha channel doesn't make the browser window transparent, but rather shows its backdrop (alpha-blend I think it is, and maybe a checker pattern as in many image editors would be perfect as browser backround), but that's just nitpicking.

Oh but I think the v1.3 zip-file is incomplete, the parent directory "Thurallor" and the "Turbine" subdir are not present.
Lynx3d is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 05:43 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui