Hi! I just wanna display a 3d model on a 3DS and I have no clue where to start from. I studied the examples/3ds that come with devkitPro and found these things:
Extract from lenny\...\lenny.c:
Extract from toon_shading\...\teapot.c:
I guess no human being in the world would be capable to manually type that huge amount of numbers (jk)
So, can someone please explain what those vertex arrays mean and how exactly are they generated?
Extract from lenny\...\lenny.c:
Code:
const vertex vertex_list[3345] =
{
{ -0.48246, 0.00967688, -0.179352, 0, -1.85661e-012, -1, },
{ -0.48245, -0.0384802, -0.179352, 0, -1.85661e-012, -1, },
{ -0.483443, -0.0141747, -0.179352, 0, -1.85661e-012, -1, },
......
Extract from toon_shading\...\teapot.c:
Code:
const float vertex_array[7752] =
{
-0.508714, 0.682112, 0.071712, -0.901883, 0.415418, 0.118168,
-0.517593, 0.664661, 0.063813, -0.905637, 0.407056, 0.118656,
-0.499882, 0.682112, 0.139122, -0.877041, 0.418744, 0.235298,
.....
I guess no human being in the world would be capable to manually type that huge amount of numbers (jk)
So, can someone please explain what those vertex arrays mean and how exactly are they generated?