How to integrate a non-spherical light source into a piece of furniture?

by enkonyito » Mon Dec 14, 2020 12:46 am

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 [font=courier new]PluginFurnitureCatalog.properties[/font] file of the library created, the position is incorrectly taken into account during rendering.

Code: Select all

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?