Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for producing volume shade

A shadow and volume technology, applied in the computer field, can solve the problems of increasing system overhead, time-consuming, and large number of vertices, and achieve the effect of reducing resource overhead, reducing data interaction, and reducing the number of vertices

Active Publication Date: 2008-03-19
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The present invention provides a method and system for realizing volume shadows, which are used to solve the problems in the prior art that the number of vertices obtained after preprocessing by the CPU is large when volume shadows are generated, and there are a large number of problems in the transmission of volume shadow data between the CPU and GPU. Data interaction is not only time-consuming, but also increases the system overhead

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for producing volume shade
  • Method and system for producing volume shade
  • Method and system for producing volume shade

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In this embodiment, the CPU adds auxiliary vertices to each vertex of the three-dimensional model of the object, and sends the three-dimensional model data of the object with the auxiliary vertices to the GPU; the GPU uses a color different from the background color to render the three-dimensional model of the object, And convert the vertices of the three-dimensional model of the rendered object into the screen space to obtain the screen position of each vertex, and then sample the rendered texture at multiple pixel positions around the pixel corresponding to the screen position of each vertex, and The vertices belonging to the outline of the object are determined according to the color value of the sampled texture; the auxiliary vertices of the vertices belonging to the outline of the object are offset to generate volumetric shadows. Further, an item identifying whether each vertex is a vertex of a silhouette edge is added in the pixel shader, and pixels generated by th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for producing volume shades, and the method comprises adding an auxiliary vertex for each vertex of the three-dimensional model of an object; rendering the three-dimensional model of the object with a color different from the background color and transforming the vertexes of the rendered three-dimensional model of the object to a screen space to obtained the screen position of each vertex; sampling the texture obtained after rendering at a plurality of pixel positions around pixel points corresponding to the screen position of each vertex; confirming the vertexes belonging to the object contour edges according to the color values of the sampled texture; and deviating the auxiliary vertexes of the vertexes belonging to the object contour edges to produce the volume shade. The method not only reduces the processing amount of vertex data of the three-dimensional model of the object and improves the efficiency of producing volume shades, but also lowers the system cost. The invention also discloses a system for producing volume shades.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for generating volume shadows. Background technique [0002] When there is an obstacle between an object and the light source, the object will be in shadow. The shadowed areas created by obstacles are called volume shadows. Volumetric shadows can be obtained by extending silhouette edges to a certain distance or to infinity. There are many ways to determine the silhouette edge. The basic method is to determine the edge shared by two triangles facing opposite (one facing the light source and the other facing away from the light source), because only such an edge will eventually become a silhouette edge, and the other Edges appear to the light source to be inside the object's projection rather than the edge. Figure 1A shows a schematic diagram of the contour edge. In this figure, the ab edge is the common edge of the surface V0 and the surface V1. silhouet...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T15/60
Inventor 刘皓
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products