First time here? Check out the Help page!

Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

How to translate geometry from Floorspace json to Three.js?

asked 2 years ago

Piyush's avatar

Hi! I want to render a Floorspace JS geometry on a web page, but outside the Floorspace environment. I have the json from Floorspace and I want to translate this json to three.JS and render this on a web page. I would appreciate guidance in using existing translators (json to three js) to extract three js for the modeled geometry. Thanks!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 2 years ago

updated 2 years ago

The Merge FloorSpaceJS with Model measure uses ThreeJS as an intermediary format. That scene is made on line 109 here https://github.com/NREL/openstudio-mo....

You may be able to update that to export a ThreeJS file One thing to keep in mind is an update to this measure in next few months will go direct from FoorSpaceJS to OOSM without using ThreeJS. The ThreeJS methods in OpenStudio will be deprecated and then removed eventually.

David

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2 years ago

Seen: 320 times

Last updated: Jul 29 '22