Print at Dec 19, 2025, 2:55:30 PM View all posts in this thread on one page
Posted by snake00jap at Nov 8, 2018, 10:19:31 AM
Rendering web viewer
Hello,

I m wondering if it is possible to add lights on the html5 viewer with three.js or another framework.

The idea is to export to html and add some code to add lights to to view in order to render better than the standard with webgl.

Have anyone tried to make a test ? Can we help me to find where to investigate in the source code ?

Thank you !

Posted by snake00jap at Nov 16, 2018, 10:41:09 AM
Re: Rendering web viewer
Hello,

Any idea ?

The goal is to make something like that :

https://archilogic.com/customize

Any help or clue may be verry nice :)

Thanks again

Posted by VeroniQ at Nov 16, 2018, 11:43:24 AM
Re: Rendering web viewer
Hello snake00jap, I am not sure it is what you are looking for, but your message reminds me this demo done by openHab. Hope it can help...

Posted by snake00jap at Nov 16, 2018, 2:18:29 PM
Re: Rendering web viewer
Hi VeroniQ,

Thank you a lot for your help, unfortunatly I aleready see that. It is not exactly what I m trying to do.
In the 3D view, there is no light and shadow. My need is to render the 3D view with three.js (or an other framework) to enable lights etc...

If you take a look to the link a send previously (https://archilogic.com/customize) at the bottom, there is an exemple of what I try to do with the sweethome3D 3D view. In the sample, you can see the lights, the shadows etc with a good render quality.

Thanks again for your help !