Skip to content

Conversation

@EgguMan
Copy link

@EgguMan EgguMan commented Apr 21, 2024

Upon loading a .OBJ file into away 3D, it will only use the last mentioned texture in an object, defined by "o" and "usemtl"

this happens because each object can only have 1 texture, but the OBJ file attempted to load multiple textures onto 1 obj. I fixed this by instead of creating a new object on every use of the O keyword, it ignores the O keyword and will then create a new object under usemtl, then applies the texture.

@Snky
Copy link

Snky commented Nov 21, 2024

What if you use the same material on two sides of a cube? Would it only create one object (one side) (finally got around to looking at this)

@EgguMan
Copy link
Author

EgguMan commented Nov 30, 2024

I didn't consider that. I'll patch this up when I get the chance.

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

Successfully merging this pull request may close these issues.

2 participants