Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 15 16:13
    MasterR8 opened #273
  • Aug 12 21:50

    Sharparam on 6.0.0

    Updating the Getting Started Gu… Assuming that v6.0 is not be a … Restore Front Matter and 9 more (compare)

  • Aug 12 21:50
    Sharparam closed #271
  • Aug 12 21:50
    Sharparam edited #271
  • Aug 12 21:46
    leonardoInf commented #271
  • Aug 12 21:46
    leonardoInf commented #271
  • Aug 12 21:46
    leonardoInf commented #271
  • Aug 12 19:13
    codecov-io commented #271
  • Aug 12 19:13
    codecov-io commented #271
  • Aug 12 19:13
    codecov-io commented #271
  • Aug 12 19:10
    AppVeyorBot commented #271
  • Aug 12 19:03
    codecov-io commented #271
  • Aug 12 19:03
    leonardoInf synchronize #271
  • Aug 04 11:52
    leonardoInf commented #271
  • Aug 02 23:03
    leonardoInf commented #271
  • Aug 02 23:01
    leonardoInf commented #271
  • Aug 02 23:01
    leonardoInf commented #271
  • Aug 02 20:35
    codecov-io commented #271
  • Aug 02 20:33
    codecov-io commented #271
  • Aug 02 20:29
    AppVeyorBot commented #271
LBTama
@LBTama
@Sharparam i am using AnyCPU ver 2.2.1, sdk ver4.8
Adam Hellberg
@Sharparam
@LBTama make sure you followed all the steps installing the SDK and that no other chroma programs are running at the same time as your app (having Synapse running should work with latest sdk, but you could always try closing that as well). You could also try a restart of your system to see if that changes anything
Jerrith2
@Jerrith2

Is there a trick to getting instant effects, like in the Chroma SDK demo app? I'm looking for an instant transition, instead of the long transitions I'm seeing at the moment.

I tried doing a clear followed by the color I wanted, but that gave mixed results (sometimes devices would shift instantly, and sometimes they'd just turn off).

Adam Hellberg
@Sharparam
@Jerrith2 which devices? the effects i test on blackwidow and deathadder seem to all switch instantly
tested mousepad, it seems to have the delay when switched using Static
AFAIK that's in the SDK itself. i haven't tested but it probably behaves the same using C++
we'll look into changing Colore to use Custom where possible to achieve instant color change on all devices
Adam Hellberg
@Sharparam
currently Mousepad uses Static for its SetAll method, whereas keyboard uses Custom
Jerrith2
@Jerrith2
All 5 devices (Mamba TE for mouse, Orbweaver for Keypad). I'll give Custom a try and let you know how that works tonight.
LBTama
@LBTama
@Sharparam where can i find the instructions for the installation? sorry, newbie here.
Jerrith2
@Jerrith2
@Sharparam Yeah, Custom works on Keyboard, Keypad, and Mousepad. Now I just need to find something to do Mouse and Headset.
*(works (for instant transition))
Jerrith2
@Jerrith2
Hmm, am I missing something? There appears to be a Corale.Colore.Razer.Mouse.Effects.Custom, but no Corale.Colore.Core.Mouse.Instance.SetCustom to pass it in to? How do I (can I?) use Custom with a Mouse?
Jerrith2
@Jerrith2

Yeah, it's just missing from Colore. I downloaded the source from GitHub and added SetCustom to Mouse (following the existing coding style). Built and tested, works great! (I suppose I could submit a patch, but it's trivial and I'm not sure what's involved in setting that up.)

