aalavandhaann / blueprint-js

The Javascript es6 version of the original furnishup/blueprint3d. Need some royalty free low poly models for the inventory. Can someone help me with this?
MIT License
504 stars 158 forks source link

Sunlight through the windows ? #12

Closed CanKavaloglu closed 5 years ago

CanKavaloglu commented 5 years ago

Hi #OK,

How can I set the windows and/or their materials so that I will have the light passing through the windows just like a sunlight ? Or do I have to use something like Volumetric Light instead of a point light ?

Thanks in advance !

aalavandhaann commented 5 years ago

CanKavaloglu,

This really depends on the models one will use as items in the floorplan. If the items support or have mesh components in them that are transparent or a hole then light will definitely pass through. This is something to work out in the import items.

To simulate sunlight use hemisphere lighting. This link should get you started on sunlight. With regards to volumetric light do you mean something like this?

Regards,

0K

CanKavaloglu commented 5 years ago

Hi #OK,

Well, the windows that are already in the project use Mesh Lambert Material and I am setting the opacity to 0 and transparent to true but still no luck.

By volumetric light I mean something like this and see the video.

Regards

CanKavaloglu commented 5 years ago

Hi #OK,

I have fixed the shadows from the windows, it was a matter of configuration in my case. However, the thing is now is that the walls do not receive shadows. Although I changed Mesh Basic Material with Mesh Phong Material in Edge class, the walls do not receive any shadows whereas they cast it. Also, changing the material from Basic to Phong broke the walls' texture, no idea why the textures are not visible in Phong since they also have "map" property for textures. Any suggestions ?

I believe that this application will be much better with the shadows since they have very good impact on the overall view.

Any help is appreciated in advance.

Cheers !

aalavandhaann commented 5 years ago

15. This feature is related to the referenced issue. As both are in the same lines of feature requests I am closing this issue. Feel free to reopen if necessary.