Godzil
441d758845
Add locking mechanism to prevent updating transform/parent
2020-03-10 13:55:27 +00:00
Godzil
4e241a1871
Trying to make the dump a bit more usefull and slightly less cluttered
2020-03-09 17:41:11 +00:00
Godzil
15a861802a
OBJFile now use group instead of it own list.
...
Change the group function to find group by name, and now name group when needed, and change tests to use group name instead of number.
Also now the default group is the base group, not a separate group.
Bonus: Add a destructor to cleanup memory
Added a function to get base group. OBJFile will still behave as a valid shape, but now we can skip it in the generated world by adding the base group instead.
Code is now cleaner.
2020-03-09 16:03:27 +00:00
Godzil
8437ab8753
Move ShapeType into the Shape object.
2020-03-09 15:57:23 +00:00
Godzil
efa47f28ca
Fix some potential buffer overflow issues.
...
Not critical, but better to avoid them!
2020-03-09 14:16:05 +00:00
Godzil
57eff4830e
Sample scene for CSG \o/
2020-03-06 21:55:32 +00:00
Godzil
b5ee92c544
And CSG! \o/
...
Still working on a nice scene for it.
2020-03-06 19:00:31 +00:00
Godzil
e57b5715e8
Smooth triangles! And support for them in the OBJ File parser.
...
Also add an interesting tea party scene!
2020-03-06 15:07:26 +00:00
Godzil
518ac260e1
OBJFile parser seems to work.
...
Can render a simple scene using it.
TODO: Need add way to set material to childs.
2020-03-06 09:38:39 +00:00
Godzil
2725b5f657
Go a bit deeper in parsing the OBJ file. Now we parse each lines into token, and it's now ready to try to execute them.
2020-03-06 01:29:26 +00:00
Godzil
c17bfadc76
Started working on parsing OBJ Files.
...
Why string manipulation is so tedious in C/++ :(
2020-03-05 17:46:40 +00:00