1

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

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!

Piyush's avatar
55
Piyush
asked 2022-07-28 23:23:10 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2022-07-29 10:21:44 -0500, updated 2022-07-29 11:36:10 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments