Stupid OpenGL question - Page 3

Stupid OpenGL question

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Stupid OpenGL question

Post by user »

yes multiply is good, but which gl blending modes should be used for the blend modes?

currently:

additive: gl.Blending(GL.DST_COLOR,GL.SRC_COLOR)
i once used it in the rain widget and it looked good.

overlay: no mode
subtractive: gl.Blending(GL.ONE_MINUS_DST_COLOR,GL.ONE_MINUS_SRC_COLOR)
i once used a blend mode like this and it had a nice subtraction effect

which are the modes for multiply?
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Stupid OpenGL question

Post by user »

i am trying to make it use quads, instead of lines, so textures can be used, it will still use the width to define the trail size.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Stupid OpenGL question

Post by user »

i will make a new screen shot now, that will show those new features i made.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Stupid OpenGL question

Post by user »

here is the screen:

Image

they all use different modes.

does it look good?
Attachments
luaRibbonEffects.jpg
(82.38 KiB) Downloaded 1463 times
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Stupid OpenGL question

Post by user »

the current Unit Def variables are:

Code: Select all

[customParams]
       {       
       usetrail=1;                 <number,1 or 0>
       trailr=0.60;                <number> 
       trailg=0.35;               <number> 
       trailb=0.85;               <number> 
       traila=0.85;               <number> 
       trailwidth=3.00;         <number>  
       trailframes=15.00;      <number> 
       trailblendmode=0;       <number, 0, 1 or 2> 
       trailfadealpha=1;         <number, 1 or 0> 
       traildrawinminimap=1;   <number, 1 or 0> 
       }   
Post Reply

Return to “Lua Scripts”