Rendering optimization method and system for stroking effect, electronic device and storage medium

A storage medium, the same position technology, applied in the computer field, can solve the problems of difficult to obtain satisfactory stroke effect, limited effect, unable to detect depth and normal change contour lines, etc.

Pending Publication Date: 2021-01-26
HANGZHOU ELECTRONICS SOUL NETWORK TECH
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In related technologies, the stroke rendering based on the viewing angle and the surface normal of the object can quickly find the contour line through the point product result of the surface normal and the camera direction, but the effect is very limited, and it is difficult to obtain satisfactory results in commercial games. Stroke effect; contour rendering based on image processing, stroke processing is performed in the post-processing stage of rendering, but it cannot detect contour lines with small changes in depth and normal, such as a piece of paper on a table; based on procedural geometry Contour rendering is only suitable for spherical objects with low-frequency surface normals, not for angular objects with high-frequency surface normals, such as guns and guns
[0004] At present, no effective solution has been proposed for the problem of stroke breakage in high-frequency normal strokes in related technologies when rendering strokes on object outlines.

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
  • Rendering optimization method and system for stroking effect, electronic device and storage medium
  • Rendering optimization method and system for stroking effect, electronic device and storage medium
  • Rendering optimization method and system for stroking effect, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application. In addition, it can also be understood that although such development efforts may be complex and lengthy, for those of ordinary skill in the art relevant to the content disclosed in this application, the technology disclosed in this application Some design, manufacturing or production changes based on the content are just conventional technical means, and...

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 relates to a rendering optimization method and system for a stroking effect, an electronic device and a storage medium, and the method comprises the steps of traversing all vertexes of amodel, carrying out the grouping of the normal lines of the vertexes at the same position, and carrying out the summation normalization of the normal lines of the vertexes in the same group, and obtaining a smooth normal line; converting the smooth normal data range space to obtain a smooth normal in the model space; traversing vertexes, constructing a conversion matrix, converting a smooth normal from a model space to a tangent space, and storing the smooth normal; taking out a smooth normal from uv4, and converting the space of the data range; converting the smooth normal from the tangent space to the camera space through the constructed conversion matrix, and converting the vertex from the model space to the camera space; and finally, converting the smooth normal and the vertex into anNDC space, and drawing a stroking color. The problem of stroking breakage during high-frequency normal stroking is solved, and an excellent stroking effect can be rendered in real time while the performance is ensured on a mobile platform.

Description

technical field [0001] The present application relates to the field of computers, in particular to a method, system, electronic device and storage medium for rendering optimization of stroke effects. Background technique [0002] With the growth of the two-dimensional player group, two-dimensional style mobile games are becoming more and more popular. One of the common characteristics of this type of game screen is that objects must be drawn with lines, that is, outlines are drawn on the edges of objects. On mobile phones with limited hardware resources, not only the edge detection and stroke effect of objects needs to be realized, but also the performance needs to be considered at the same time. [0003] In related technologies, the stroke rendering based on the viewing angle and the surface normal of the object can quickly find the contour line through the point product result of the surface normal and the camera direction, but the effect is very limited, and it is difficu...

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/00G06T11/20G06T7/66
CPCG06T11/001G06T11/203G06T7/66
Inventor 蔡志刚
Owner HANGZHOU ELECTRONICS SOUL NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products