https://github.com/srcnalt/obj-importer
OBJ importer with material and texture support.
https://github.com/srcnalt/obj-importer
c cplusplus loader model mtl obj unity
Last synced: 3 months ago
JSON representation
OBJ importer with material and texture support.
- Host: GitHub
- URL: https://github.com/srcnalt/obj-importer
- Owner: srcnalt
- Created: 2018-07-24T21:44:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T21:12:48.000Z (almost 7 years ago)
- Last Synced: 2025-02-28T08:29:35.139Z (4 months ago)
- Topics: c, cplusplus, loader, model, mtl, obj, unity
- Language: C++
- Homepage:
- Size: 87.9 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# obj-importer
DLL for importing .obj files with material and texture.The project is based on [Unity's ObjImporter](http://wiki.unity3d.com/index.php/ObjImporter), the code is converted into C++, simplified and cleaned.
In addition to .obj loading, material loading and texture address extracing added to the DLL.## Instructions
- Place the [ObjImporter.dll](https://github.com/srcnalt/obj-importer/blob/master/Build/ObjImporter.dll) & [ModelLoader.cs](https://github.com/srcnalt/obj-importer/blob/master/Loader/ModelLoader.cs) files into your Unity project.
- Create an `Empty Game Object` in the scene and attach a `MeshFilter` and a `MeshRenderer` to it.
- Attach the `ModelLoader` script to this game object.
- Call the `LoadModel` method from this script using the path of the model as a string parameter.