Sadly, there is no Custom for Headset in the Chroma SDK. :( Looks like I'll be stuck with slow transitions there...

(Oh, and it looks like you've added it on develop already.)
LBTama
@LBTama
@Sharparam Thanks for the help. I managed to find the instructions via google-senpai and everything is working fine now.
Adam Hellberg
@Sharparam
@Jerrith2 The missing SetCustom on mouse was a miss on our end, the patch is in develop atm and will be in the next release of Colore.
Brandon Scott
@brandonscott
Hey
Got Gitter on iPhone now so can help with questions
Jerrith2
@Jerrith2
@Sharparam - Thanks for the help. Using Custom on 4 of 5 devices, and for the last, Headset, it's not too bad.
Brandon Scott
@brandonscott
@Jerrith2 Good news.
Let us know if we can be of any more assistance
Callum Morris
@CaLxCyMru
This message was deleted
Jerrith2
@Jerrith2
Minor / Slightly misleading: On systems without the SDK installed: In NativeMethods(), the call to Native.Kernel32.NativeMethods.LoadLibrary will result in a System.DllNotFoundException, rather than a ColoreException. (Having looked at the code a few lines down, I was expecting the ColoreException, not the DllNotFound one.)
Adam Hellberg
@Sharparam
@Jerrith2 Are you sure you're not using the x86 or x64 build of Colore? LoadLibrary will never throw an exception since it's a native function and will simply return a NULL pointer (IntPtr.Zero) if the requested library was not found.
Jerrith2
@Jerrith2
Ah, that could explain it. I switched from an Any CPU build to using x86 and x64 builds because Any CPU wasn't working for me when run in the 32 bit Unity Standalone Player (crashed).
Yes, you're right, that's inside the #if ANYCPU block.
My fault, I should have scrolled up and checked.
Is there a preferred method of detecting if the DLL is present in x86 / x64 builds? I've just wrapped all my code in try / catch, looking for the DllNotFoundException.
Adam Hellberg
@Sharparam
The DllNotFoundExceptions are from the DllImport attributes not finding the DLLs, one could still use LoadLibrary to attempt loading them and check the return and/or Marshal.GetLastWin32Error. Or wrap the first call to a Colore method with a try-catch. We might add a check on the first initialization of Colore to see if a DLL error is thrown and if so re-throw as a ColoreException. The bool Chroma.IsSdkAvailable() is also being added which can be used to check availability of the Chroma SDK on the system.
CoraleStudios/Colore#71 Scheduled for release in 2.3
Jerrith2
@Jerrith2
Sounds good. Chroma.IsSdkAvailable() is the elegant solution I was hoping for, but try-catch works for now. Thanks again.
Nico
@njbmartin
@Jerrith2 I'm assuming you're using Colore in Unity?
Jerrith2
@Jerrith2
Yes, I am.
Dariusz Niemczyk
@Palid
Guys, any chances for real examples? Docs aren't telling a lot for me (I'm a JS dev daily).
Dariusz Niemczyk
@Palid
I see that even Custom effect doesn't really allow for anything more than just setKeys.
Any chances that we'll be able to build custom animations like Synapse Chroma Configurator allows us at the moment? For instance, reactive only specific buttons and stuff.
For the moment I can only set the fancy effects for whole keyboard and normal leds for only keys, which really sucks for my idea - I'd need to at least control brightness so I'll be able to do the animation manually.
If that won't be implemented in the neartime please tell me, I'll just use your wrapper for native lib calls..
Adam Hellberg
@Sharparam

@Palid
Creating custom animations is done by implementing your own algorithms manipulating the keys (a reactive effect for certain keys could listen for key presses and activate the pressed key with a certain color, and then fade the color out over time), it's possible we may add some additional effect algorithms to Colore in the future if they prove to be widely used enough to warrant a central implementation, but it's not something we currently have planned.

Brightness (the kind that can be set through Synapse and the keyboard hotkeys) can currently not be controlled through the SDK. The closest approximation would be to make colors darker/brighter, this doesn't expose the full control of brightness but that will not be possible until Razer implements it in their SDK.

Regarding example apps we are going to add some once the current workload is lower.

Dariusz Niemczyk
@Palid
@Sharparam thanks for fast response. I still haven't figured out how to fade out the color, if the brightness is not implemented in the SDK.
Well, Chroma Visualiser somehow does controll the brightness. Does it mean it skips SDK?
Adam Hellberg
@Sharparam
Not sure. It's possible Synapse has access to additional functions that are not (yet, anyway) exposed in the public SDK
the brightness sliders for chroma devices in synapse for example, are able to control stuff on the devices that we cannot do with the SDK
Dariusz Niemczyk
@Palid
https://insider.razerzone.com/index.php?threads/rock-your-razer-chroma-devices-with-the-audio-visualizer.8796/ - I'll just go and ask the dev myself tomorrow. Maybe there's some magical hidden stuff in the SDK nobody knows about. ;)
Adam Hellberg
@Sharparam
fading colors would be done by having some kind of timer ticking relatively fast and for each tick making the color closer to dark. as for making it closer to dark, i'd go look at stackoverflow. I haven't dabbled much in RGB color manipulation but last i checked it's pretty tricky to do it because of how the RGB standard works :P
Callum Morris
@CaLxCyMru
Well, from what I can see, isn't brightness just a darker shade of whatever colour you are trying to achieve? For example, if you set a dark colour, it will appear to be very, well, dark (like it hasn't got a lot of brightness) but set that colour but a bit ligher, that would work right? I mean, pseudo brightness at least.. :)
Adam Hellberg
@Sharparam
that's the basics of it, @CaLxCyMru. but the brightness control on the keyboard (or through synapse) seems to set the "Max brightness" that you can then achieve with SDK
setting RGB(255, 0, 0) (bright red) will set a darker red if the keyboard's brightness has been lowered in synapse
Dariusz Niemczyk
@Palid
You're probably right about the brightness thingy. :D