![]() |
![]() |
![]() |
![]() |
![]() |
Make 'Ys I & II Eternal Story' playable.
Posted on 2006-02-22 00:00:00 |
Implemented another missing alpha blending formula. The implementation of this one required the use an OpenGL extension (glBlendColorEXT and associated constants) since it is a formula that forces an alpha ratio in the formula itself and make the rasterizer ignore the source or destination alpha values completely. To be more precise:
(FIX / 0x80) * SrcColor + (1 - FIX / 0x80) * DstColor This is used for some transparent effects on the playfield like the clouds (visible on the second screenshot) and also on the lens-flare effect at the beginning of the game. I searched a bit more about the crashing problem too, but I didn't find anything more. My theory is that the objects are being rendered one more time while they shouldn't be. By objects, I don't mean only the particles, but also the character sprites because they seem to suffer a similar problem (they're being rendered one more time over the bounds of thier animations). So, I'm thinking it's probably more related to the main loop than the specifics of the object. I'll keep looking tomorrow. |