Thread: New Fish Models
View Single Post
Old 06-22-2009, 01:26 PM   #17
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,768
The transparency is already done in shaders. But the shader needs something to work with - a pixel that's already there. Then it blends the new pixel with it using the calculated amount of transparency. So the scene has to be built from back to front. The polygons in an object are simply drawn in the order they are listed in the model, regardless of how far away from the camera they are, so it's entirely possible for a side fin to be blended with the background, then the body to be painted behind it, giving the impression that the fish has a hole in it where the fin passes over.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote