gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Wireframe or GL_LINES

#46946 - revo - Sat Jul 02, 2005 11:32 am

Hi,
I can't find way to draw lines on DS using 3D mode.

There are definitions:

Code:
#define GL_TRIANGLE        0
#define GL_QUAD            1
#define GL_TRIANGLE_STRIP  2
#define GL_QUAD_STRIP      3


but there is no GL_LINES like in normal OpenGL. Is it possible to draw lines or turn to wireframe mode? I think hardware allows to do it, ie. Metroid Prime: Hunters.
_________________
[ sorry for all mistakes, but my english isn't as good as I wish it to be ]

#46963 - gladius - Sat Jul 02, 2005 6:07 pm

While it's quite possible the hardware supports lines, it might also be the case that it doesn't, and the metroid devs just emulated them with very thin triangles.

#46964 - LOst? - Sat Jul 02, 2005 6:20 pm

gladius wrote:
just emulated them with very thin triangles.

I wouldn't call it emulated because you can't do it any other way. If you want to do lines, you have to do it in 3D using... polygons (triangles).

Just had to say that. I am no expert on 3D though. I know you meant emulating wireframe anyway so I will be quiet now.

#46966 - NEiM0D - Sat Jul 02, 2005 6:36 pm

Wireframe is supported.

Set the alphablend to 0, and you will have wireframe.

#46967 - LOst? - Sat Jul 02, 2005 6:50 pm

NEiM0D wrote:
Wireframe is supported.

Set the alphablend to 0, and you will have wireframe.

Interesting. That will help me win the console demo compo next month *rus away*