ReneMiner
19-11-2012, 15:21
Is there a method to retrieve color of a pixel on sprites?
Michael Clease
19-11-2012, 15:37
I will make the assumption the sprite has been drawn on the screen and you know the width/height and x,y position of the sprite ??
TBGL_GetPixelInfo( x, y, %TBGL_PINFO_RGB, R, G, B )
' Fills passed variables with requested values to obtain x,y,z position or RGB color from 3D world
' Make sure you call this command after the geometry is rendered, else you can get "false positives"
ReneMiner
19-11-2012, 17:10
very good. I thought this would just retrieve colors of 3d-coords or even the coords in space and tried GetPixel lib "Gdi32" before.
but this starts X,Y outside the client-area at the real top left-corner of window
- that was a problem - but
...not any more :D
Thank you for pitching my nose down on that