[Mirra] fading trails

Jean-Michel Dumas jm.dumas at gmail.com
Wed Apr 9 20:36:40 CEST 2008


Hi Ben! glad to hear from you.. didn't know you were into Mirra!

option #2 seems perfect for what i want to do, but i'll have to check for
performance issues if using that method over long periods of time. i'm
aiming at an app, so that's gonna make for a lot of rectangles drawn over
time.

i'll give it a go and keep you posted if any advances are made.

thanks for the idea!

jm

On Tue, Apr 8, 2008 at 11:19 PM, B. Bogart <ben at ekran.org> wrote:

> Hey Jean-Michel!
>
> I see two options:
>
> 1. The buffer is not cleared before the next frame is computed. So
> everything rendered has trails, and they are permanent.
>
> 2. For more control for each frame a translucent rect can be drawn in
> the background that occludes the previous frame(s) to a degree.
>
> I'm not sure how to do these in Mirra, but the method should give you an
> idea. There are other ways but these are probably the fastest (least cpu
> usage).
>
> .b.
>
> Jean-Michel Dumas wrote:
> > Hello everyone!
> >
> > I'm new to Mirra, OpenGL and still learning python.. so consider this a
> > total newbie question.. ;)
> >
> > I'm trying to fade trails (self.trails = 1 in start(self)) after x
> > amount of time but cannot seem to find a proper method for it.
> >
> > I have tried to use the 05complexshapesOpenGL.py example as a base since
> > i basically want what the red circle do put applied on the trails and
> > based on time not distance, but i'm stuck and need some insight from
> > some experienced Mirra/OpenGL dudes.
> >
> > Thanks in advance for any clues and BTW Mirra is a marvelous tool for
> > learning python!
> >
> > jm
> >
> >
> > --
> > Jean-Michel Dumas, Consultant technique
> > Université de Montréal, Faculté de musique
> > jm.dumas at umontreal.ca <mailto:jm.dumas at umontreal.ca>
> > tél. 514-343-2172 | cell. 514-712-4013 | téléc. 514-343-5727
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Mirra mailing list
> > Mirra at goto10.org
> > http://lists.goto10.org/cgi-bin/mailman/listinfo/mirra
>
>
>
> _______________________________________________
> Mirra mailing list
> Mirra at goto10.org
> http://lists.goto10.org/cgi-bin/mailman/listinfo/mirra
>



-- 
Jean-Michel Dumas, Consultant technique
Université de Montréal, Faculté de musique
jm.dumas at umontreal.ca
tél. 514-343-2172 | cell. 514-712-4013 | téléc. 514-343-5727
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.goto10.org/pipermail/mirra/attachments/20080409/d25b14a0/attachment.htm 


More information about the Mirra mailing list