The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Legacy Corsair Software

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-20-2018, 09:59 AM
bot bot is offline
Registered User
 
Join Date: Jul 2016
Posts: 6
POST ID # = 936387
bot Reputation: 10
Question How to emulate glowing ember in CUE2

When I started off with CUE, I managed after putting in quite a bit of work to emulate the sense of a glowing ember underneath the main keys of the keyboard. I used some kind of "ripple" effects between the keys.

The results were not that good though. The main issue with it was that the glowing was periodic which looked quite unnatural.

Since the update to CUE2 I haven't managed to pull it off at all.

What I want is to make each key randomly transition between different colors, be it between red, dark orange, bright orange, perhaps some yellow. Or different hues of the same color or ... And I want there to be some kind of ripple effect, i.e. if one key suddenly increases in "intensity" or heat or whatever you'd like to call it, adjacent keys should be partially affected too.


Has anyone managed to pull this off in CUE?

It would have been the best if it was possible to write scripts, be it Python, Ruby, **********, C# etc where one can code the behaviour of selected lights, use random number generators and simulate the physics of glowing ember.


  #2  
Old 01-20-2018, 02:54 PM
midget4567 midget4567 is offline
Registered User
 
Join Date: Dec 2017
Posts: 9
POST ID # = 936411
midget4567 Reputation: 10
Default

Hey, i have one called fireplace that i've attached. I like it a lot, sounds similar to what you want, I got it online. If you look directly from above it looks like fire/coals

Doesn't have all the effects you want obviously but a great starting point to build from. I added white keys cause i thought it looked fitting.
Attached Files
File Type: cueprofile FirePlace.cueprofile (149.4 KB, 337 views)

Last edited by midget4567; 01-20-2018 at 02:57 PM.


  #3  
Old 01-20-2018, 02:59 PM
hastegag hastegag is offline
Registered User
hastegag's PC Specs
 
Join Date: Dec 2016
Location: Northeast US
Posts: 913
POST ID # = 936413
hastegag Reputation: 20
Default

Quote:
Originally Posted by bot View Post
It would have been the best if it was possible to write scripts, be it Python, Ruby, **********, C# etc where one can code the behaviour of selected lights, use random number generators and simulate the physics of glowing ember.
yeah that can be done in the SDK in a straightforward manner, but you need to come up with the function that would define the look of the embers you are looking for.

You may want to take a look at some video of a fireplace or whatever and color pick those oranges and reds then figure out the time between their intensities to your liking. the sdk lets you address specific keys as well as "logical layouts" so i think that means like G keys are left of tab etc (and that is also important as not everyones kbs are the same).


I feel like you could fudge it in CUE tho pretty good but it sounds like you tried that...


  #4  
Old 01-20-2018, 03:08 PM
hastegag hastegag is offline
Registered User
hastegag's PC Specs
 
Join Date: Dec 2016
Location: Northeast US
Posts: 913
POST ID # = 936416
hastegag Reputation: 20
Default

Quote:
Originally Posted by midget4567 View Post
Hey, i have one called fireplace that i've attached. I like it a lot, sounds similar to what you want, I got it online. If you look directly from above it looks like fire/coals

Doesn't have all the effects you want obviously but a great starting point to build from. I added white keys cause i thought it looked fitting.
Looks nice i just tried it. My lighting controller is so fried on this board tho its embarrassing


  #5  
Old 01-20-2018, 03:41 PM
midget4567 midget4567 is offline
Registered User
 
Join Date: Dec 2017
Posts: 9
POST ID # = 936423
midget4567 Reputation: 10
Default

Hey, i liked some of your ideas about the ripple effect warming up the fire at keystrokes so i added some of that action to it and i think it looks pretty cool
Attached Files
File Type: cueprofile FirePlace.cueprofile (202.6 KB, 345 views)


  #6  
Old 01-21-2018, 05:59 PM
bot bot is offline
Registered User
 
Join Date: Jul 2016
Posts: 6
POST ID # = 936581
bot Reputation: 10
Default

It doesn't have to be that complicated. If I were to simulate this I would use some kind of mean reversing stochastic process (just look up 'mean reversion' and 'Wiener process'). The "mean reversion" means that the further away the intensity is from the mean, the bigger a correction towards that mean will happen at next time step. Stochastic processes are easy to simulate if you have a random number generator.

Let us assume that each light is on a square grid, then one could also add the heat contribution from a Moore neighbourhood at each time step.

On top of it, one could add a slight ripple effect that would create a ripple from say left to right, as if a gust of wind hit the ember. The ripple must be rather fast though in order to resemble reality. The ripple f(x) = tanh(x) - tanh(x+L) that is swiftly pushed over the keys and L is the duration of that gust of wind.

The intensity could be a floating point value between 0 and 1 that could map onto a range of RGB values that by default is something that looks like the color intensity range of ember but could be any desired color spectrum.

This would work if say I could access the values of the lights from a script API and then let a loop iterate each time-step indefinitely.


I'm unable to open that .cueprofile file. Im on CUE 2.15 and the latest is 2.20. perhaps this is a version compatibility issue. I will attempt an update soon.


 

Tags
cue2, ember, fire, physics, programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.