Unlock instant, AI-driven research and patent intelligence for your innovation.

An OSG-based efficient volume shadow generation method

A shadow and high-efficiency technology, applied in 2D image generation, image data processing, instruments, etc., can solve the problems of low efficiency and affecting the generation speed of shadow cones, and achieve the effect of high precision and improved generation efficiency

Active Publication Date: 2019-05-03
西安恒歌数码科技有限责任公司
View PDF13 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the usual ShadowVolume, the generation process of the shadow cone is completed in the CPU, so when the model has too many patches, it will seriously affect the generation speed of the shadow cone, thereby reducing the efficiency

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
  • An OSG-based efficient volume shadow generation method
  • An OSG-based efficient volume shadow generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention is further described below in conjunction with accompanying drawing:

[0019] An efficient volume shadow generation method based on OSG, including the following steps:

[0020] Step 1, preprocessing the open source scene graph OSG model, traversing its triangular faces, and generating vertex data containing adjacency information;

[0021] Step 2, the adjacent vertex information is transmitted to the GPU, and the shadow cone is generated through the geometry shader;

[0022] Step 3: After opening the double-sided stencil test, render the shadow cone to generate shadows.

[0023] Further, in step 1, traverse the triangular faces of the OSG model, and store 6 vertices for each triangular face, which are the three vertices of the original triangle and the vertices of the adjacent triangles corresponding to each edge, if there is no adjacent triangle , is stored as the default value.

[0024] Further, in step 2, after passing the vertex data containi...

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 OSG-based efficient volume shadow generation method comprises the following steps of 1, preprocessing an OSG model, traversing a triangular surface of the OSG model, and generating vertex data containing adjacency information; Step 2, transmitting adjacent vertex information into a GPU, and generating a shadow cone through a geometric shader; and step 3, starting a double-sided template test and then rendering a shadow cone to generate a shadow. According to the method, on the basis that the original advantages of the ShadowVolume technology are guaranteed, the shadow generation efficiencyof the complex object is improved.

Description

technical field [0001] The invention belongs to the technical field of computer graphics, in particular to an OSG-based efficient volume shadow generation method. Background technique [0002] In the field of computer graphics, real-time shadow technology, as a general technology, is often used to enhance the reality of the scene. At present, the mainstream shadow technology mainly includes ShadowMap and ShadowVolume. [0003] ShadowMap is often used in large scenes, because its implementation process is less related to the geometric complexity of the scene, so it is more efficient. But its disadvantage is that due to the limited size of the image used to save the depth texture, there will be jagged edges on the shadow. In addition, in a large scene, a single object occupies fewer pixels, resulting in rough shadows generated by it, especially the lower quality of shadows cast on itself. [0004] Therefore, ShadowVolume is a more suitable method when we have requirements fo...

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): G06T11/00
Inventor 何泉杨石兴李鹏飞崔万福张尚何振
Owner 西安恒歌数码科技有限责任公司