Timeline for Is there any way to remove overlapping colors in Graphics3D?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 9, 2020 at 6:00 | history | tweeted | twitter.com/StackMma/status/1292339842538405888 | ||
Jun 10, 2020 at 22:40 | history | became hot network question | |||
Jun 10, 2020 at 15:59 | comment | added | MarcoB | Related? (111945) | |
Jun 10, 2020 at 15:29 | answer | added | flinty | timeline score: 7 | |
Jun 10, 2020 at 15:19 | comment | added | C. E.♦ |
You have probably specified the surfaces so that they are exactly the same distance away from the camera. In that case it's impossible for Mathematica to know what it is you want. To resolve that, you only have to add a negligible offset to one of the surfaces to indicate to Mathematica which surface is supposed to be perceived as being closer to the camera. For example, in flinty's example you may change the second parameter of the red cube to {1, 1, 1} + 0.0001 to fix the issue.
|
|
Jun 10, 2020 at 15:14 | comment | added | flinty |
This looks like z-fighting, see here: en.wikipedia.org/wiki/Z-fighting The effect is hard to avoid and is very pronounced in this example: Graphics3D[{Green, Cuboid[{0, 0, 0}, {1, 1, 1}], Red, Cuboid[{1/2, 1/2, 1/2}, {1, 1, 1}]}]
|
|
Jun 10, 2020 at 14:43 | comment | added | kirma | Please provide example code so we can easily reproduce the issue. | |
Jun 10, 2020 at 14:41 | review | First posts | |||
Jun 10, 2020 at 14:53 | |||||
Jun 10, 2020 at 14:40 | history | asked | Matt Roberts | CC BY-SA 4.0 |