At the moment the sceGuStencil..... functions are undocumented. Is it because the behavior is unknown? If not could anyone send me the docu. Perhaps the constants are known?
Otherwise I would try to use the stencil functions like the funtions in OpenGL. If a find find something, I will publish it here.
Stencil Functions
Re: Stencil Functions
I would guess the stencil operations are pretty similar to OpenGL; there should be at least KEEP, REPLACE, ZERO, INVERT, INCR, DECR operations, so there aren't very many combinations to test for. It should be possible to write a program which can test for this.McZonk wrote:At the moment the sceGuStencil..... functions are undocumented. Is it because the behavior is unknown? If not could anyone send me the docu. Perhaps the constants are known?
Otherwise I would try to use the stencil functions like the funtions in OpenGL. If a find find something, I will publish it here.
The stencil functions are the same as for depth and alpha testing, so I'd assume they're the same values.
I bet "GU_UNKNOWN_3" is actually GU_STENCIL_TEST.
Yes, the GE is very much OpenGL-inspired. I have verified and written a sample for how logical color-ops work now, and I copied the different ops straight from gl.h. They've made it way too easy. :)
I'll get on stencil-operations in a little while, there are a few other fields I'm looking into at the moment. Feel free to help out though. :)
I'll get on stencil-operations in a little while, there are a few other fields I'm looking into at the moment. Feel free to help out though. :)
GE Dominator
That was the point with the PSP - they went out of their way, apparently, to make developing for it easy and relatively low-cost. Clever move.chp wrote:Yes, the GE is very much OpenGL-inspired. I have verified and written a sample for how logical color-ops work now, and I copied the different ops straight from gl.h. They've made it way too easy. :)
I'm on trying around with stencil buffer, I wrote an easy programm to check sample values via loops as parameters to stencil functions.chp wrote:I'll get on stencil-operations in a little while, there are a few other fields I'm looking into at the moment. Feel free to help out though. :)
I hope I can cast realtime shadows over the weekend. Contact me, if you are interesstend in sources.
I got the first simple example with the stencil buffer. Just an easy reflection in a mirror. If I got the shadows working too, I will release source. Perhaps some of you guys can add it as an example in the pspsdk.
http://www.pspupdates.com/2005/07/3d-re ... r-psp.html
http://www.pspupdates.com/2005/07/3d-re ... r-psp.html
Nice! Yes, source would be nice... Both for adding as a sample, and to reduce the amount of unknown stuff in pspgu.h. I'm all ears. :)McZonk wrote:I got the first simple example with the stencil buffer. Just an easy reflection in a mirror. If I got the shadows working too, I will release source. Perhaps some of you guys can add it as an example in the pspsdk.
http://www.pspupdates.com/2005/07/3d-re ... r-psp.html
GE Dominator