3D engine

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: 3D engine

Post 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
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: 3D engine

Post by BlackBulletIV »

Ah ok. Man, that's not cool. How do you use LuaJIT with Love anyway?

Yay, 200 posts!
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: 3D engine

Post 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 ;)
User avatar
Ryne
Party member
Posts: 444
Joined: Fri Jan 29, 2010 11:10 am

Re: 3D engine

Post 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!".
@rynesaur
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: 3D engine

Post 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
User avatar
middlerun
Citizen
Posts: 64
Joined: Tue Nov 25, 2008 4:31 am
Location: Sydney, Australia
Contact:

Re: 3D engine

Post by middlerun »

ishkabible wrote:...how it Bahamas on other systems...
I love autocorrect. :ultraglee:
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: 3D engine

Post by ishkabible »

ya that was supposed to be behavior but something got messed up :)
way
Prole
Posts: 8
Joined: Thu Apr 29, 2010 3:18 pm

Re: 3D engine

Post 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
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: 3D engine

Post 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)
way
Prole
Posts: 8
Joined: Thu Apr 29, 2010 3:18 pm

Re: 3D engine

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests