Loading JSON exported from THREE.js editor

Yhom Torke
        var container;
        var camera;
        var scene;
        var renderer;
        var mesh;
        var loader;

        init();

        function init(){


            camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHieght, 1 , 10000); 
            camera.position.z = 1000;
            //scene

            scene = new THREE.Scene();
            loader = new THREE.ObjectLoader();

            loader.load( "chesstable.js", function( mesh ) {

                mesh.scale.set( 1,1,1);
                scene.add(mesh);

            } );


            renderer = new THREE.CanvasRenderer();
            renderer.setSize(window.innerWidth, window.innerHeight);

            document.body.appendChild(renderer.domElement);

            renderer.render(scene, camera);

        }

Hello, I am trying to load scene ( some polygons and lights) exported from THREE.js editor as a json file. Browser seems to load json file but all I am getting is blank page. What could be the problem? Thanks in advance!

pailhead

I think it should be something like this

loader.load( "chesstable.js", function( geom ){
    mesh = new THREE.Mesh( geom, material);
    scene.add(mesh);
});

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Blender exported json file not loading in three.js

From Dev

File json exported by editor is not work

From Dev

My model exported from blender to three.js won't render correctly

From Dev

Unable to load textured Collada exported from blender using Three.js

From Dev

three.js normal issue after exporting from the three.js editor

From Dev

three.js normal issue after exporting from the three.js editor

From Dev

Loading multiple objects in Three.js from Blender

From Dev

Loading OBJ model from local machine with Three.js?

From Dev

Three.js skybox not loading

From Dev

Cocos2D-JS can't load json file exported from CocosStudio

From Dev

Exported Blender Object Missing Face In THREE.JS

From Dev

ARKit - Error loading DAE file exported from Maya

From Dev

Material does not display properly when loading json model in Three.js r69

From Dev

Create array of objects from bsondump exported json

From Dev

Loading code from editor into PyCharm terminal

From Dev

Load from JSON in Fabric.js loading default properties

From Java

loading json data from local file into React JS

From Dev

How to create JSON or Array of Objects From Three JS Arrays

From Dev

three.js JsonLoader is not showing JSON object converted from .obj

From Dev

Basic Collada Loading in Three.js

From Dev

Sprite isnt loading - Three.JS

From Dev

How to make a loading screen in three.js?

From Dev

Loading Maya model with Three.js

From Dev

Sprite isnt loading - Three.JS

From Dev

Is three.js ObjectLoader capable of loading textures?

From Dev

canceling loading an object into a scene in THREE.js

From Dev

Loading images in the exported .jar file

From Dev

THREE.js Editor: How to access main script in an example

From Dev

react - json from url not loading

Related Related

  1. 1

    Blender exported json file not loading in three.js

  2. 2

    File json exported by editor is not work

  3. 3

    My model exported from blender to three.js won't render correctly

  4. 4

    Unable to load textured Collada exported from blender using Three.js

  5. 5

    three.js normal issue after exporting from the three.js editor

  6. 6

    three.js normal issue after exporting from the three.js editor

  7. 7

    Loading multiple objects in Three.js from Blender

  8. 8

    Loading OBJ model from local machine with Three.js?

  9. 9

    Three.js skybox not loading

  10. 10

    Cocos2D-JS can't load json file exported from CocosStudio

  11. 11

    Exported Blender Object Missing Face In THREE.JS

  12. 12

    ARKit - Error loading DAE file exported from Maya

  13. 13

    Material does not display properly when loading json model in Three.js r69

  14. 14

    Create array of objects from bsondump exported json

  15. 15

    Loading code from editor into PyCharm terminal

  16. 16

    Load from JSON in Fabric.js loading default properties

  17. 17

    loading json data from local file into React JS

  18. 18

    How to create JSON or Array of Objects From Three JS Arrays

  19. 19

    three.js JsonLoader is not showing JSON object converted from .obj

  20. 20

    Basic Collada Loading in Three.js

  21. 21

    Sprite isnt loading - Three.JS

  22. 22

    How to make a loading screen in three.js?

  23. 23

    Loading Maya model with Three.js

  24. 24

    Sprite isnt loading - Three.JS

  25. 25

    Is three.js ObjectLoader capable of loading textures?

  26. 26

    canceling loading an object into a scene in THREE.js

  27. 27

    Loading images in the exported .jar file

  28. 28

    THREE.js Editor: How to access main script in an example

  29. 29

    react - json from url not loading

HotTag

Archive