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 2022-07-28 23:23:10 -0500

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-07-29 10:21:44 -0500

updated 2022-07-29 11:36:10 -0500

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

edit flag offensive delete link more

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2022-07-28 23:23:10 -0500

Seen: 265 times

Last updated: Jul 29 '22