1
$\begingroup$

I'm trying to make a script that eyedrops on a plane(palette) with various materials assigned on each faces with a mouse cursor.

enter image description here

Using some sort of eyedropping module would only get me different color values instead; not the same one the materials I assigned. I'm guessing of how it is rendered on runtime.

$\endgroup$
7
  • $\begingroup$ Is using a UV map with mesh scaled to 0 an option? $\endgroup$ Commented Aug 10, 2022 at 20:46
  • $\begingroup$ Here's a color-pick example for BGE: github.com/mikepan/GameEngineBook/blob/master/text/… $\endgroup$
    – RPaladin
    Commented Aug 10, 2022 at 20:57
  • $\begingroup$ @REMCodes no. It's a plane with four faces and each faces had different materials assigned $\endgroup$
    – Dun
    Commented Aug 11, 2022 at 11:48
  • $\begingroup$ @RPaladin thank you, I'll look into it $\endgroup$
    – Dun
    Commented Aug 11, 2022 at 11:54
  • 1
    $\begingroup$ @RPaladin No problem! $\endgroup$
    – Dun
    Commented Aug 17, 2022 at 17:18

1 Answer 1

0
$\begingroup$

Retweeting from comments.

Here's a color-pick for BGE:

https://github.com/mikepan/GameEngineBook/blob/master/text/07-Scripting.md#Example_02_Color_Picker

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .