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 > Toon Shading Problem/Model Loading

#153275 - raymes_k - Thu Mar 27, 2008 4:48 pm

Hi there,

I've been playing around with the ndslib 3d samples. In particular i tried to use my own binary display list with the toon shading sample (of the statue). I created the display list with http://forum.gbadev.org/viewtopic.php?t=14947 (which is really very nice and works well). The thing is, when i load up the sample on the nds, the model is completely white. Why could this be? (i'm guessing something is missing from the display list but i have no idea what)

Thanks in advance

#154812 - Interrobang - Mon Apr 21, 2008 9:35 pm

I'm having this problem too. Is there another exporter, or some way to fix it in the program?

#154831 - M3d10n - Mon Apr 21, 2008 11:49 pm

You're probably missing normals. They're required for toon shading to work. Also, if this exporter you're using adds poly format or light commands into the display lists they might not work as intended.

#154849 - Interrobang - Tue Apr 22, 2008 1:07 am

I think it has normals. How would I override/remove format or light commands?

#154876 - M3d10n - Tue Apr 22, 2008 4:37 am

First test your display list on a demo without toon shading first (that teapot display list example would do), using no lights whatsoever and without textures to check if the list contains embedded light commands and if the normals are OK.

If there are light commands... well, I think you could parse the binary file and strip them, but if you get to that point you got half the knowledge required to build your own exporter/converter.