[Mirra] fading trails

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


Hi Enrike,

> 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.
>
> this is an issue i was trying to solve last year but never got to solve
> it. The trick is that inside mirra in the graphics.py module inside the
> Engine class in the render method, there should be some blending going
> on to achieve what you describe. But I never manage to get it to work.
> There are some OpenGL flags that need to be set to the right mode and I
> am not sure in this case how to set them. But it is definitely something
> I would like to get to work.


nice, now i at least know where to look! i feel it's pretty deep for me to
dig in but i'll give it a go. seems more doable than writing a new trail
function anyway; copying the same instance of an object over and over while
blending it more and more really makes my cpu melt.. ;)

thanks a lot for the quick reply, i'll keep you guys posted

jm

>
>
> > Thanks in advance for any clues and BTW Mirra is a marvelous tool for
> > learning python!
>
> thanks, it is very nice to hear that people find it useful.
>
> enrike
>
> > 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/704e8b5c/attachment.htm 


More information about the Mirra mailing list