Print at Dec 16, 2025, 3:36:04 AM

Posted by seabird at Jul 22, 2014, 8:10:15 PM
Re: Problems creating a light
Yes, I figured it out mostly. Once the dimension is set (120cm) the coordinates are centimeter based. I added several lights and played with the MTL file.

name#2=Lamp onderdelen
category#2=Lights
icon#2=/Lamp onderdelen.png
model#2=/Lamp onderdelen/lamp%20onderdelen.obj
multiPartModel#2=true
width#2=120
depth#2=10.9091
height#2=562.14746
movable#2=true
doorOrWindow#2=false
lightSourceX#2=5 32.5 60 87.5 115
lightSourceY#2=5.5 5.5 5.5 5.5 5.5
lightSourceZ#2=3 3 3 3 3
lightSourceColor#2=#ffffff #ffffff #ffffff #ffffff #ffffff lightSourceDiameter#2=1 1 1 1 1
elevation#2=140
creator#2=Jacco


MTL:
# 3D model lamp onderdelen.obj
newmtl Brushed_metal
illum 2
Ka 0.0 0.0 0.0
Kd 0.168542 0.166863 0.166863
Ks 1.680151 1.680151 1.680151
Ns 128.0 Ni 1.0

newmtl Mat_Glas
Ka 1.0000 1.0000 1.0000
Kd 1.0000 1.0000 1.0000
Ks 1.0000 1.0000 1.0000
Tf 1.0000 1.0000 1.0000
Ns 200 Ni 1.2000
illum 7
d 0.94

newmtl Helder_glas
Ka 0.0000 0.0000 0.0000
Kd 0.0000 0.0000 0.0000
Ks 0.9000 0.9000 0.9000
Tf 1.0000 1.0000 1.0000
Ns 200 Ni 1.2000
illum 6
d 0.3

After I manually changed the glass color to almost white in sh3d.

result so far (light is at 3% and a ambient light behind me to light the metal)
(still not the matt glass I want on top and still missing the "light source/bulb")
The light also needs to become "smoother".