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

This topic has been viewed 6722 times and has 0 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

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

Post by enkonyito »

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?
EnkoNyito
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest