How to get screen pixel color?

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

BlindSide wrote:Does it work with all drivers?
yes, at least it should, because it's independant from it, it just grabs the whole desktop, no matter what it shows...
I tested it with dx9 and ogl... ;)

btw. is it now possible to use a RT that has the same size as the desktop ???
or what about NPOT textures, I mean the chance that the desktop resolution is POT is minimal, I think... ;)
otherwise you'll get problems with the RTT methode...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Not really, I know my version is patched, but worst come to worst, you just pass a bigger pot texture as argument, use only the screen section and only render that.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

no one in the mood to write the rtt function ??? :lol:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

I honestly wrote 90% of it previously. Just use the same functions I wrote in the same order, fill in the blanks and there you go.
Post Reply