Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I make a TLight show in Delphi FMX

I am trying to make a 3D application where a TLight casts light in a 3D cube, but I found no way to "enable" the light and it does nothing.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The MaterialSource of your cube needs to be a TLightMaterial. Do that by putting a TLightMaterialSource on your form and hooking it up to the cube. To make it easier to see make the lightsource a point source. Once done and looking similar to the below you can move the lightsource around and see the cube lit differently.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading