I'm currently attempting to write a OBJ parser and it's not outputting anything but the 1st variables in the v and f lists.
This is a really simple parser, and I have no idea why it isn't working properly..
Here's the .love file:
The parser is in the objParser.lua file.
Help with OBJ parser?
-
- Prole
- Posts: 16
- Joined: Thu May 27, 2021 12:32 am
Help with OBJ parser?
"There is no such thing as a mistake, only happy accidents"
Re: Help with OBJ parser?
I assume this is the problem:
Code: Select all
-- This:
step2 = split(startsWithV[i], "%s")
-- should be something like this:
step2[i] = split(startsWithV[i], "%s")
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
-
- Prole
- Posts: 16
- Joined: Thu May 27, 2021 12:32 am
Re: Help with OBJ parser?
Ah. Yeah, that was supposed to be there.. Thanks!ReFreezed wrote: ↑Tue Jun 29, 2021 1:27 am I assume this is the problem:Code: Select all
-- This: step2 = split(startsWithV[i], "%s") -- should be something like this: step2[i] = split(startsWithV[i], "%s")
"There is no such thing as a mistake, only happy accidents"
Who is online
Users browsing this forum: No registered users and 4 guests