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
461 stars 66 forks source link

Text is mirrored after converting OBJ to GLB #119

Closed Newlance closed 2 years ago

Newlance commented 2 years ago

Checklist:

Release with the issue:

Last working release (if known):

Browser and Operating System:

Description of problem: I wanted to see what performance enhancements occur from converting from obj to glb. Having one file is preferable, I also noticed transparency on images seems to be working which is a big plus! however all the text appears to now be upside-down and backwards which is unfortunately a deal breaker. This wouldn't be a problem with frames, but I'm not sure what can be done about text on 3D objects. Is there a workaround that you're aware of?

Alternatively, is there a way to get transparency in images working in the obj format? If you see the third screenshot attached, that's what I'm looking for; however, in obj format the transparent background seems to convert to a dark grey.

Also, I'm using your SweetHome3D HA Plugin to get the OBJ file in the first place, if that matters.

Thank you!

Additional information: image image image

adizanni commented 2 years ago

Hello @Newlance, this is a known problem that I have not yet had the time to fix. GLB has never left its experimental support due to lack of time; I'm not yet ready to spend more time on the card for the coming days (leaving to holidays). I've seen that in your repository you have some skills in 3d, are you, by any chance available to become a contributor to this card project ?

Newlance commented 2 years ago

@adizanni I've certainly been thinking about it. As you may have noticed I have a lot of ideas Lol Not a lot of experience with the library you're using, but given some time I'm sure I could learn.

Newlance commented 2 years ago

Created PR https://github.com/adizanni/floor3d-card/pull/122 to resolve this issue!

Newlance commented 2 years ago

Closing with merge. hurrah!

adizanni commented 2 years ago

Hello @Newlance thanks a lot for the work, you dared to put your hands in my crappy code, you would deserve a price.........