adizanni / floor3d-card

Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
https://github.com/adizanni/floor3d-card
MIT License
471 stars 67 forks source link

RENDERIZATION #90

Closed VITCHEPF closed 2 years ago

VITCHEPF commented 2 years ago

Dotted lines appear on the 3D object, like a rendering error. Why does it happen?

Is it possible to solve this problem? ERRO0

ERRO1

VITCHEPF commented 2 years ago

See below the code:

type: custom:floor3d-card entities:

adizanni commented 2 years ago

Hello @VITCHEPF I do not think this is coming from the config. Instead I think that this is coming from the model itself (wall junctions or window inserts, etc.). It would be interesting to import those models in Paint3d (windows 10) or in another viewer (ex. https://3dviewer.net/) to see if there are similar patterns.

uspass commented 2 years ago

I had this kind of artifacts in the past. As @adizanni already said, some of them are mainly due to wall split and/or walls not connected. Sometimes appear in the window margins. Check walls.

Cheers, us

adizanni commented 2 years ago

Hello @VITCHEPF can you please give an update here ? @uspass and myself, we think that those patterns are due to the wall that are not properly connected. Can you please try to see if changing the model has any effect on the pattern ?

VITCHEPF commented 2 years ago

Hi @adizanni, I checked the model in 3dviewer and there are the same patterns present. Do you know if there is any solution to reduce this patterns (in Sweethome3D or in Floor3DCard)?

adizanni commented 2 years ago

Hello @VITCHEPF, in Sweethome3d use the magnetism and grid in order to ensure that walls, windows and other objects are sticking together. Also in the 2d view zoom in the wall junction to see if there are gaps. This can reduce the effect but not eliminate it, any micro variation or wall movement can create the problem in the card 3d rendering.

image