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

usage #1

Open
4rc opened this issue Aug 9, 2024 · 2 comments
Open

usage #1

4rc opened this issue Aug 9, 2024 · 2 comments

Comments

@4rc
Copy link

4rc commented Aug 9, 2024

hi, the project seems exactly what i was looking for, but...sorry I really do not understand what i should do... Should i clone your folders on my webserver? and visit the index.html? is it ok that to simply export my home in obj and put it in the home folder under public? thanks

@bobvanderlinden
Copy link
Owner

The project is based on nodejs+vite.

  • Install nodejs: https://nodejs.org/en/download/package-manager
  • Clone or download sweethomewebxr in a directory.
  • Start command prompt or a terminal
  • Navigate to the sweethomewebxr directory
  • Run: npm install to install vite
  • Run: npm run dev -- --host --port 4430 to start a webserver
  • Notice Local: https://localhost:4430/ and Network: https://192.168.XXX.XXX:4430/
  • On the same machine you can open https://localhost:4430 in the browser.
  • On the Quest 3, that is connected to the same network as your PC/laptop, you can access https://192.168.XXX.XXX:4430/.
  • In both cases, the browser will likely warn about an untrusted HTTPS certificate. Click Advanced and proceed anyway (HTTPS is needed to allow WebXR on the Quest).

If you want to host this on your own system, you can:

  • Run: npx vite build
  • The directory dist is being created (which includes index.html).
  • Upload the files from dist/ to your webserver.

If you want to use your own SweetHome3D file, you need to:

  • Display all levels.
    image

    Without this only a single level will be exported.

  • Export to OBJ:

    image

  • Save it to sweethomewebxr/home/home.obj.
    SweetHome3D will create home.obj, but also many other related files that it will store in the same directory as home.obj.

home.obj and related files can also be uploaded to your webserver where you've uploaded the contents of dist/.

@4rc
Copy link
Author

4rc commented Aug 11, 2024

great explanation, I'll try it in a couple of days and I will back to you. thanks!

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

No branches or pull requests

2 participants