Shader-based data processing method and device and electronic equipment

A data processing and shader technology, applied in the field of games, can solve the problems of visually viewing the shader process, high professional requirements, and inaccessible users

Active Publication Date: 2020-10-27
XIAMEN YAJI SOFTWARE
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, the editable information of the shader is mainly controlled through the following methods: 1. Editing codes, this method has high professional requirements for users, and the control method is relatively complicated, and it is impossible for users to visually view the shader process; 2. The editable information of the shader is displayed through the control panel. Although this method allows users to view the shader process intuitively, it cannot display the predefined macros on the control panel. Therefore, the user can only choose which material property to use variable, and cannot control whether to use a certain material property

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
  • Shader-based data processing method and device and electronic equipment
  • Shader-based data processing method and device and electronic equipment
  • Shader-based data processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] The embodiment of the present application provides a shader-based data processing method, such as figure 1 As shown, the method includes: step S101, step S102 and step S103.

[0032] Step S101. Obtain a user's selected operation on at least one preconfigured shader, and determine a target shader for creating a material corresponding to the selected operation.

[0033] In this embodiment of the application, the multiple pre-configured shaders may be pre-provided by the material system, or custom-edited by the user. Specifically, it generally includes multiple types of shaders, such as Standard Shader, Surface Shader, Vertex Shader, and Fragment Shader.

[0034] In a specific application, the user's selected operation for at least one preconfigured shader can be acquired through the preset interface. For example, if each pre-configured shader is displayed through the control panel of the material system (that is, the interactive interface), if the user's selected operat...

Embodiment 2

[0085] The embodiment of the present application provides a shader-based data processing device, such as Figure 4 As shown, the shader-based data processing device 30 may include: a shader determination module 301, a parameter determination module 302, a visualization processing module 303, and a data receiving module 304, wherein,

[0086] A shader determination module 301, configured to obtain a user's selected operation for at least one preconfigured shader, and determine a target shader for creating a material corresponding to the selected operation;

[0087] A parameter determination module 302, configured to determine each preprocessing macro for material properties corresponding to the target shader and at least one variable parameter that has a dependency relationship with each preprocessing macro;

[0088] A visual processing module 303, configured to display each preprocessing macro and at least one variable parameter that has a dependency relationship with each pre...

Embodiment 3

[0113] The embodiment of the present application provides an electronic device, such as Figure 5 as shown, Figure 5 The electronic device 400 shown includes: a processor 4001 and a transceiver 4004 . Wherein, the processor 4001 is connected to the transceiver 4004 , such as through a bus 4002 . Optionally, the electronic device 400 may further include a memory 4003 . It should be noted that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 400 does not limit the embodiment of the present application.

[0114] The processor 4001 may be a CPU, a general processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor 4001 may also be a combination that implements computing functions,...

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

Embodiments of the invention provide a shader-based data processing method and device, and electronic equipment. The method comprises the steps of obtaining a selection operation of a user for at least one pre-configured shader, and determining a target shader which corresponds to the selection operation and is used for creating a material; determining each preprocessing macro corresponding to thetarget shader for the material attribute and at least one variable parameter having a dependency relationship with each preprocessing macro; performing display processing on each preprocessing macroand at least one variable parameter having a dependency relationship with each preprocessing macro through a corresponding visual control; and based on each visual control, receiving configuration information related to the variable parameters and/or configuration information related to the preprocessing macros input by a user, and using the configuration information and/or the configuration information to create a material. According to the embodiment of the invention, the user can visually know the coloring process, the user can dynamically modify the coloring process conveniently, and the effect of simplifying the editing mode of the coloring process is achieved.

Description

technical field [0001] The present application relates to the technical field of games, and in particular, the present application relates to a shader-based data processing method, device and electronic equipment. Background technique [0002] A shader refers to a program written in a shader language that can run on an image processor GPU for image rendering. The editable information of the shader generally includes variables for material properties and predefined macros. By controlling the editable information of the shader, the effect of the drawn graphics can be controlled, such as whether to add shadows and textures to the drawn image. [0003] In the prior art, the editable information of the shader is mainly controlled through the following methods: 1. Editing codes, this method has high professional requirements for users, and the control method is relatively complicated, and it is impossible for users to visually view the shader process; 2. The editable information ...

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): G06F8/34G06F9/451G06T15/00
CPCG06F8/34G06T15/005G06F9/451
Inventor 武云潇林顺
Owner XIAMEN YAJI SOFTWARE
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