Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBJ Model Usage issues #3

Open
Nopzen opened this issue Nov 14, 2018 · 4 comments
Open

OBJ Model Usage issues #3

Nopzen opened this issue Nov 14, 2018 · 4 comments

Comments

@Nopzen
Copy link

Nopzen commented Nov 14, 2018

Hello,

Im trying to use the OBJModel from the lib but i keep getting following error:

./node_modules/react-3d-viewer/dist/scripts/react-3d-viewer.js
Cannot find file: 'index.js' does not match the corresponding name on disk: './node_modules/React/react'.

Setup:

import React, { Component } from 'react'
import { OBJModel } from 'react-3d-viewer'
import TEST_OBJ_MODEL from 'static/__TEST_IMAGES__/test_3d_model.obj'

class 3DViewer extends Component {

    render() {
        // const { t } = this.props

        return (
            <div>
                    <OBJModel 
                        width="400" height="400"  
                        position={{x:0,y:-100,z:0}}
                        src={TEST_OBJ_MODEL} 
                        texPath=""
                    />
            </div>
        );
    }
}

Not sure what im doing wrong here, im just following the example on the website :)

But i will give you some ❤️ for making such lib :D

@Nopzen
Copy link
Author

Nopzen commented Nov 23, 2018

@dwqdaiwenqi Is there an error in the package released to npm or do you think this is a local issue?

@elixirdada
Copy link

Hi @Nopzen
Did you fix that issues?

@Nopzen
Copy link
Author

Nopzen commented Jan 28, 2019

Nope never sadly.

@benedict966
Copy link

Sir Nopzen, did u download something to load an OBJ Model? @Nopzen. I have an issue, I cannot display my model in OBJ with Laravel Framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants