Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 382 times and has 1 reply Next Thread
enkonyito
Advanced Member




Joined: May 28, 2015
Post Count: 607
Status: Offline
Reply to this Post  Reply with Quote 
Light texture

Since version 7.0 of Sweet Home 3D, it is possible to add the lightSourceMaterialName property to an object so that it becomes a light.

This works well for objects that use color in locations that need to be lit like the OKH traffic light.

For those using a texture like Scopia's traffic lights, they emit white light.
If we replace the texture with a color, the light is colored but we lose the design.

Is there a way to combine a texture and its color so that the emitted light is correctly taken into account?
----------------------------------------
Attachment TrafficLightOn-1.1.sh3f (12546 bytes) (Download count: 32)

----------------------------------------
Attachment Scopia_TrafficLightsOn-1.0.sh3f (104541 bytes) (Download count: 29)

----------------------------------------
EnkoNyito
[Nov 25, 2023, 7:07:31 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 790
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light texture

The only thing I can think of is using a semi-transparent texture with a (white?) light behind it. That should emit the color as in the texture although maybe a bit washed out.

That is the trick I used for the digital clock I showed in this post: https://www.sweethome3d.com/support/forum/viewthread_thread,12755#60170
The segments of the numbers are not the lights but they are semi-transparent objects (d 0.8) with a light panel behind it. The same could be achieved with a texture that is a little transparent at the places where you want light to shine through with the color of the texture at those places.

For example the traffic lights could be created like I did the led segments and a grid texture with transparent holes could be placed in front to show a pattern. Or the same texture but where the holes have the color you want but a little transparent to show the light. The main trick is to not make the texture itself the light source but to place a light behind a semi-transparent texture.

The biggest advantage of this trick is that you only need one light source to allow multiple lights like for the traffic light. To switch one or more lights of you simply make a filler visible that replaces the transparent parts. They can have a color like the light is off or have less transparency so they seem more dimmed.
(That was the main reason for doing it this way: the need for multiple light sources on a single object which is unfortunately not possible.)

The most difficult thing will probably be creating the correct texture.
[Nov 25, 2023, 8:57:31 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved