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

Card fails to display simple floorplan model #183

Open
2 tasks done
nmehlei opened this issue Jun 10, 2024 · 1 comment
Open
2 tasks done

Card fails to display simple floorplan model #183

nmehlei opened this issue Jun 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nmehlei
Copy link

nmehlei commented Jun 10, 2024

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: v.1.5.3

Browser and Operating System:

Mac OS X Sonoma 14.5 with Chrome v 125.0
as well as Fire HD 10 (2021)

Description of problem:

I've created a basic 3D floorplan with Sweet Home 3D (single room) and tried to show it with the floor3d-card. The default model is shown correctly (screenshot on the right), but my own is failing to be displayed, with a non-helpful error message in the JS console (see attached screenshot). As it looks like, it fails to load the model for some reason.

I tried exporting both with the native obj exporter from Sweet Home 3D as well as the ExportToHASS plugin, exact same behavior.

Screenshot 2024-06-11 at 00 01 53 Screenshot 2024-06-11 at 00 02 17

I've attached the model that I used below.

Additional information:
example_model.zip

@nmehlei nmehlei added the bug Something isn't working label Jun 10, 2024
@adizanni
Copy link
Owner

adizanni commented Jun 11, 2024

Hello @nmehlei, there is a common problem appearing since I have introduced the sample model. When you add the card from the card library, the card is created with some entities based on the sample model. If you change the model pointing to your obj file you have to remove all references (entities and object groups) to the sample model, otherwise you will have a reference error that is not well managed by the card code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants