Print at Dec 18, 2025, 1:34:18 PM

Posted by enkonyito at Dec 14, 2020, 12:46:53 AM
How to integrate a non-spherical light source into a piece of furniture?
Manually, it is possible to add a light panel to a piece of furniture in a 3D scene.

I would like to integrate a flat light source into a piece of furniture like the default Flat TV.
By adding the properties of the light source to those of the flat TV in the PluginFurnitureCatalog.properties file of the library created, the position is incorrectly taken into account during rendering.
name#1=Flat TV with light
category#1=Lights
icon#1=/Flat TV with light.png
model#1=/Flat TV with light/Flat%20TV%20with%20light.obj
multiPartModel#1=true
width#1=121
depth#1=30
height#1=79.3
movable#1=true
doorOrWindow#1=false
modelSize#1=30046
creator#1=eTeks & EnkoNyito
lightSourceX#1=60.5
lightSourceY#1=14
lightSourceZ#1=42.5
lightSourceColor#1=#919189
description#1=unviewable_TriangleMeshLight


What additional information should be added to the LightSource class for the position of a rectangular panel to be taken into account?
----------------------------------------
EnkoNyito