Claims
- 1. A method for blending a variable number of textures during rendering of a computer generated image, the method comprising the steps of:
(1) extracting at least a first mask and a second mask from a first texture by applying scale and bias operations to the first texture; (2) blending a second texture and a third texture in accordance with the first mask to form a first image; and (3) blending the first image and a fourth texture in accordance with the second mask to form a second image.
- 2. The method of claim 1, wherein step (1) further comprises:
extracting the first mask and the second mask from an intensity texture.
- 3. The method of claim 1, wherein step (1) further comprises:
extracting the first mask and the second mask from an RGB texture.
- 4. The method of claim 1, wherein step (1) further comprises:
extracting the first mask and the second mask from an RGB-Alpha texture.
- 5. The method of claim 1, wherein the second texture and the third texture each have a red color channel, a green color channel, and a blue color channel, and step (2) further comprises:
uniformly blending the red color channel, the green color channel, and the blue color channel of the second texture and the third texture to form the first image.
- 6. The method of claim 1, wherein the second texture and the third texture each have a red color channel, a green color channel, and a blue color channel, and step (2) further comprises:
non-uniformly blending the red color channel, the green color channel, and the blue color channel of the second texture and the third texture to form the first image.
- 7. A system for blending a variable number of textures during rendering of a computer generated image, comprising:
means for extracting at least a first mask and a second mask from a first texture by applying scale and bias operations to the first texture; means for blending a second texture and a third texture in accordance with the first mask to form a first image; and means for blending the first image and a fourth texture in accordance with the second mask to form a second image.
- 8. The system of claim 7, further comprising:
means for scaling the first texture to form the first mask.
- 9. The system of claim 7, further comprising:
means for scaling and biasing the first texture to form the first mask.
- 10. A computer program product for blending a variable number of textures during rendering of a computer generated image, said computer program product comprising a computer useable medium having computer program logic recorded thereon for controlling a processor, said computer program logic comprising:
a procedure that extracts at least a first mask and a second mask from a first texture by applying scale and bias operations to the first texture; a procedure that blends a second texture and a third texture in accordance with the first mask to form a first image; and a procedure that blend the first image and a fourth texture in accordance with the second mask to form a second image.
- 11. The computer program product of claim 10, further comprising:
a procedure that scales the first texture to form the first mask.
- 12. The computer program product of claim 10, further comprising:
a procedure that scales and biases the first texture to form the first mask.
- 13. A method for blending a variable number of textures during rendering of a computer generated image, the method comprising the steps of:
(1) extracting N−2 masks from a first texture of N textures, wherein N is a number equal to at least four; (2) blending a second texture and a third texture of the N textures in accordance with one of the N−2 masks to form a blended image; (3) blending another texture of the N textures with the blended image in accordance with another one of the N−2 masks; and (4) repeating step (3) until all of the N textures, except for the first texture, have been blended together.
- 14. The method of claim 13, wherein step (1) further comprises:
scaling the first texture to form one of the N−2 masks.
- 15. The method of claim 13, wherein step (1) further comprises:
scaling and biasing the first texture to form one of the N−2 masks.
- 16. The method of claim 13, wherein step (1) further comprises:
extracting the N−2 masks from an intensity texture.
- 17. A method for blending a variable number of textures during rendering of a computer generated image, the method comprising the steps of:
(1) extracting at least a first mask, a second mask, and a third mask from a first texture; (2) multiplying a second texture by the first mask to form a first image; (3) multiplying a third texture by the second mask to form a second image; (4) multiplying a fourth texture by the third mask to form a third image; and (5) adding at least the first image, the second image, and the third image to form a blended image.
- 18. The method of claim 17, wherein step (1) further comprises:
extracting the first mask, the second mask, and the third mask from an intensity texture.
- 19. The method of claim 18, wherein step (1) further comprises:
extracting the first mask, the second mask, and the third mask by scaling the first texture.
- 20. The method of claim 18, wherein step (1) further comprises:
adding the first mask and the second mask to form an intermediate result; and performing an unsigned-invert operation on the intermediate result to form the third mask.
- 21. A method for extracting a variable number of masks from a texture, the masks to be used to bend a variable number of textures during rendering of a computer generated image, the method comprising:
(1) extracting a first mask and a second mask from a mask texture; and (2) extracting a third mask and a fourth mask from the first mask.
- 22. The method of claim 21, wherein step (2) further comprises:
scaling the first mask to form the third mask.
- 23. The method of claim 21, wherein step (2) further comprises:
scaling and biasing the first mask to form the fourth mask.
- 24. The method of claim 21, further comprising:
extracting a fifth mask and a sixth mask from the second mask.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Application No. 60/376,223, filed Apr. 30, 2002, which is incorporated herein by reference in its entirety.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60376223 |
Apr 2002 |
US |