3D engine
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Re: 3D engine
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 im gonna need to optimize it later
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: 3D engine
Ah ok. Man, that's not cool. How do you use LuaJIT with Love anyway?
Yay, 200 posts!
Yay, 200 posts!
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Re: 3D engine
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
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
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!".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...
@rynesaur
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Re: 3D engine
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
I love autocorrect.ishkabible wrote:...how it Bahamas on other systems...
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Re: 3D engine
ya that was supposed to be behavior but something got messed up
Re: 3D engine
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
http://love2d.org/forums/viewtopic.php?t=1692
way
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Re: 3D engine
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
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
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
Who is online
Users browsing this forum: No registered users and 6 guests