Skip to content

Obj fix#58

Open
EgguProgramming wants to merge 1 commit into
openfl:masterfrom
EgguProgramming:master
Open

Obj fix#58
EgguProgramming wants to merge 1 commit into
openfl:masterfrom
EgguProgramming:master

Conversation

@EgguProgramming

Copy link
Copy Markdown

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

Snky commented Nov 21, 2024

Copy link
Copy Markdown

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)

@EgguProgramming

Copy link
Copy Markdown
Author

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