#149021 - luss - Sun Jan 13, 2008 5:47 pm
Hello everyone,
I've learned a lot reading this forum, but now I'm stucked!
I try to use fog and transparence in the same time and it doesn't work properly... (sorry for poor english speaking)
For the example, I will use only two plane:
-plane n?1 for my ground with glPolyFmt(POLY_ID(1) | POLY_ALPHA(31) | POLY_FORMAT_LIGHT0 | POLY_CULL_NONE | POLY_FOG);
-plane n?2, placed in front of the camera and near it, like a window, with glPolyFmt(POLY_ID(2) | POLY_ALPHA(10) | POLY_FORMAT_LIGHT0 | POLY_CULL_NONE | POLY_FOG);
It seems the fog is rendered in front of my plane n?2, just like the nds renders first plane n?1, then plane n?2 and finally adds the fog on top of the previous result without taking care of my plane n?2...
For info, my plane n?2 will always be near the camera. So I don't really need to have fog on it... If it can help to find a solution...
I can't get ride of this problem...
Someone have a clue?
thanks by advance!
I've learned a lot reading this forum, but now I'm stucked!
I try to use fog and transparence in the same time and it doesn't work properly... (sorry for poor english speaking)
For the example, I will use only two plane:
-plane n?1 for my ground with glPolyFmt(POLY_ID(1) | POLY_ALPHA(31) | POLY_FORMAT_LIGHT0 | POLY_CULL_NONE | POLY_FOG);
-plane n?2, placed in front of the camera and near it, like a window, with glPolyFmt(POLY_ID(2) | POLY_ALPHA(10) | POLY_FORMAT_LIGHT0 | POLY_CULL_NONE | POLY_FOG);
It seems the fog is rendered in front of my plane n?2, just like the nds renders first plane n?1, then plane n?2 and finally adds the fog on top of the previous result without taking care of my plane n?2...
For info, my plane n?2 will always be near the camera. So I don't really need to have fog on it... If it can help to find a solution...
I can't get ride of this problem...
Someone have a clue?
thanks by advance!