Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Levels - Incremental level selection #109

Open
vpnobregasmarthome opened this issue May 9, 2022 · 31 comments
Open

Multi-Levels - Incremental level selection #109

vpnobregasmarthome opened this issue May 9, 2022 · 31 comments
Labels
enhancement New feature or request

Comments

@vpnobregasmarthome
Copy link

Hello, i have the project of my house with several floors and I exported it through the available plugin.
When adding this card, I can see the various floors on the left side but when I select only a lower floor, the objects on the upper floor are visible. Any idea what could be causing this?

@vpnobregasmarthome vpnobregasmarthome added the bug Something isn't working label May 9, 2022
@adizanni
Copy link
Owner

adizanni commented May 9, 2022

The functionality is quite new so it may have some bugs. Normally the level buttons on the top left corner are acting as indipendent switches, if you click on a level you hide/show the level objects and if you click on the top icon you make them all show. The only way for me to test is if you share your sh3d model.

@vpnobregasmarthome
Copy link
Author

Projeto_v13.zip
Screenshot_16

thanks for the quick response. I attached the project and an image of the floor 0 selection and the visible objects of the upper floors

@adizanni
Copy link
Owner

adizanni commented May 9, 2022

The objects that are not bound to a level, they are attached by default to level 0. Please check the properties of those objects in Sweethome3d and why they are not bound to a level.

@vpnobregasmarthome
Copy link
Author

vpnobregasmarthome commented May 9, 2022

The objects that are not bound to a level, they are attached by default to level 0. Please check the properties of those objects in Sweethome3d and why they are not bound to a level.

Can you share a printscreen of it? I cant find objet properties to select a level. thanks

@adizanni
Copy link
Owner

adizanni commented May 9, 2022

Hello @vpnobregasmarthome, to see the association between an object and the level you need to ceck the furniture list below the furniture catalogue in the left part of the sweethome3d screen. For wall and other core elements, the only way is to switch between the tab of the models. Look at this picture:

image

@vpnobregasmarthome
Copy link
Author

I confirmed in the objects properties and the level is correctly associated. From the image you can see that several objects are on different levels. Can you validate if it's a bug in the addon or in the way to validate the object level?
Screenshot_17

@adizanni
Copy link
Owner

adizanni commented May 10, 2022

Would you be ok to share your sh3d model and send me via cloud drive ? Sorry I retire my comment, I have noticed that you did share the model already....

@adizanni
Copy link
Owner

adizanni commented May 10, 2022

Ok, I've found the bug. In order to be compliant with the .obj waterfront format, I only accept standard characters (a-z A-Z 0..9). It is quite a limitation (chinese guys already complained in a previous issue). Before I address this issue, please try to comply with an object naming that does not contain special portuguese characters (berco televisao, etc.). I may try to disable the waterfront standard in a future release but with unpredictable results........ By the way your model is impressive and simple enough to be managed easily by the card. Very good.

@vpnobregasmarthome
Copy link
Author

Ok, I've found the bug. In order to be compliant with the .obj waterfront format, I only accept standard characters (a-z A-Z 0..9). It is quite a limitation (chinese guys already complained in a previous issue). Before I address this issue, please try to comply with an object naming that does not contain special portuguese characters (berco televisao, etc.). I may try to disable the waterfront standard in a future release but with unpredictable results........ By the way your model is impressive and simple enough to be managed easily by the card. Very good.

thanks. I'll put the program in English and export the file again to test.

@adizanni
Copy link
Owner

I do not think you are forced to install the english version (as anyway the core elements like walls and rooms are not localized), but you need to rename all your objects.
Also to claim this is not an issue but works as expected you can try to use the Export to obj function of Sweethome3d and you will see that special character are not well managed....

@vpnobregasmarthome
Copy link
Author

I changed the names of the objects and now, selecting each level shows the objects associated with that level. Thanks a lot for the help.

@vpnobregasmarthome
Copy link
Author

I updated the object names but when I click on an object, a popup appears with the object's old name. When I'm mapping a light to objects, the name that appeared in the popup doesn't appear in the object list. This list already has the new name. Any idea what it could be? I have already cleared the browser cache.

@adizanni
Copy link
Owner

From what you describe, it seems that either you did not overwrite the old .obj file (only the json file) or the browser is picking the old .obj version. On top of clearing the cache (that should solve the problem), please try to version the name of the .obj file by adding a URL version (ex. home.obj?ver=1, and the same for the mtl file and for the json file). Try to do a visual modification to your model to see if the card loaded the new version.

@vpnobregasmarthome
Copy link
Author

I changed the file name and I can already see the updated object name. Now I have another problem. I have a light and I want to turn on the light and see the effect of the light on on the card but I see that the state of the light entity changes when I click on the light but visually nothing changes.
it will be a problem with the configuration of the card?

