GithubHelp home page GithubHelp logo

arc3d's Introduction

Arc3D

arc3d's People

Contributors

megaturbo avatar

Watchers

 avatar  avatar  avatar  avatar

arc3d's Issues

Using multiple .js models causes flickering

I now try to use different .js (JSON) models of the differents parts of the building.
But it causes flickering between those part, that only when you are far from the model.

The code I use for 3 different models i.e:

var jsonLoader = new THREE.JSONLoader();
models = ["walls_0", "walls_1", "ceiling_0"];
for(var i = 0; i < models.length; i++)
{
    //TODO: Get rid of function within the loop
    jsonLoader.load("models/multipart/" + models[i] + ".js", function(geometry, materials){
        var material = new THREE.MeshLambertMaterial(materials[0]);
        mesh = new THREE.Mesh(geometry, material);
        console.log(material);
        //TODO: Find out why the model is not at its correct position
        mesh.position.y -= 100;
        scene.add(mesh);
    });
}

OBJ Loader doesn't work well

The pipeline I use:
1 Create model on Autodesk 3dsMax
2. Export in .OBJ w/ .MTL
3. Use three.js ObjLoader

Error: There is quite a lot of errors in the model. Screenshot:
Obj loader doesn't work

With this loader:

THREE.Loader.Handlers.add( /\.dds$/i, new THREE.DDSLoader() );
var mtlLoader = new THREE.MTLLoader();
mtlLoader.setBaseUrl( 'models/' );
mtlLoader.setPath( 'models/' );
mtlLoader.load( m_path + '.mtl', function( materials ) {
materials.preload();
    var objLoader = new THREE.OBJLoader();
    objLoader.setMaterials( materials );
    objLoader.setPath( 'models/' );
    objLoader.load( m_path + '.obj', function ( object ) {
        object.position.y = - 95;
        scene.add( object );
    }, onProgress, onError );
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.