Page 1 of 1

Blend

Posted: Thu Mar 18, 2010 6:03 pm
by Kjell
8)

Should have been build-in ( instead of the Blend property ), but finally possible using the OpenGL32 library ( almost 2 years after being requested ) .. 121! different blend combinations instead of the 4 build-in ones :)

Use the left+right arrow keys to change the source blend mode, and up+down control the destination.

K

Posted: Sat Mar 20, 2010 5:39 am
by y offs et
Do not preview Blend : AppState before running the App at least once!
For me it is "Do not click States/Blend:AppState before running preview at least once!"

I have no problem with the preview.

Or is this just different terminology?

Posted: Sat Mar 20, 2010 9:34 am
by VilleK
Very neatly implemented Kjell!

Posted: Sat Mar 20, 2010 11:20 am
by Kjell
@ y_offs_et

Yea that's what I meant .. when you select Blend:AppState, the OnRender event of Blend will start to run ( because of the automatic preview ). And since I'm accessing a String Array from that event, the editor will crash when that Array hasn't been initialized ( I've talked about this with Ville, it's the way it's supposed to work ). So it's crucial for the components in App.OnLoaded to run before Blend.OnRender at least once.

That's the reason I used a AppState in the first place, when I'd have just put the components in App.OnRender, the editor would have crashed when clicking on App ( which would have caused a crash as soon as you load the zgeproj ).

@ VilleK - Thanks :)

K