Joined: Jul 21, 2014
Post Count: 6
Status:
Offline
Problems creating a light
Hi everybody,
recently switched to SH3D and am exploring the options and impressed with options and configuration. The one thing I am having problems with is creating a functional lamp/light.
I created my home/kitchen light
The problem is when I insert light sources I do not get the same "lightbulb". That distinct light inside glas spot is missing (hard to explain I guess)
Also, I create the lamp itself in Blender, and edited the material after export for transparency. But is there a way to make the object a Light? Should I do this in Blender?
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Problems creating a light
Nice lamp. Yes, you can add light sources to your models, but .obj format does not support lights (unless I missed something). However, if you use the Furniture Library Editor and import your model, you can manually add properties for sh3d models - including lights.
There are threads on this if you search and more info in the Source Forge documentation. I hope you will share your model. Good luck.
ok
PS: I never find posts when I need them, so I added a little memo in the SVG manual on page 9 and 10 More editing: PluginFurnitureCatalog.properties.
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Problems creating a light
D 0.5 sounds about right for a glazed bulb, but you can play with textures (semi transparent) and light colour too...
I find it easier to import the model to SH3D and re-export after having set the correct dimensions (this depends very much on the model software used). With rotation and dimensions present, I guesstimate the x, y, z co-ordinates for the light. Obviously, if you have the correct (absolutish) values in Blender, you can also use Blender to measure exactly.
I forgot to mention (in the SVG guide) that you can add several light sources to one object. More about that in the repositories, as you appear to be more than able to figure it out on your own - good luck, and it would be fun to see the result.
Joined: Jul 21, 2014
Post Count: 6
Status:
Offline
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.
# 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".
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Problems creating a light
Did you try making a sphere (bulb) with white-ish, semi-transparent texture (png with alpha channel / transparency, in stead of or in addition to transparency in the .mtl file)? ok