Image Manipulator coordinates

This forum is currently in read-only mode.
From the Asset Store
Elevate your games with our AI Chatbot Integration! Seamlessly connect your Construct 3 projects with GPT-4 for dynamic,
  • I've been trying to understand how to retrieve the R/G/B values at a specific point in an image.

    Here is a link to what I'm trying to do

    http://dl.getdropbox.com/u/1024727/canvas2.cap

    The canvas transfers its image (which is the size of the layout) to the image manipulator.

    Yet the image manipulator doesn't retrieve the correct RGB values at the location it should be placed in the image.

    Anyone have any ideas how to retrieve RGB values accurately from an image?

  • You found a bug, there's something wrong with canvas' private variables. Ill let you post it to the tracker. Beyond that Im afraid this will never work very well, as it has to get the information from the gpu. So you would need a "buffer" for the pasting, but you would need one in between each time it got rgb, and set it to text. If you really want to do it, I'd suggest using global variables, or a delayed function. Plus there might be something wrong with canvas as well, not sure but its size is acting wierd, you have to manually set it or it always goes back to 256.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • yeah it did seem a bit buggy, just wasn't sure. I'm not sure how I'd post this on the tracker, you seem to have a better understanding of the problem than me.

    edit: I tried using functions, which has better results. Although I think there must be a problem with retrieving the RBG coordinates.

  • Here's what Im getting, like I said it works some of the time, the rest of the time its returning 0.

    http://dl.getdropbox.com/u/666516/cantest.cap

    Edit: I think what your going to have to do is have something like a swap file. If you make up a loop and have image manipulator compare rgb for each pixel, then write that data to an array you wouldn't have to get the data from memory, and you could have the color check in real time.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)