Page 3 of 3

Re: Just a question, Love3D?

Posted: Fri Nov 12, 2010 10:45 pm
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. ;)

Re: Just a question, Love3D?

Posted: Sat Nov 13, 2010 8:22 am
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

Re: Just a question, Love3D?

Posted: Sat Nov 13, 2010 2:46 pm
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 1272 times

Re: Just a question, Love3D?

Posted: Sat Nov 13, 2010 9:11 pm
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.

Re: Just a question, Love3D?

Posted: Thu Nov 18, 2010 1:33 am
by Jasoco

Re: Just a question, Love3D?

Posted: Thu Nov 18, 2010 12:41 pm
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.