LordStuff
(LordStuff)
April 17, 2020, 3:36am
10
OptimisticMonkey:
so one approach for anykind of map is to use a “clickmap”.
basically an overlay texture. with solid fill color for each region you want to be clickable.
When the map is clicked, look up the pixel in the clickmap.
The rgb value maps to the lookup table so you know what area was clicked.
This lets you easily know when complex regions or areas are clicked.
Hope that helps…
Hey there!
Running into problems trying to make something like this.
How can I “look up the pixel in the clickmap”?
I tried a few things and ended up with an answerhub question:
https://answers.unrealengine.com/que…texture2d.html
Basically I only ever end up with RGBA8 values that differ from the HDR color value the material gets and I can’t match the colors, so no lookup possible.
Thanks for any advice and cheers!