Just a question, Love3D?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Just a question, Love3D?

Post by Robin »

bartbes wrote:You're insane if you're going to do 3d without a backend like OpenGL. Luckily those also do stuff like projection for you, meaning it's a lot easier.
Insane doesn't mean you should never try it. ;)
Help us help you: attach a .love.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Just a question, Love3D?

Post by kikito »

Ryne wrote: Wouldn't you have to do that if you were programming from absolute scratch as well?
Not necesarily. OpenGL for example provides function for drawing 3d stuff. Things like "draw a cube here" or "draw a 3d polygon with texture there" can be done with 3 or 4 lines of code (then, you can add as much complexity as you need. the sky is the limit!)

If you where using a 2d lib or engine for that, you would have to program by yourself even the most elementary stuff - like drawing textured polygons, for example. The minimum number of lines for drawing one spinning cube and one textured polygon would easily reach the 1000 lines of code (you would basically have to re-implement a small OpenGL yourself). So it would take 1-2 months to accomplish what takes one afternoon using OpenGL. And it would be much less efficient (OpenGL uses hardware acceleration and machine code internally, you would not have that)

That said, it is possible. Some people have already tried. See Jasoco's 3D model extravaganza
When I write def I mean function.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Just a question, Love3D?

Post by zac352 »

Kikito, I did my (very ugly textures that I can't screenshot atm) in less than 200 lines of code.
love3d.png
love3d.png (23.53 KiB) Viewed 1273 times
Hello, I am not dead.
User avatar
Ryne
Party member
Posts: 444
Joined: Fri Jan 29, 2010 11:10 am

Re: Just a question, Love3D?

Post by Ryne »

zac352 wrote:Kikito, I did my (very ugly textures that I can't screenshot atm) in less than 200 lines of code.
love3d.png
Thats pretty cool! :D I wanted to check out Jasoco's but the download link on the thread is broken.
@rynesaur
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Just a question, Love3D?

Post by zac352 »

If I could use a computer with an openGL implementation that isn't ancient, then I could work on textures. I added scissoring to a triangle shape, but that's it.
Hello, I am not dead.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 9 guests