Print Page | Close Window

Fun with Firefly

Printed From: Aurora
Category: The Vault
Forum Name: I'm New From Spectrum And I Need Help!
Forum Discription: General usage questions from former Spectrum users
URL: http://www.aurorashow.com/forum/forum_posts.asp?TID=522
Printed Date: 27 Apr 2024 at 10:38am
Software Version: Web Wiz Forums 9.06 - http://www.webwizforums.com


Topic: Fun with Firefly
Posted By: Pony_God
Subject: Fun with Firefly
Date Posted: 21 Nov 2008 at 1:06pm
Alright, so lets see if anyone knows what I'm trying to do...
I want our Firefly to Start out red, and fade to yellow, BUT ALSO, go from 100% intensity to 0%.
I do realise that #000000, black is off, but I don't want to fade from red to black.
 
Any ideas?


-------------
Fine. You're so smart you rig up the lights.
http://www.frappr.com/dlight - D-Light users Unite!



Replies:
Posted By: LightsOnLogan
Date Posted: 21 Nov 2008 at 1:40pm
You need to break this into multiple steps.  Example:
 
Step 1: FF0000 to C06000
Step 2: C06000 to 504000
Step 3: 504000 to 000000
 
This isn't perfect as the red channel really needs to remain linearized while the green channel needs to follow a curve.  The RGB tool stays in the linear domain because that is all the protocol allows for (to render this correctly would require hundreds of commands to be sent which would choke the network).
 
There will need to be at least 1 step for each 30 degrees in the color wheel (HSV value "H").  Unfortunately the timing precision of the ramps in the Firefly firmware isn't perfect (runs a little fast actually) so it looks like it "takes a breaK" at each step on the way down. 
 
Alternately, if this is a quick ramp you could render it as a series of "set color" commands.
 


-------------
http://www.aurorashow.com/">


Posted By: Pony_God
Date Posted: 21 Nov 2008 at 1:46pm
hum... that's about what I thought. color shift, then fade to black.
Do you imagine that native mode might be more accomodating for programibility and complex management/control?


-------------
Fine. You're so smart you rig up the lights.
http://www.frappr.com/dlight - D-Light users Unite!


Posted By: LightsOnLogan
Date Posted: 21 Nov 2008 at 2:07pm

Aside from a few exceptions, native mode will use the same tools to get the job done that Aurora currently has.  The biggest difference resides in the amount of bandwidth required to execute the commands.

What you desire (very creative BTW) would require a very complex curve in at least one of the color channels... to offload such calculations into hardware at a $160 price point might not be realistic.  The only way to accomplish this is on the Aurora side which would require Aurora to automatically send this as a series of colors.  If used too much this would bring the network to a crawl which isn't desireable either.


-------------
http://www.aurorashow.com/">


Posted By: Pony_God
Date Posted: 21 Nov 2008 at 2:31pm

Ah... okay, so the command is start at X sift to Y over Z time. and Firefly figures out what to do with it. hum... I realise that it's quire a fair amount of math R255->0 while G0->255 , but the entire thing is shifted to a lower intenity on each step.

I wasn't sure (and still not sure) who does what where... What's done in software, RS285, and at the controller to create the number of effects that we all use and what limits are enfored at what steps.
 
BTW... Can you tell that I'm a ramp-a-holic? hahaha


-------------
Fine. You're so smart you rig up the lights.
http://www.frappr.com/dlight - D-Light users Unite!


Posted By: LightsOnLogan
Date Posted: 21 Nov 2008 at 4:09pm
I like ramps too...
 
Actually it's a bit more complex.  In the legacy mapped mode three commands are sent (one for R, one for G and one for B).  To go from red to green would involve ramping the red channel down while the green channel goes up.  Easy enough, but...
 
To go from red to yellow while simultaneously heading toward black is much more complex.  Red is a linear ramp from on to off, but green must come up and then back down in a parabolic shape.  It would start upward at the opposite angle of red but gradually change angle until it hits the "crossover point" where it would begin a gradual descent with increasing angle until it is 1:1 with red at the end.  Lacking such a "parabola" prototype in the protocol, there just isn't a way to send this.  It must be simulated by breaking it into multiple commands in the editor. 


-------------
http://www.aurorashow.com/">


Posted By: Pony_God
Date Posted: 21 Nov 2008 at 5:41pm

Definately cool code to play with.



-------------
Fine. You're so smart you rig up the lights.
http://www.frappr.com/dlight - D-Light users Unite!



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.06 - http://www.webwizforums.com
Copyright ©2001-2007 Web Wiz - http://www.webwizguide.com