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

add JSON file into renderer?? #15

Open
GillianYue opened this issue Apr 6, 2017 · 0 comments
Open

add JSON file into renderer?? #15

GillianYue opened this issue Apr 6, 2017 · 0 comments
Milestone

Comments

@GillianYue
Copy link
Contributor

GillianYue commented Apr 6, 2017

I had trouble incorporating the Monkey.JSON file into the test class. In the current test class, the mesh is rendered as a cube, with the cube geometry in the react-three-renderer API.

          <mesh  rotation={this.state.cubeRotation}>
                <boxGeometry
                    width={1}
                    height={1}
                    depth={1}
                />
                <meshBasicMaterial
                    color={0x00ff00}
                />

            </mesh>

The examples I see online uses THREE.JSONloader to load the file, but when I tried to put that in I got a ton of errors... Need more research on this

@GillianYue GillianYue added this to the milestone 6 milestone Apr 6, 2017
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

1 participant