Should I use quads or triangles for walls and flat surfaces?

Started by doctorpunk, June 17, 2011, 04:05:49

Previous topic - Next topic

doctorpunk

I followed the very helpful nehe tutorial on 'moving through a 3D world' and I am now wondering why the author chooses to make all quad shaped faces of an object out of 2x triangles rather than just 1 big quad. Is there an advantage to this?

Estraven

Hi,

can you provide a link to this tutorial ? It might help to read it to get an answer ;)

Estraven

Fool Running

Quote from: doctorpunk on June 17, 2011, 04:05:49
I followed the very helpful nehe tutorial on 'moving through a 3D world' and I am now wondering why the author chooses to make all quad shaped faces of an object out of 2x triangles rather than just 1 big quad. Is there an advantage to this?
Maybe this will help: http://forums.libsdl.org/viewtopic.php?t=6396&sid=f3a16ebba9046d2ad58c87ceb82f8a7d
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

doctorpunk

http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=10

Down the bottom there is a LWJGL conversion however it requires a few modifications.

the import GLU needs to be pointed to its new location and the texture bindings can be replaced with slick texture binding.