Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
transparency [2020/01/09 14:21] – [Components] admin | transparency [2020/05/02 10:31] – [Components] admin | ||
---|---|---|---|
Line 12: | Line 12: | ||
[[https:// | [[https:// | ||
- | The result sometimes is correct, but in more complex scenery mostly incorrect, which some of you already found out by using multiple components of a TTextLayer3D. FMX renders artifacts if elements order is not correct, especially for intersected elements. | + | The result sometimes is correct, but in more complex scenery mostly incorrect, which some of you already found out by using multiple components of a TTextLayer3D. FMX renders artifacts |
Many other methods also have their difficulties in incorrectness, | Many other methods also have their difficulties in incorrectness, | ||
Line 55: | Line 55: | ||
Gorilla3D components are all able to handle the weighted blended order-independent transparency rendering, **but Delphi FMX objects are not**! | Gorilla3D components are all able to handle the weighted blended order-independent transparency rendering, **but Delphi FMX objects are not**! | ||
- | Because there is no general way of intersecting FMX 3D components in rendering, we have to add to some code to **each translucent 3D component** used. | + | Because there is no general way of intersecting FMX 3D components in rendering, we have to add to some code to **each translucent |
=== Inheritance === | === Inheritance === | ||
Line 95: | Line 95: | ||
* TGorillaPlane | * TGorillaPlane | ||
* TGorillaTextLayer3D (also optimized for android platform) | * TGorillaTextLayer3D (also optimized for android platform) | ||
+ | |||
+ | ==== Materials ==== | ||
+ | Besides component' | ||
+ | |||
+ | Any extended material of TGorillaDefaultMaterial is able to write that data to the bound framebuffer object. | ||
+ | |||
+ | You can of course write your own shader. But you'll need to write the compressed fragment color (RGBA) and the alpha | ||
+ | value (R8) to separated Render targets. | ||
Next step: [[layer3d|2D FMX components]] | Next step: [[layer3d|2D FMX components]] |