groverburger / g3d

Simple and easy 3D engine for LÖVE.
MIT License
567 stars 35 forks source link

Can this load .mtl files? #35

Closed z3n01d closed 1 year ago

z3n01d commented 1 year ago

So I'm using a model which has a mtl file but it can't be loaded in g3d, so is it possible or png is the only supported format?

groverburger commented 1 year ago

The only filetype that g3d adds support for are obj files. I don't think Love has support for mtl files, in which case you're out of luck. There's nothing stopping you from writing a custom loader and a shader for it, though.

z3n01d commented 1 year ago

Yeah I will try to add .mtl textures loading, still, thank's for answering.