Page 3 of 3

Re: Stupid OpenGL question

Posted: 23 Feb 2008, 18:18
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?

Re: Stupid OpenGL question

Posted: 24 Feb 2008, 01:08
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.

Re: Stupid OpenGL question

Posted: 24 Feb 2008, 21:24
by user
i will make a new screen shot now, that will show those new features i made.

Re: Stupid OpenGL question

Posted: 24 Feb 2008, 22:35
by user
here is the screen:

Image

they all use different modes.

does it look good?

Re: Stupid OpenGL question

Posted: 25 Feb 2008, 01:08
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> 
       }