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

Outline rendering method, device, equipment and medium

A technique of hooking lines and vertices, applied in the field of rendering, which can solve the problems of inability to render in real time and low efficiency.

Active Publication Date: 2018-02-23
米哈游科技(上海)有限公司
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a rendering method for hook lines, which solves the problem that the current method for rendering hook lines is inefficient and cannot be rendered in real time

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
  • Outline rendering method, device, equipment and medium
  • Outline rendering method, device, equipment and medium
  • Outline rendering method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] figure 1 It is a flow chart of a hook rendering method provided in Embodiment 1 of the present invention. The technical solution of this embodiment may be applicable to the case of rendering a hook line in a cartoon style. The method can be executed by a hook-line rendering device provided in an embodiment of the present invention. The device can be implemented in the form of software and / or hardware, and configured in a rendering engine for application. The rendering engine can be any smart device with a graphics card function , such as computers, tablets, mobile phones, smart cameras, etc. The method specifically includes the following operations:

[0044] S110. Offset the vertex according to the offset value of the projected unit vector direction of the normal direction of the vertex on the camera projection plane and / or the offset value of the vertex in a direction away from the camera.

[0045] Rendering is divided into front rendering and back rendering. Front ...

Embodiment 2

[0057] figure 2 It is a flow chart of a hook rendering method provided by Embodiment 2 of the present invention. The technical solution of this embodiment further optimizes the operation of offsetting the vertex according to the offset value of the projected unit vector direction of the normal direction of the vertex on the camera projection plane on the basis of any of the solutions of the above-mentioned embodiments. Correspondingly, the method of this embodiment includes:

[0058] S210. Calculate the unit vector of the projection of the vertex normal on the camera projection plane.

[0059] Exemplarily, the unit vector of the projection of the vertex normal on the camera projection plane can be calculated according to the calculation formula of the projection unit vector of the vertex normal on the camera projection plane: Among them, N p is the unit vector of the projection of the vertex normal on the camera projection plane, ObjectToCamera is the transformation matri...

Embodiment 3

[0068] image 3 It is a flow chart of a hook rendering method provided in Embodiment 3 of the present invention. The technical solution of this embodiment further optimizes the operation of offsetting the vertex according to the offset value of the vertex in a direction away from the camera on the basis of any of the solutions of the above-mentioned embodiments. Correspondingly, the method of this embodiment includes:

[0069] S310. Calculate the unit vector of the vertex facing away from the camera.

[0070] Determine the unit vector between the vertex and the camera line according to the vector connecting the vertex and the camera, and set the direction of this vector as the direction that the vertex is away from the camera, that is, the unit vector of the vertex moving away from the camera is obtained.

[0071] S320. According to the global offset parameter and the vertex color channel, calculate the offset value of the vertex in the direction of the unit vector away from...

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 embodiment of the invention discloses an outline rendering method, an outline rendering device, equipment and a medium. The method comprises the steps of offsetting a vertex according to an offsetvalue of a vertex normal in a unit vector direction of projection on a camera projection plane and / or an offset value of a vertex towards to the direction away from a camera; and drawing an outline according to the offset vertex. According to the embodiment, the real-time adjustment for the outline is realized so that the rendered outline is more controllable and vivid and smooth.

Description

technical field [0001] Embodiments of the present invention relate to rendering technology, and in particular to a method, device, device and medium for rendering a line. Background technique [0002] Outlines refer to the outlines in cartoon drawings, which are one of the important forms of expression of cartoon style. Cartoon style has always occupied an important position in multimedia works such as animation and games. Nowadays, most of the cartoon-style works are produced based on hand-painted images, which requires a lot of manpower and has limited expressive power. Especially in games, limited by resource size and hardware performance, hand-painted works often have disadvantages such as single perspective, stiff movements, and low animation frame rate. [0003] 3D technology has been widely used in multimedia works, and it can effectively solve these problems of hand-painted methods. 3D technology takes a 3D model as input, uses projection transformation and raster...

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
IPC IPC(8): G06T15/20
CPCG06T15/20
Inventor 蒙畅
Owner 米哈游科技(上海)有限公司
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