|
Post by 24k911 on Nov 14, 2008 19:26:46 GMT -5
i was wondering if there is a way to resd pixels off the screen.
i was thinking something like pixel_test(x,y,r#,g#,b#)
|
|
|
Post by matthew on Nov 14, 2008 19:48:45 GMT -5
Hi 24k911, welcome to the forum.  There is an OpenGL command called glReadPixels but sadly it isn't implemented in Basic4GL.  There might be an example of pixel reading somewhere on the forum somewhere, I'll try & look if there is one. You might want to try the ToolBox plugin by djlinux, I believe it contains a command for reading pixels. If you need to know how to install plugins, look at this post.
|
|
|
Post by 24k911 on Nov 14, 2008 20:00:43 GMT -5
yea the plugin has getpixels(INT, INT, INT, INT, INT()) but i cant figure out how to use it
|
|
|
Post by matthew on Nov 14, 2008 20:16:24 GMT -5
Once you've downloaded the plugin from here, you'll find an example file called getpixels.gb in the folder.
|
|
|
Post by 24k911 on Nov 14, 2008 20:49:49 GMT -5
when i use get pixels it just gives me lots of numbers even for a single point
|
|
|
Post by matthew on Nov 14, 2008 20:54:34 GMT -5
Hmm, I haven't used the plugin that much, so I'm not sure what could be wrong? You should make a post in the ToolBox dll thread, maybe djlinux will see it & he'll be able to help you more.
|
|