Skip to main content
"Yes, someone knows" is unlikely to be the answer you are looking for.
Link
Philipp
  • 123k
  • 28
  • 264
  • 344

Does anyone know how How to add a JSON object / model into your whitestorm world / scene?

added 294 characters in body
Source Link
aryeh
  • 101
  • 1

I am loading the object from my json file.

var loader = new THREE.ObjectLoader(); loader.load("blue-car.json", function ( car ) { car.position.set(2, 0, 0); car.addTo(world); } ); 

Chrome Console Error

How can I add the object to my world? In regular three.js it works when I load the json file, but how do I do it in whitestorm?

Update: I tried using the importScene whitestorm method. No errors but it still doesn't show up. Here is an image of logging out a regular plane in whitestorm and the car that is loaded from the json file.enter image description here

Thank You!

I am loading the object from my json file.

var loader = new THREE.ObjectLoader(); loader.load("blue-car.json", function ( car ) { car.position.set(2, 0, 0); car.addTo(world); } ); 

Chrome Console Error

How can I add the object to my world? In regular three.js it works when I load the json file, but how do I do it in whitestorm?

Thank You!

I am loading the object from my json file.

var loader = new THREE.ObjectLoader(); loader.load("blue-car.json", function ( car ) { car.position.set(2, 0, 0); car.addTo(world); } ); 

Chrome Console Error

How can I add the object to my world? In regular three.js it works when I load the json file, but how do I do it in whitestorm?

Update: I tried using the importScene whitestorm method. No errors but it still doesn't show up. Here is an image of logging out a regular plane in whitestorm and the car that is loaded from the json file.enter image description here

Thank You!

edited title
Link
aryeh
  • 101
  • 1

Does anyone know how to add a JSON object / model into your whitestorm world / scene?

Corrected spelling
Source Link
aryeh
  • 101
  • 1
Loading
Source Link
aryeh
  • 101
  • 1
Loading