主权项 |
1. A method for rendering virtual contaminants on a rendered scene in a computer simulation comprising:
reading, by a processor, a model from a database, the model defining a virtual environment of the computer simulation, the virtual environment defining a plurality of zones comprising a first additive zone and a second subtractive zone, the second subtractive zone being at least partially enclosed within the first additive zone, the virtual environment defining paths within at least the second subtractive zone using vectors; adding, by an image generator module comprising one or more dedicated graphical processing units, a virtual contaminant over the first additive zone; removing by the one or more dedicated graphical processing units, at least partially, the virtual contaminant within the second subtractive zone leaving a remaining virtual contaminant in the first additive zone by extrusion in 2D along the paths, the paths defining at least one border for allowing smooth visual transition with one or more images neighboring the paths; and rendering by the one or more dedicated graphical processing units an image for display comprising the remaining virtual contaminant in the virtual environment using a visual texture of the virtual contaminant. |