Page 2 of 22

Re: Groverburger's Super Simple 3D Engine - v1.2

Posted: Tue Jun 11, 2019 10:52 am
by PGUp
world position to screen position please?

Re: Groverburger's Super Simple 3D Engine - v1.2

Posted: Sun Jun 16, 2019 2:26 pm
by PGUp
I added a simple obj file loader, credits to: https://github.com/karai17/lua-obj
loader.zip
(341.23 KiB) Downloaded 802 times

Re: Groverburger's Super Simple 3D Engine - v1.2

Posted: Thu Jun 20, 2019 6:54 am
by groverburger
PGUp wrote: Tue Jun 11, 2019 10:52 am world position to screen position please?
Computed in the last line of the vertex shader:

Code: Select all

return view * model_matrix * vertex_position;
You could use that and do the matrix math to find the screen position.
PGUp wrote: Sun Jun 16, 2019 2:26 pm I added a simple obj file loader, credits to: https://github.com/karai17/lua-obj
loader.zip
This is great! I'll credit you and use it in the official repo if you don't mind. :)

Re: Groverburger's Super Simple 3D Engine - v1.2

Posted: Fri Jul 05, 2019 9:20 pm
by Lafolie
Super cool. I'm doing research for a metroidvania project at the moment and this would be really useful. Are there any plans to have an orthographic viewport? I would like to support simple low-poly objects such as the doors, books, and the background clock tower featured in Symphony of the Night, and to get that pixel-perfect PSX feel orthographic seems to be the way to go.

Re: Groverburger's Super Simple 3D Engine - v1.2

Posted: Tue Sep 17, 2019 1:35 am
by yetneverdone
How does one make 3D objects without typing those vertices for objects?

Re: Groverburger's Super Simple 3D Engine - v1.2

Posted: Tue Sep 17, 2019 5:06 am
by zorg
yetneverdone wrote: Tue Sep 17, 2019 1:35 am How does one make 3D objects without typing those vertices for objects?
You don't :P I mean, you could write a function for simpler shapes, and/or use a model loader for loading in more complex models (which are also made up of tons of vertices anyway).

Edit: lua-obj i'm guessing is an OBJ format loader, and i do recall there being an IQM format loader as well... yep, here: https://github.com/excessive/iqm-exm

Re: Groverburger's Super Simple 3D Engine - v1.2

Posted: Tue Sep 17, 2019 8:01 am
by yetneverdone
zorg wrote: Tue Sep 17, 2019 5:06 am
yetneverdone wrote: Tue Sep 17, 2019 1:35 am How does one make 3D objects without typing those vertices for objects?
You don't :P I mean, you could write a function for simpler shapes, and/or use a model loader for loading in more complex models (which are also made up of tons of vertices anyway).
I see.

Above comment uses lua-obj, I'll wait for ss3d tp to include that

Re: Groverburger's Super Simple 3D Engine - v1.3

Posted: Thu Oct 03, 2019 1:29 am
by groverburger
New version on Github, version 1.3. Obj import added.

Re: Groverburger's Super Simple 3D Engine - v1.3

Posted: Sat Oct 05, 2019 9:27 am
by Fuzzlix
Hi.
I forked your repo and made some changes without changing any logic. Mainly its about avoiding globals and removing double calculations. I made a pull request for you. You may also want to look into my branch "folder-test". I moved engine and reader into a engine subfolder. This would make it easier to add more addons to your engine and keeps things sorted in one place.

Re: Groverburger's Super Simple 3D Engine - v1.3

Posted: Sat Oct 12, 2019 1:47 pm
by YoungNeer
But how do you rotate the camera? camera.angle doesn't seem to help. Would I have to combine it with camera.pos to get a turn-table animation!