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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