`entities:

  • entity: light.controller_rgb_80ad05
    type3d: light
    object_id: Luz_Escritorio_2
    light:
    lumens: '800'
    shadow: 'yes'`

Screenshot_18

@adizanni
Copy link
Owner

When you have solid lights like the one you show in the picture, try to use the vertical alignment = bottom. Because otherwise the light is stopped by the lamp itself.

@vpnobregasmarthome
Copy link
Author

by the la

I tried it but the light effect did not appear

@vpnobregasmarthome
Copy link
Author

`type: custom:floor3d-card
path: /local/FloorPlan3d/v13/
name: Home
objfile: home_1.obj
shadow: 'yes'
globalLightPower: '0.8'
header: 'no'
camera_position:
x: 609.3072605703628
'y': 905.5330092468828
z: 376.66437610591277
camera_rotate:
x: -1.0930244719682243
'y': 0.5200808414019678
z: 0.7648717152512469
camera_target:
x: 37.36890424945437
'y': 18.64464320782064
z: -82.55051697031719
object_groups:

  • object_group: RoundTable
    objects:
    • object_id: Round_table_1
    • object_id: Round_table_2
    • object_id: Round_table_3
  • object_group: EntranceDoor
    objects:
    • object_id: Door_9
    • object_id: Door_7
    • object_id: Door_5
      entities:
  • entity: light.controller_rgb_80ad05
    type3d: light
    object_id: Luz_Escritorio_2
    light:
    lumens: '400'
    shadow: 'no'
    vertical_alignment: bottom
    zoom_areas:
  • zoom: ''
    mtlfile: home_1.mtl
    objectlist: home_1.json`

@adizanni
Copy link
Owner

There is some light appearing in the picture, if it is not really the light effect; I think there is something wrong with the light entity or with the object itself: try to add the light to another object in the model (ex. the shelf) and see if it works. In the meantime I will do some test with the model you sent me.

@vpnobregasmarthome
Copy link
Author

testing the part of turning the lights on/off, it doesn't work in chrome via laptop but in chrome via android I can see the light and the color associated with the led strip. It's just some cuts on the wall, which is flat, I don't understand that having these cuts in the light effect. Do you understand why this happens? shouldn't it work in chrome via laptop?
Screenshot_19

@adizanni
Copy link
Owner

The cuts are due to the shadow. I've not done enough test of lights in multilevel. It is always good to put ceilings in the room in sweethome, they will be transparent from above but they will not let the light out

@adizanni
Copy link
Owner

And if you refer to the straight parallel lines in the walls , these are the shadows projected by the lamp itself.

@vpnobregasmarthome
Copy link
Author

I removed the shadow effect and the lines with the shadows on the walls no longer appear

@vpnobregasmarthome
Copy link
Author

I always have ceilings, the point is that the ceiling gives rise to another level. To be able to see the lamps, I have to select the view without ceilings because then I can't select the lights. is there an option to choose a level by default instead of having them all selected? I ask this because whenever I look at the card, I have to take several levels to see the level I want. if there was a configuration parameter, it would open the card at the desired level.

@adizanni
Copy link
Owner

I can easily put another button to unselect all and then you select the level you want (it would be 2 clicks but no config to update). Otherwise I can have the same approach as Sweethome3d: Clicking on level 0 it shows only level 0, clicking on level 1 it shows 0+1, etc.
If you do not mind I can turn this issue into an enhancement request. If you have some bugs related to how the lights are working in multi-level please post another one

@vpnobregasmarthome
Copy link
Author

Following the sweet home approach was ideal. Select 0, 0 appears, select 1, 0+1 appears.
Also a default way instead of showing all levels.
Will you be able to develop this for a future release?

@adizanni adizanni added enhancement New feature or request and removed bug Something isn't working labels May 22, 2022
@adizanni adizanni changed the title Multi-Levels - Level selection show all objects of others levels Multi-Levels - Incremental level selection May 22, 2022
@V1per1331
Copy link

Hello Andy,
This card really works wonders, the only concern that bothers me, the level buttons do not appear on my card. The option to hide the level menus is of course off in the config.
However, I imported my project with your plugin, and also transformed them into '''.glb' with nodejs, everything went smoothly.
except that in summary I can not change levels
sweetHome version 7
exportHA up to date
could you make a tutorial or give me the procedure to follow please
Cordially
image

@adizanni
Copy link
Owner

@V1per1331 apologies, I did not get the notification for this new post on the issue. if you use .obj and .mtl from the plugin does it work ?

@V1per1331
Copy link

Good morning,
thank you for your reply.
no even with .obj and .mtl it does not work at all.
I tested different configurations, I even came to do 2 exports, one for the ground floor and one for the floor, which I positioned in another dashboard, but I no longer have a solution.

Cordially

@adizanni
Copy link
Owner

In this case I need to test your model in Sweethome3d, I have no other clue.

@V1per1331
Copy link

ok how can i send it to you

@V1per1331
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants