Skip to content
/ obj-lib Public

A simple package i made for parsing .obj files. It can read files and return vertices, indices, normals and texture coordinates.

License

Notifications You must be signed in to change notification settings

wdlea/obj-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

obj-lib

A simple package i made for parsing .obj files. It can read files and return vertices, faces, normals and texture coordinates.

This would be private on NPM if i could make it private

This library CANNOT parse mtllibs

This library can only parse triangulated meshes

Example

import {Model} from "obj-lib"

const A_MODEL = `//3d model`

const m = Model.fromSrc(A_MODEL)

console.log(m.vertices)
console.log(m.normals)
console.log(m.UVs)
console.log(m.indices)

About

A simple package i made for parsing .obj files. It can read files and return vertices, indices, normals and texture coordinates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages