react-obj-viewer
v0.1.3
Published
3D Obj viewer for react
Downloads
19
Maintainers
Readme
react-obj-viewer
Installation
npm install react-obj-viewer
Import the ObjViewer component into your project
import { ObjViewer } from 'react-obj-viewer'
<ObjViewer
model="your/obj/path/here.obj"
/>
If the model path is correct then model should load in the react app.
Additional props and components
The ObjViewer component takes additional props to adjust the dimensions, add a material, add axis helper or a bounding box helper.
<ObjViewer
model="your/obj/path/here.obj"
material="your/material/path/here.jpg"
width={400}
height={400}
axis={true}
boundingBox={false}
/>
Future Development
If there are any requests or you need any anymore help than that provided above then feel free to get in touch