Suppose I have 2 (or more) Image3D graphics:
redCubes = Image3D[RandomInteger[1, {3, 3, 3}],
ColorFunction -> (If[# == 1, Red, Transparent] &)]
greenCubes = Image3D[RandomInteger[1, {3, 3, 3}],
ColorFunction -> (If[# == 1, Green, Transparent] &)]
How can I show them together, or make a new Image3D out of them? If I simply do Show[]
, the green/red cubes are kind of shadowed/dimmed, for instance:
Show[redCubes, greenCubes]
Importantly, how to deal with overlaps? I'd like to do some sort of color mix, say the overlaps colored in some red+green; although in my real application I can have more than 2 colors.
Edit: I'd really prefer to work within Image3D[]
rather than Graphics3D[]
, but definitely open to different approaches.
Thanks!