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 > NDS Opengl Vertex vs PC Opengl Vertex

#129980 - Marcel24 - Tue May 29, 2007 7:59 pm

Hi, i want to write a small scene editor for NDS demo's

so that i can made the whole demo on PC and transfer it to NDS (where a engine is that can render it like on the PC)



my question is if i make a 1 float sized CUBE for example on a PC

how big is it than on a NDS ?? i mean , how can i convert the values that it seems the same on NDS and on PC



cu

tnx for all :)

#129984 - relpats_eht - Tue May 29, 2007 9:12 pm

This depends entirely on your projection matrix. If those are the same (and having the same screen size or a direct scale of it wouldn't hurt) then the units are the same.
_________________
- relpats_eht

#129987 - Marcel24 - Tue May 29, 2007 9:47 pm

hi

the importend thing is the aspec ratio or ?

for example if a viewport of my editor has the screensize for example
512 x 384 it would be ok?

tnx

#129994 - relpats_eht - Tue May 29, 2007 11:07 pm

The projection matrix, which for you is likely initialized with a call to gluPerspective, is what really matters. If these are the same, then the aspect ration must be the same as well. Any scale of the DS screen size for a viewport will work.
_________________
- relpats_eht