Main > Main Forum
<News> - Sweet eye candy cabinet!
blueznl:
--- Quote from: Kaytrim on April 24, 2007, 03:17:52 pm ---PITA = Pain In The :censored:
--- End quote ---
Ah :)
I could have a go at such screen colour detection logic, but I'd need to know how to grab the screen. I did some browsing, and it is actually possible to ask DirectX for screen dumps but it looks awfully complicated :-/ A small hardware gadget as I described one mail earlier could do the trick though :-)
RandyT:
--- Quote from: blueznl on April 24, 2007, 03:15:36 pm ---
--- Quote from: RandyT on April 17, 2007, 11:34:56 am ---I think I mentioned earlier that I was able to use the windows clipboard screen grab method under MAME, even at full screen. DirectDraw is enabled, so I'm assuming that it is working.
--- End quote ---
In a window, I assume? Or full screen?
--- End quote ---
Full screen.
--- Quote ---Using grids is somewhat dangerous, as the screen may be showing a grid, thus confusing your program. A better way may be to use randomly sampled pixels.
--- End quote ---
"Dangerous" is a bit extreme, no? I mean we are just talking about ambiance lighting, aren't we :)
--- Quote ---
--- Quote ---I haven't hooked anything up to an actual LED-Wiz yet, but running WOW in a window next to the output window of my app and the colors are reflecting what's going on in the game. When the screen changes to the blue maze, my control lights blue. When the Worluk appears, it goes red/orange and so on.
--- End quote ---
Ah, in a window then :)
--- End quote ---
For testing purposes yes. But the same method works full screen just as well. Run MAME full-screen with DD enabled, hit "print screen" and then dump the clipboard into a graphics program. If it doesn't work for you, then we can start looking at what's different between our systems.
--- Quote ---Well, that one is tricky. If you would follow each and every change it would get blinky indeed. What I understood from the AmbiLight stuff is that it actually samples the whole screen, and tries to be smart.
--- End quote ---
It has to be. You can't just average the colors on screen because you could have a big lump of one color in the center and other colors distributed across the screen in dithered patterns. You might want the lighting to reflect a blend of the most prominent colors visually rather than mathematically. Special logic needs to be developed to do it effectively.
Honestly, I don't know if I'm interested in "perfection" on this one. It's going to be a very simple app that takes a stab at an interesting effect. To do it properly, there needs to be a ton of user configurable options and a number of different methodologies to do the decision making. That takes a lot of time to implement and there are too many things on my plate at the moment. It's definitely going to be a "usable demo" kind of thing.
RandyT
Kaytrim:
--- Quote from: RandyT on April 24, 2007, 05:02:45 pm ---
Honestly, I don't know if I'm interested in "perfection" on this one. It's going to be a very simple app that takes a stab at an interesting effect. To do it properly, there needs to be a ton of user configurable options and a number of different methodologies to do the decision making. That takes a lot of time to implement and there are too many things on my plate at the moment. It's definitely going to be a "usable demo" kind of thing.
RandyT
--- End quote ---
Why not just hand over your code to someone else with more time to handle the perfection. I am not asking for it myself, this is defiantly out of my league.
Chris G:
Level42 - fix your weblink! :dizzy: :)
blueznl:
--- Quote ---Honestly, I don't know if I'm interested in "perfection" on this one. It's going to be a very simple app that takes a stab at an interesting effect. To do it properly, there needs to be a ton of user configurable options and a number of different methodologies to do the decision making. That takes a lot of time to implement and there are too many things on my plate at the moment. It's definitely going to be a "usable demo" kind of thing.
--- End quote ---
Mmmmm. Yes, you're right there. Quite a few config options. I'd love to work a little on it, but alas, just like everybody else, time is a bit short... (And, to be honest, I don't want to pick up any new projects before I've even build (or started building!) my cab.)
Got most of the parts, now going through multiple designs, and then I'm going to build the bloody thing... And worst of it all, I already plan to build TWO, as I know I'm going to learn enough building number one to fix (some) mistakes on number two...
It's not a bad idea to open the code, I assume you're using a hand full of API calls, plus a DLL of your own making to control the LedWiz. Key problem is the algoritm, stuffing in a few algoritm's with a few parameters should be enough. Yeah, open it up. Make it other people's problem :) That way I can watch from the sideline, and wait for the problems to be ironed out before I purchase a LedWiz :)
Navigation
[0] Message Index
[*] Previous page
Go to full version