3D Questions
Posted: Sat Jun 26, 2010 9:16 pm
Hey guys, sorry if I'm posting in the wrong area or any such rookie mistake.
I've recently begun to fiddle arond with programming on the Nintendo DS, I've got the background skills of C++, C, OpenGL, and general theory of programming in 3D. But I've hit a snag, which I don't really know my way around, I can only assume I'm making a mistake.
To keep it simple, I used the example that already exists in the NDS examples folder (devkitPro\examples\nds\Graphics\3D\Display_List_2), however replacing that teapot, with any other model converted to a .bin using a tool aptly named NDSModelExporter (which converts .3ds, .x, .mesh, and so forth into the .bin type used by the NDS) results in losing all the lighting effects.
The code itself, remains unchanged. To show what I mean, here are two images, the example as it comes, and then the example with the .bin as the only thing changed:
http://i50.tinypic.com/nns3o2.jpg
http://i45.tinypic.com/23r5m3q.jpg (It's an icosahedron, made in 3ds converted to .bin, I imagine similar to what was done with the teapot.bin)
It has to be the .bin, but I've not come across any other tool to convert to .bin, and short of opening up the .X file to shred out the mesh data, I'm stuck.
What exactly is going wrong? Could any of you point me in the direction, or be so kind as to offer an example of a loaded, 3d model, lit?
Edit: To expand on the problem, the conversion tool provides a 'normal flip' option, which I have tested both on and off, and both appear the same as the above model. I've also tried some of the DirectX sample files, such as Tiny, models that have correct lighting in the DirectX Model Viewer. I can't help but think the conversion tool is broken.
I've recently begun to fiddle arond with programming on the Nintendo DS, I've got the background skills of C++, C, OpenGL, and general theory of programming in 3D. But I've hit a snag, which I don't really know my way around, I can only assume I'm making a mistake.
To keep it simple, I used the example that already exists in the NDS examples folder (devkitPro\examples\nds\Graphics\3D\Display_List_2), however replacing that teapot, with any other model converted to a .bin using a tool aptly named NDSModelExporter (which converts .3ds, .x, .mesh, and so forth into the .bin type used by the NDS) results in losing all the lighting effects.
The code itself, remains unchanged. To show what I mean, here are two images, the example as it comes, and then the example with the .bin as the only thing changed:
http://i50.tinypic.com/nns3o2.jpg
http://i45.tinypic.com/23r5m3q.jpg (It's an icosahedron, made in 3ds converted to .bin, I imagine similar to what was done with the teapot.bin)
It has to be the .bin, but I've not come across any other tool to convert to .bin, and short of opening up the .X file to shred out the mesh data, I'm stuck.
What exactly is going wrong? Could any of you point me in the direction, or be so kind as to offer an example of a loaded, 3d model, lit?
Edit: To expand on the problem, the conversion tool provides a 'normal flip' option, which I have tested both on and off, and both appear the same as the above model. I've also tried some of the DirectX sample files, such as Tiny, models that have correct lighting in the DirectX Model Viewer. I can't help but think the conversion tool is broken.