Page 2 of 3

Re: 3D engine

Posted: Sun Feb 06, 2011 8:10 pm
by ishkabible
ya i know about it, it's an issue with the poly sort. what is happening is I'm not sorting the polygons correctly and some polygons get rendered after where they should be. on a side note the engine seems to be able to render 600 triangles at 30 fps on my system with LuaJIT. without LuaJIT it runs at 15fps :cry: im gonna need to optimize it later

Re: 3D engine

Posted: Sun Feb 06, 2011 8:13 pm
by BlackBulletIV
Ah ok. Man, that's not cool. How do you use LuaJIT with Love anyway?

Yay, 200 posts!

Re: 3D engine

Posted: Sun Feb 06, 2011 8:16 pm
by ishkabible
there is a thread somewhere, one sec ill edit in the link in to this

here it is
http://love2d.org/forums/viewtopic.php?f=3&t=1960
there is a link to the download in there, i use LuaJIT to stop my self from prematurely optimizing code. if i don't see an issue i wont think to fix it ;)

Re: 3D engine

Posted: Mon Feb 07, 2011 12:26 am
by Ryne
Taehl wrote:Why bother making 3D for a 2D game engine? If someone wanted to make a 3D game, they could use a 3D engine...
Why wouldn't you do it? What difference does it make, it's really only adding functionality. I'm sure there were people back in the DOS days that said "I just don't get why we would need a window-based operating system, text is just fine!".

Re: 3D engine

Posted: Mon Feb 07, 2011 1:15 am
by ishkabible
alright i made a more performance demanding demo, im eager to hear how it Bahamas on other systems. i get 30 fps with regular love and 60fps(max) on love with LuaJIT. i can render 1200 polygons with LuaJIT at 30fps as well

Re: 3D engine

Posted: Mon Feb 07, 2011 3:44 am
by middlerun
ishkabible wrote:...how it Bahamas on other systems...
I love autocorrect. :ultraglee:

Re: 3D engine

Posted: Tue Feb 08, 2011 1:52 am
by ishkabible
ya that was supposed to be behavior but something got messed up :)

Re: 3D engine

Posted: Tue Feb 08, 2011 6:00 pm
by way
Shameless self-promotion: check out my dice roller application. Lighting, perspective projection, textures, some other stuff as well. You can roll the dice with left-click and pan the view by right-click-drag.

http://love2d.org/forums/viewtopic.php?t=1692

way

Re: 3D engine

Posted: Tue Feb 08, 2011 7:21 pm
by ishkabible
WTF how did you do this? you mind if i steal some of your code? how did you get the textures? and you did all the physics your self too? also how did you sort the polygons? i made sure that you weren't using z-buffering (or as far as i could tell from it without looking at the code)

Re: 3D engine

Posted: Tue Feb 08, 2011 8:14 pm
by way
You can use the code however you wish.
I sorted the polygons by distance from the camera.
I've done the physics as well, but I suppose you only need the graphics/rendering part.
For texturing, check out the love.graphics.transform function in the code.
There's some more explanation going on in the thread linked above, check it out.

Regards, way