Rendering method, device, equipment, system, chip and medium
By acquiring and processing the data of the harness object and rendering with the logical unit system, the problem of low rendering efficiency in the prior art is solved, and a more efficient rendering process and a more easily maintained code structure is achieved.
Patent Information
- Application Number
- CN202411972785.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-25
AI Technical Summary
The prior art is difficult to effectively handle a large number of object instances and attribute updates during rendering, resulting in low rendering efficiency and long rendering waiting time.
By obtaining the harness object to be rendered, the data is determined in response to user input operations, and using the logical unit system corresponding to the components associated with the harness object to render based on the entity's attribute information and data.
Improve rendering efficiency, simplify code structure, make it modular, easy to maintain, and reduce development costs.
Smart Images

Figure CN119888039A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of rendering, and specifically to a rendering method, apparatus, device, system, chip, and medium. Background Art
[0002] Image rendering is the process of converting 3D or 2D graphic data into pixel images that can be displayed on a screen. Rendering technology is widely used in fields such as computer graphics, game development, virtual reality, augmented reality, and animation. An automotive wiring harness is a complex network connecting a vehicle's electrical and electronic systems, consisting of components such as wires, plugs, sockets, and protective conduits. To better visualize or design these harnesses, 3D modeling tools can be used to create three-dimensional models of the harness. Rendering techniques can then be used to generate realistic images or animations to aid in visual analysis.
[0003] Due to the lack of an effective component management mechanism, existing technologies have difficulty effectively processing a large number of object instances and attribute updates during rendering. This results in low efficiency in rendering technology, leading to long rendering wait times and other issues.
[0004] Therefore, there is an urgent need for a rendering method to improve the efficiency of rendering automotive wiring harnesses. Summary of the Invention
[0005] To solve the above-mentioned problems existing in the prior art, the present application provides a rendering method, apparatus, device, system, chip and medium to improve rendering efficiency and improve work efficiency.
[0006] According to a first aspect of the present application, a rendering method is provided, which is applied to a computing device. The computing device includes a logic unit system, the logic unit system corresponds to at least one component, and the logic unit system is used to process data of the component corresponding to the logic unit system. The rendering method includes:
[0007] Get the harness object to be rendered. The harness object includes entities and components. Entities are associated with multiple components. Entities include unique identifiers and labels. Components are used to describe the attribute information of entities or operation information on entities. Components with the same function can be associated with multiple entities.
[0008] determining data of the harness object in response to a user input operation directed to the harness object;
[0009] Rendering is performed based on the attribute information of the entity and the data of the harness object using a logical unit system corresponding to the components included in the harness object.
[0010] In an optional embodiment, rendering is performed based on the attribute information of the entity and the data of the harness object using a logical unit system corresponding to the components included in the harness object, including:
[0011] The logic unit system calls the component data to determine the state change data of the harness object;
[0012] The wire harness object to be rendered is rendered according to the state change data of the wire harness object.
[0013] In an optional embodiment, rendering based on the attribute information of the entity and the data of the harness object includes:
[0014] Get the current rendering scene information;
[0015] Rendering entities based on rendering scene information.
[0016] In an optional embodiment, rendering based on the attribute information of the entity and the data of the harness object includes:
[0017] Get the visible entities in the current rendering scene;
[0018] The geometric data of the visible entity; the geometric data is coordinate transformed to obtain the transformed geometric data;
[0019] After the GPU performs rasterization based on the geometric data, it determines the pixels to be drawn;
[0020] Render the wire harness object to be rendered based on the pixels to be drawn.
[0021] In an optional implementation, obtaining a wire harness object to be rendered includes:
[0022] Determine the constituent elements of the harness object to be rendered;
[0023] Determine the corresponding components based on the constituent elements;
[0024] Register the entity and its associated components.
[0025] According to a second aspect of the present application, a rendering device is provided, the device comprising:
[0026] An acquisition unit is used to acquire a harness object to be rendered. A harness object includes an entity and a component. An entity is associated with multiple components. An entity includes a unique identifier and a label. A component is used to describe the attribute information of an entity or operation information on an entity. Components with the same function can be associated with multiple entities.
[0027] a determining unit for determining data of the wiring harness object in response to a user input operation on the wiring harness object;
[0028] The rendering unit is used for rendering based on the attribute information of the entity and the data of the harness object by using a logic unit system corresponding to the components included in the harness object.
[0029] According to a third aspect of the present application, an electronic device is provided, the device including a memory and a processor;
[0030] The memory is connected to the processor and is used to store programs;
[0031] The processor is configured to implement the rendering method in the first aspect or any one of the embodiments of the first aspect by running the program in the memory.
[0032] According to a fourth aspect of the present application, a rendering system is provided, including a rendering sub-control system, wherein the rendering sub-control system is configured to execute the rendering method according to the first aspect or any one of the embodiments of the first aspect.
[0033] According to a fifth aspect of the present application, a chip is provided, comprising a processor and a data interface, wherein the processor reads and runs a program stored in a memory through the data interface to execute a rendering method as in the first aspect or any one of the embodiments of the first aspect.
[0034] According to a sixth aspect of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the rendering method in the first aspect or any one of the embodiments of the first aspect is implemented.
[0035] The rendering method, apparatus, device, system, chip and medium provided in the present application obtain the harness object to be rendered, and determine the data of the harness object in response to the user input operation on the harness object; and render based on the attribute information of the entity and the data of the harness object using the logical unit system corresponding to the components included in the harness object. Since the harness object to be rendered in the present application includes entities and components, wherein the entity is a unique identifier and a label, no data is stored in the entity, and the entity can be associated with multiple components, and the component stores data, and the component can be used to describe the attribute information of the entity or the operation information of the entity; the logical unit system only processes the component data related to it, thereby improving the rendering efficiency; components with the same function are allowed to be associated with multiple entities, which can make the code modular, easy to understand and maintain, and at the same time, it can be reused in different projects, reducing the development cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without any creative work.
[0037] Figure 1 A schematic diagram of an implementation environment according to the present invention;
[0038] Figure 2 A flowchart of a rendering method provided in an embodiment of the present application;
[0039] Figure 3 A structural block diagram of a rendering device provided in an embodiment of the present application;
[0040] Figure 4 This is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0042] Image rendering is the process of converting 3D or 2D graphic data into pixel images that can be displayed on the screen. Rendering technology is widely used in computer graphics, game development, virtual reality, augmented reality, animation production and other fields. The automotive wiring harness is a complex network that connects the electrical and electronic systems of a car. It contains components such as wires, plugs, sockets, and protective sleeves. In order to better display or design these wiring harnesses, 3D modeling tools can be used to create a three-dimensional model of the wiring harness, and rendering technology can be used to generate realistic images or animations to assist in visual analysis. Due to the lack of an effective component management mechanism, the existing technology is difficult to effectively handle a large number of object instances and attribute updates during rendering. The rendering technology has low efficiency, resulting in long rendering waiting times and other problems. Therefore, there is an urgent need for a rendering method to improve the efficiency of automotive wiring harnesses during rendering.
[0043] The rendering method, apparatus, device, system, chip and medium provided in the embodiments of the present application obtain the harness object to be rendered, and determine the data of the harness object in response to the user input operation on the harness object; and render based on the attribute information of the entity and the data of the harness object using the logical unit system corresponding to the components included in the harness object. Since the harness object to be rendered in the present application includes entities and components, wherein the entity is a unique identifier and a label, no data is stored in the entity, and the entity can be associated with multiple components, and the component stores data, and the component can be used to describe the attribute information of the entity or the operation information of the entity; the logical unit system only processes the component data related to it, thereby improving the rendering efficiency; components with the same function are allowed to be associated with multiple entities, which can make the code modular, easy to understand and maintain, and at the same time, it can be reused in different projects, reducing the development cost.
[0044] Exemplary Implementation Environment
[0045] Please refer to Figure 1 , Figure 1 A schematic diagram of an implementation environment according to the present invention.
[0046] The implementation environment of the embodiment of the present application includes a computing device 10, which can refer to a type of device with rich human-computer interaction methods, the ability to access the Internet, usually equipped with various operating systems, and having strong processing capabilities. The computing device 10 can be a smartphone, a tablet computer, a portable laptop computer, a desktop computer, or other terminal device, but is not limited thereto. A logical unit system is arranged in the computing device 10, which processes the corresponding component data through the logical unit system and renders according to the component data. The user 20 can input, and the logical unit system can render the wire harness object to be rendered according to the user's input.
[0047] Exemplary Methods
[0048] Figure 2 This is a flowchart of the rendering method provided in the embodiment of the present application. Figure 2 In an exemplary embodiment, a rendering method is provided, which is applied to a computing device. The computing device includes a logic unit system, the logic unit system corresponds to at least one component, and the logic unit system is used to process data of the component corresponding to the logic unit system. The rendering method may include:
[0049] S220: Obtain the harness object to be rendered; the harness object includes entities and components, and an entity is associated with multiple components; an entity includes a unique identifier and a label; a component is used to describe the attribute information of the entity or the operation information on the entity, and components with the same function are allowed to be associated with multiple entities.
[0050] In this embodiment, the harness object can be a wire, a welding point, a harness segment, a plug, a socket, or a device, etc. The entity can be any object, such as a line, a rectangle, a polygon, a circle, a control point, an arc, a hole container, a connection point, etc.
[0051] Components are used to describe entity attributes or operations on entities. Entity attributes can include location and velocity information. Operations on entities can include specific operations performed on the entity, such as rotation and scaling. Components can include wire components, rotation components, scaling components, keyboard components, translation components, control point components, and mouse components.
[0052] The logical unit system handles the behavior of entities with specific components. The system iterates through all eligible entities and performs the appropriate logic based on their components. The logical unit system can include rotation and movement, a translation system, a scaling system, a wire editing system, and a segment editing system.
[0053] The wire harness object in the embodiment of the present application can be created based on the ECS (Entity Component System, abbreviated as: ECS) architecture. The entity can be the identifier of the wire harness object, and the wire harness object to be rendered can be uniquely determined by the identifier.
[0054] For example, in wire harness software, when drawing multiple wires, you can create multiple wire entities, each representing a wire. A wire is essentially a line with multiple vertices; you only need to provide a series of vertex coordinates to draw the wire. In practice, you can add wire components to the wire entity to obtain all the vertices on the wire and visualize the wire.
[0055] S240 : In response to a user input operation on the harness object, determine data of the harness object.
[0056] The user input operation may include a user's creation operation on a wire harness object, or a user's editing operation on a wire harness object.
[0057] S260: Rendering is performed based on the attribute information of the entity and the data of the harness object by using a logical unit system corresponding to the components included in the harness object.
[0058] In response to the user's input operation, the logical unit system corresponding to the components of the harness object is determined. For example, if the user's input operation is to drag the wire with the mouse, the components corresponding to the user's input operation are determined to be the control point component and the mouse input component, and the logical unit system is the harness segment editing system.
[0059] WebGL (Web Graphics Library) is a low-level browser-based 3D graphics API that allows developers to render 2D and 3D graphics directly on web pages using JavaScript. It is an important tool for achieving visual effects in web applications. Three.js is a popular 3D library that provides a high-level API suitable for rapid development of 3D applications. In this embodiment, the rendering of the wire harness can be implemented based on Three.js.
[0060] In practical applications, the component data of the harness object to be rendered is converted into the format required by Three.js. A scene is created in Three.js, and a camera and renderer are added. The converted data is loaded into the geometry, material, and mesh objects of Three.js. Rendering is performed using the methods provided by Three.js.
[0061] In the rendering method provided in the embodiments of the present application, since the wiring harness objects to be rendered in this application include entities and components, the entities are unique identifiers and labels, and no data is stored in the entities. This separates the entities, components, and systems, allowing each logical unit system to process only the component data related to it, thereby greatly improving rendering efficiency. Since components with the same function can be associated with multiple entities, the code can be modularized, easy to understand and maintain, and can also be reused in different projects, reducing development costs.
[0062] In an optional embodiment, rendering is performed based on the attribute information of the entity and the data of the harness object using a logical unit system corresponding to the components included in the harness object, including:
[0063] The logic unit system calls the component data to determine the state change data of the harness object;
[0064] The wire harness object to be rendered is rendered according to the state change data of the wire harness object.
[0065] When the state of a harness object changes, obtain the state change data of the harness object. For example, when a harness object is dragged from position A to position B, it is necessary to obtain the position information of the harness object to be rendered at position B, and render the harness object to be rendered based on the final position information.
[0066] By acquiring the state change data of the wire harness object, real-time rendering of the wire harness object can be achieved, thereby improving the rendering efficiency of the wire harness object.
[0067] In an optional embodiment, rendering based on the attribute information of the entity and the data of the harness object includes:
[0068] Get the current rendering scene information;
[0069] Rendering entities based on rendering scene information.
[0070] Create a scene, camera, and renderer in JavaScript, create a geometry and a material, combine them into a mesh, and finally add this mesh to the scene.
[0071] The rendering process is explained using the multi-line segment component rendering as an example.
[0072] First, create a multi-segment component and assign the vertex data to be displayed to it. The multi-segment component creates a line geometry object at the bottom layer. This line geometry object is a Three.js object. Line geometry converts the application-level vertex data into vertex, normal, UV, and index data for rendering. Three.js prepares the perspective matrix for rendering. This vertex data is then sent to the GPU, which performs vertex shading, primitive assembly, and fragment shader processing on the data. Lighting, material effects, and rasterization are applied to the data before the multi-segment is displayed on the screen.
[0073] In practical applications, the rendering method provided in the embodiment of the present application may include:
[0074] Get the visible entities in the current rendering scene;
[0075] The geometric data of the visible entity;
[0076] Performing coordinate transformation on the geometric data to obtain transformed geometric data;
[0077] After the GPU performs rasterization based on the geometric data, it determines the pixels to be drawn;
[0078] Render the wire harness object to be rendered based on the pixels to be drawn.
[0079] In practice, Three.js calculates the visible entities within the view frustum based on the camera settings of the rendered scene and transforms them into screen coordinates. Next, for each visible entity, Three.js generates vertex and fragment shader code, both of which are executed by the GPU. The vertex shader processes the vertex data of the geometry, including vertex coordinates and other attributes such as normals and texture coordinates, and transforms them, typically applying the model view projection matrix to convert world coordinates into clip coordinates. The GPU performs perspective division on the transformed vertices to normalize them to the range [-1, 1], a step called clipping. After clipping, the GPU performs rasterization, which projects polygons from 3D space onto a 2D plane and determines which pixels are covered and which pixels remain to be drawn. To determine which pixels to draw, the GPU samples the edges of the polygons and uses interpolation algorithms to calculate the pixel's color and other attributes.
[0080] Once the set of pixels that need to be drawn is determined, the fragment shader is called to process each pixel. The final color value of the pixel and other attributes, such as depth value. Shader programs can be very complex, allowing developers to implement various lighting models, shadow effects, and post-processing techniques. After calculating the colors of all pixels, the GPU writes them to the frame buffer, which includes the color buffer and the depth buffer. The color buffer stores the color information of the final image, while the depth buffer is used to resolve occlusion relationships and ensure that only the surface closest to the camera is drawn. Finally, after all visible objects have been rendered to the frame buffer, three.js reads the results from the GPU back to the memory and displays them on the user's screen.
[0081] In an optional implementation, obtaining a wire harness object to be rendered includes:
[0082] Determine the constituent elements of the harness object to be rendered;
[0083] Determine the corresponding components based on the constituent elements;
[0084] Register the entity and its associated components.
[0085] The harness object of the embodiment of the present application can be created based on the ECS architecture. For example: when creating a wire, the component element of the wire is a line. The essence of a wire is a multi-vertex line, and the wire can be drawn by only providing a series of vertex coordinates. After creating the wire entity, a reference or unique identifier of the entity is returned. According to actual needs, its properties and behaviors can be defined through associated components. Each component represents a certain aspect of the entity, such as position, appearance, physical properties, etc. For example: Position Component and Render Component are custom component classes, which represent the position and rendering information of the entity respectively. In actual applications, after registering the entity and associated components, it is ensured that the components can be correctly identified and processed in the system.
[0086] Exemplary devices
[0087] Accordingly, the embodiment of the present application also provides a rendering device, Figure 3 This is a structural block diagram of the rendering device provided in the embodiment of the present application. Figure 3 As shown, the rendering device may include:
[0088] The acquisition unit 310 is used to acquire a wire harness object to be rendered. The wire harness object includes an entity and a component. An entity is associated with multiple components. An entity includes a unique identifier and a label. A component is used to describe attribute information of the entity or operation information on the entity. Components with the same function can be associated with multiple entities.
[0089] a determining unit 330 for determining data of the wiring harness object in response to a user input operation on the wiring harness object;
[0090] The rendering unit 350 is configured to perform rendering based on the attribute information of the entity and the data of the harness object by using a logic unit system corresponding to the components included in the harness object.
[0091] The rendering device provided in this embodiment shares the same concept as the rendering method provided in the aforementioned embodiments of this application. It can execute the rendering method provided in any of the aforementioned embodiments of this application and possesses the corresponding functional modules and beneficial effects of executing the rendering method. For technical details not fully described in this embodiment, please refer to the specific processing content of the rendering method provided in the aforementioned embodiments of this application and will not be further elaborated here.
[0092] The functions implemented by the above-mentioned acquisition unit 310, determination unit 330 and rendering unit 350 can be respectively implemented by the same or different processors, which is not limited in the embodiment of the present application.
[0093] It should be understood that the acquisition unit 310, determination unit 330, and rendering unit 350 in the above device can be implemented in the form of a processor calling software. For example, the device includes a processor, which is connected to a memory, and the memory stores instructions. The processor calls the instructions stored in the memory to implement any of the above methods or the functions of each unit of the device. The processor can be a general-purpose processor, such as a CPU or a microprocessor, and the memory can be a memory within the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all units can be implemented by designing the hardware circuits. The hardware circuit can be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units can be implemented by designing the logical relationships between the components within the circuit. For another example, the hardware circuit can be implemented by a PLD, such as an FPGA, which can include a large number of logic gate circuits. The connection relationships between the logic gate circuits are configured through a configuration file to implement the functions of some or all of the above units. All units of the above device can be implemented entirely in the form of a processor calling software, entirely in the form of hardware circuits, or partially in the form of a processor calling software, with the remaining portion implemented in the form of hardware circuits.
[0094] In an embodiment of the present application, a processor is a circuit with the ability to process signals. In one implementation, the processor may be a circuit with the ability to read and execute instructions, such as a CPU, a microprocessor, a GPU, or a DSP. In another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit may be fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the configuration of the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, DPU, etc.
[0095] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0096] In addition, the various units in the above apparatus may be fully or partially integrated together, or may be implemented independently. In one implementation, these units are integrated together and implemented in the form of a system-on-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of the various units of the apparatus. The at least one processor may be of different types, such as a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0097] Exemplary Systems
[0098] Another embodiment of the present application further provides a rendering system, including a rendering sub-control system, wherein the rendering sub-control system is used to execute the above-mentioned rendering method.
[0099] Exemplary electronic devices
[0100] Another embodiment of the present application further provides an electronic device, see Figure 4 As shown, the device includes:
[0101] Memory 400 and processor 410;
[0102] The memory 400 is connected to the processor 410 and is used to store programs;
[0103] The processor 410 is configured to implement the rendering method disclosed in any of the above embodiments by running the program stored in the memory 400 .
[0104] Specifically, the electronic device may further include: a bus, a communication interface 420 , an input device 430 and an output device 440 .
[0105] The processor 410, the memory 400, the communication interface 420, the input device 430 and the output device 440 are interconnected via a bus.
[0106] A bus may include a pathway that transfers information between components of a computer system.
[0107] Processor 410 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, or the like, or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention. Alternatively, it can be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
[0108] The processor 410 may include a main processor, and may also include a baseband chip, a modem, and the like.
[0109] The memory 400 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include program code, which includes computer operating instructions. More specifically, the memory 400 may include read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (RAM), other types of dynamic storage devices that can store information and instructions, disk storage, flash, etc.
[0110] The input device 430 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0111] Output device 440 may include devices that allow information to be output to a user, such as a display screen, printer, speakers, etc.
[0112] The communication interface 420 may include any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.
[0113] The processor 410 executes the program stored in the memory 400 and calls other devices, and can be used to implement each step of any rendering method provided in the above embodiments of the present application.
[0114] An embodiment of the present application also proposes a chip, which includes a processor and a data interface. The processor reads and runs a program stored in a memory through the data interface to execute the handwritten table recognition method introduced in any of the above embodiments. The specific processing process and its beneficial effects can be found in the embodiment introduction of the above rendering method.
[0115] Exemplary computer program products and storage media
[0116] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the rendering method according to various embodiments of the present application described in any of the above-mentioned embodiments of this specification.
[0117] The computer program product may be written in any combination of one or more programming languages to implement the program code for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0118] In addition, an embodiment of the present application may also be a storage medium having a computer program stored thereon, and the computer program is used by a processor to execute the steps of the rendering method according to various embodiments of the present application described in any of the above embodiments of this specification, specifically the following steps:
[0119] S220: Obtain the harness object to be rendered; the harness object includes entities and components, and an entity is associated with multiple components; an entity includes a unique identifier and a label; a component is used to describe the attribute information of the entity or the operation information on the entity, and components with the same function are allowed to be associated with multiple entities.
[0120] S240 : In response to a user input operation on the harness object, determine data of the harness object.
[0121] S260: Rendering is performed based on the attribute information of the entity and the data of the harness object by using a logical unit system corresponding to the components included in the harness object.
[0122] For the sake of simplicity, the aforementioned method embodiments are described as a series of action combinations. However, those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0123] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similarities between the various embodiments can be referred to in conjunction with each other. For device embodiments, since they are generally similar to method embodiments, their description is relatively simple, and for relevant details, reference can be made to the description of the method embodiments.
[0124] The steps in the methods of each embodiment of the present application can be adjusted in sequence, merged, and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0125] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be merged, divided, and deleted according to actual needs.
[0126] In the several embodiments provided in this application, it should be understood that the disclosed terminals, devices, and methods can be implemented in other ways. For example, the terminal embodiments described above are merely illustrative. For example, the division of modules or submodules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or module, which can be electrical, mechanical or other forms.
[0127] The modules or submodules described as separate components may or may not be physically separate, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place or distributed across multiple network modules or submodules. Some or all of the modules or submodules may be selected to achieve the purpose of this embodiment according to actual needs.
[0128] In addition, each functional module or submodule in each embodiment of the present application may be integrated into a processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into a single module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or software functional modules or submodules.
[0129] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0130] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, software units executed by a processor, or a combination of the two. The software units may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0131] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0132] The above description of the disclosed embodiments will enable those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is to be construed in the widest manner consistent with the principles and novel features disclosed herein.
Claims
1. A rendering method, characterized in that: Applied to a computing device, the computing device includes a logic unit system, the logic unit system corresponds to at least one component, the logic unit system is used to process data of the component corresponding to the logic unit system, and the rendering method includes: Obtain a wire harness object to be rendered, the wire harness object includes an entity and a component, the entity is associated with multiple components; the entity includes a unique identifier and a label; the component is used to describe the attribute information of the entity or the operation information of the entity, and the component with the same function is allowed to be associated with multiple entities; In response to a user input operation on the harness object, determining data of the harness object; The logic unit system corresponding to the components included in the harness object is used to render based on the attribute information of the entity and the data of the harness object.
2. The rendering method according to claim 1, characterized in that: The rendering using the logical unit system corresponding to the components included in the harness object based on the attribute information of the entity and the data of the harness object includes: The logic unit system calls the component data to determine the state change data of the harness object; The wire harness object to be rendered is rendered according to the state change data of the wire harness object.
3. The rendering method according to claim 1, characterized in that: The rendering based on the attribute information of the entity and the data of the harness object includes: Get the current rendering scene information; The rendering entity is rendered based on the rendering scene information.
4. The rendering method according to claim 1, characterized in that: The rendering based on the attribute information of the entity and the data of the harness object includes: Get the visible entities in the current rendering scene; The geometric data of the visible entity; Performing coordinate transformation on the geometric data to obtain transformed geometric data; After the GPU performs rasterization based on the geometric data, it determines the pixels to be drawn; The wire harness object to be rendered is rendered based on the pixels to be drawn.
5. The rendering method according to claim 1, characterized in that: The step of obtaining the wire harness object to be rendered includes: Determining the constituent elements of the wire harness object to be rendered; According to the constituent elements, determining corresponding components; Register the entity and associated components.
6. A rendering device, characterized in that: include: An acquisition unit, used for acquiring a wire harness object to be rendered, wherein the wire harness object includes an entity and a component, wherein the entity is associated with multiple components; the entity includes a unique identifier and a tag; the component is used for describing attribute information of the entity or operation information on the entity, and the component with the same function is allowed to be associated with multiple entities; a determining unit, configured to determine data of the wiring harness object in response to a user input operation on the wiring harness object; A rendering unit is used to render based on the attribute information of the entity and the data of the wire harness object by using the logic unit system corresponding to the components included in the wire harness object.
7. An electronic device, characterized in that: including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the rendering method according to any one of claims 1 to 5 by running the program in the memory.
8. A rendering system, characterized in that: It comprises a rendering sub-control system, wherein the rendering sub-control system is used to execute the rendering method according to any one of claims 1 to 5.
9. A chip, characterized in that: It comprises a processor and a data interface, wherein the processor reads and runs a program stored in a memory through the data interface to execute the rendering method according to any one of claims 1 to 5.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the rendering method according to any one of claims 1 to 5 is implemented.