Rendering method and corresponding device

By restoring multi-directional color values ​​and texture compression technology, the efficiency and quality problems in large-scale real scene rendering are solved, and an efficient and low-storage rendering scheme is realized, which is suitable for high-fidelity real-time rendering of large-scale scenes.

CN118736086APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202310375539.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In high-fidelity real-time rendering of large-scale real scenes, it is difficult for existing technologies to balance rendering efficiency and quality. The mesh texture optimization method has high rendering efficiency but insufficient quality, while the neural radiation field method has a slow rendering speed.

Method used

By obtaining the user's perspective, the color value in multiple directions is restored for each pixel, using compressed texture information for rendering, using the traditional rendering pipeline for rendering, and combining spherical uniform sampling and texture compression technology to reduce storage requirements and improve rendering. speed.

Benefits of technology

It achieves high-fidelity real-time rendering in a small storage space, improves rendering speed and quality, and is suitable for rendering large-scale scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736086A_ABST
    Figure CN118736086A_ABST
Patent Text Reader

Abstract

The invention discloses a rendering method which can be used for rendering a large-scale real scene, for example, the rendering method is applied to three-dimensional maps, factory inspection and the like. According to the rendering method, the color value of each pixel point on the to-be-rendered image corresponding to the visual angle in each direction in a plurality of corresponding directions can be recovered according to the visual angle of browsing the target scene by the user and the compressed texture information; the plurality of directions corresponding to each pixel point are directions in which color values are sampled from a radiation field model of a target scene, and then rendering is carried out according to the color value of each pixel point in the to-be-rendered image in each of the plurality of directions corresponding to each pixel point. According to the scheme provided by the invention, high-fidelity real-time rendering of a large-scale scene can be realized by using a relatively small storage space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a rendering method and a corresponding device. Background Art

[0002] Currently, mesh texture optimization methods and neural radiance field (NeRF) methods are commonly used for high-fidelity real-time rendering of large-scale real scenes.

[0003] Among them, the mesh texture optimization method has obvious advantages in rendering efficiency based on the standard graphics rendering pipeline, but it is difficult to guarantee the rendering quality. The neural radiation field method can obtain a more realistic new perspective rendering effect through high-precision expression of the scene, but the rendering speed is slow.

[0004] Therefore, how to ensure high fidelity while achieving real-time rendering has become an urgent problem to be solved. Summary of the invention

[0005] The present application provides a rendering method for achieving high-fidelity real-time rendering. The present application also provides a corresponding device, system, computer-readable storage medium, computer program product, etc.

[0006] The first aspect of the present application provides a rendering method, comprising: obtaining the viewing angle of a user browsing a target scene; for each pixel in a first image, restoring the color value of each pixel in each of P corresponding directions according to compressed texture information; wherein the first image is an image to be rendered corresponding to the target scene of the viewing angle, the P directions corresponding to each pixel are directions for sampling color values ​​from a radiation field model of the target scene, P is an integer greater than 1, and the compressed texture information includes compressed information of the color values ​​in the P directions corresponding to each pixel; according to the color value of each pixel in each of the P directions corresponding to each pixel in the first image, rendering the first image to obtain a rendered second image.

[0007] The rendering method provided in this application can be applied to the rendering of large-scale real scenes, such as: three-dimensional maps or other industrial applications. The rendering process can be executed on the cloud side or on the end side. When executed on the cloud side, one method can be: the cloud side can obtain the user's perspective of browsing the target scene from the end side, and after rendering the second image, transmit the second image back to the end side for display. Another method can be: the cloud side renders through the user's perspective of browsing the target scene pre-set by the developer.

[0008] In this application, the target scene can be a scene that can be browsed in a three-dimensional map, such as a city, an island, or a village. Of course, the target scene can also be an industrial application scene such as equipment in a factory or shelves in a warehouse. This application does not limit the target scene. As long as it is a scene that needs to be rendered, the rendering solution provided by this application can be used.

[0009] In this application, the perspective may include position and direction. The perspective refers to the perspective provided by a user or a virtual camera. The perspective can be provided by an input device such as a mouse, keyboard, screen, or virtual reality (VR) / augmented reality (AR) device, or can be obtained through inertial measurement unit (IMU) positioning.

[0010] In the present application, the first image and the second image are both images of the target scene that can be seen from the viewing angle. The difference is that the first image is an unrendered image, and the second image is a rendered image.

[0011] In the present application, the radiation field model of the target scene refers to the radiation field model obtained through the point cloud and image of the target scene. The radiation field model is a function of the three-dimensional coordinate points, direction, color, transparency and other information of the target scene in space.

[0012] In this application, texture refers to color value. The brightness of pixels on an image corresponding to different viewing angles is usually different, so even pixels at the same position may have different corresponding color values ​​at different viewing angles.

[0013] From the first aspect, it can be seen that when the texture of the target scene is sampled, the color values ​​of each pixel in multiple directions will be obtained from the radiation field model of the target scene, so that more light field information can be retained, which is conducive to subsequent high-quality and high-fidelity rendering. In addition, in the solution provided by the present application, compressed texture information is saved, and the color value of the pixel point of the corresponding viewing angle is restored when it is needed, which can reduce storage requirements. Moreover, when rendering, it is only necessary to render according to the color value, and the traditional rendering pipeline can be used for rendering, which greatly improves the rendering speed. From the above, it can be seen that the solution provided by the present application can achieve high-fidelity real-time rendering of large-scale scenes with a relatively small storage space.

[0014] In one possible implementation, the P directions corresponding to each pixel point are directions determined from the M directions that are closest to the first direction, the M directions are directions for texture sampling of the radiation field model of the target scene determined by spherical uniform sampling, the first direction is the direction from the viewing angle to the three-dimensional coordinate point corresponding to each pixel point, M>P, and M is an integer.

[0015] In this possible implementation, spherical uniform sampling refers to uniformly determining multiple directions for texture sampling on the spherical surface, such as 64 directions, or more or fewer directions. The first direction is the direction from the three-dimensional coordinate point in space to the viewing angle corresponding to the pixel point on the first image, which can also be understood as the direction from the viewing angle to the three-dimensional coordinate point. The closest direction refers to the P direction with the smallest angle with the first direction among the M directions. The smallest angle in this application refers to the P angles ranked in the top P in order of angle from small to large. The meaning of the closest is not limited to the one with the greatest degree of proximity, but can also be the top P in order of proximity from large to small. In this application, the P directions are the directions closest to the first direction. In this way, for the corresponding pixel point, the color value of the P directions is the closest to the color value of the pixel point, which can improve the rendering accuracy of the pixel point.

[0016] In a possible implementation, each of the M directions corresponds to a sampled texture map, and the sampled texture map is used to represent the color values ​​of N texture pixels in the corresponding direction, where N is an integer greater than 1.

[0017] In this possible implementation, the pixel points on the texture sampling map are called texture pixels. For the target scene, texture sampling can be performed in advance from M directions. Each direction corresponds to a sampled texture map, and the sampled texture map records the color value of each sampled pixel point. The number of texture pixels in the M sampled texture maps is the same, and the arrangement position is also the same.

[0018] In one possible implementation, the compressed texture information includes a standard texture map, K compressed feature texture maps, and a weight matrix corresponding to the K feature texture maps; the standard texture map, the K feature texture maps, and the weight matrix corresponding to the K feature texture maps are obtained through M sampled texture maps, K is a positive integer, and (1+K)<M.

[0019] In this possible implementation, the standard texture map refers to the texture map that retains the most complete color information, which can be understood as a color texture map, and the feature texture map is a compressed texture map, which can be understood as a texture map that only retains some grayscale information. Processing M sampled texture maps into a standard texture map and K feature texture maps can reduce the demand for storage space and facilitate subsequent rendering.

[0020] In a possible implementation, the color value of each texture pixel in the standard texture map is obtained by averaging the color values ​​of texture pixels at the same position in M ​​sampled texture maps.

[0021] In this possible implementation, by averaging the color values ​​of texture pixels at the same position in M ​​sampled texture maps to obtain a standard texture map, the most complete color information can be retained, which is beneficial to subsequent high-quality rendering.

[0022] In one possible implementation, the weight matrices corresponding to the K feature texture maps and the K texture maps are obtained by dimensionality reduction compression of an M*N matrix, where the M*N matrix is ​​the color value of each texture pixel in the M sampled texture maps minus the color value of the texture pixel at the same position in the standard texture map.

[0023] In this possible implementation, M sampled texture images are subtracted from the standard texture image, and then the M*N matrix obtained by the subtraction is compressed by dimensionality reduction (also called low-rank compression), which can reduce the amount of data and help save storage space.

[0024] In one possible implementation, the color value of each pixel in each of the P directions is obtained by multiplying the weight matrix corresponding to the K feature texture images and the K*N matrix formed by the N texture pixels on each feature texture image, and then adding it to the 1*N matrix corresponding to the standard texture image.

[0025] In this possible implementation, the color value of each pixel in each of the P directions during sampling can be restored through K feature texture maps, the corresponding weight matrix, and the standard texture map. In this way, this information is in a compressed state when not in use, and the corresponding color value can be restored when used, which does not take up too much storage space and can also achieve high-quality rendering.

[0026] In one possible implementation, the second image is obtained by rendering the first image according to the color value of each pixel in the first image in the first direction, and the color value of each pixel in the first direction is obtained by interpolating the color value of each pixel in each of the P directions.

[0027] In this possible implementation, because the brightness and other information of the same position at different viewing angles may be different, the color values ​​of the same position at different viewing angles may be different. Therefore, when rendering the image, color values ​​are obtained from multiple directions closest to the first direction, and then the color value of the first direction is determined. This can obtain a high-fidelity image that is more in line with the viewing angle, which is beneficial to improving the rendering quality.

[0028] In a possible implementation, different positions of the second image are rendered using textures at different levels, and the textures at different levels are obtained by downsampling a standard texture map and K feature texture maps at different sparsity levels.

[0029] In this possible implementation, when looking at different positions of the target scene from the same viewing angle, some positions may be relatively clear while some positions may be relatively blurred, so different positions have different importance during rendering. In this way, different positions can be rendered according to different levels of textures, which can improve rendering efficiency.

[0030] In a possible implementation, the M sampling texture maps corresponding to the M directions are obtained by performing texture sampling on the radiation field model of the target scene according to the two-dimensional texture pixel map.

[0031] In one possible implementation, the two-dimensional texture pixel map is obtained by UV parameterizing the three-dimensional grid of the radiation field model.

[0032] In this possible implementation, the radiation field model of the target scene can be gridded, so that the radiation field model of the target scene will correspond to a three-dimensional grid, which indicates the position of the coordinate points of the target scene in the three-dimensional space. The three-dimensional grid can be UV parameterized to obtain a two-dimensional texture pixel map, which will include N texture pixel points. Then, for these texture pixel points, the radiation field model of the target scene is texture sampled from different directions in M ​​directions to obtain M sampled texture maps.

[0033] In a second aspect, the present application provides a rendering device, which has the function of implementing the rendering method of the first aspect or any possible implementation of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions, such as: an acquisition unit, a processing unit, and a rendering unit.

[0034] The third aspect of the present application provides an electronic device, including a communication interface, a processor and a memory, wherein the communication interface and the processor are coupled to the memory, and the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the electronic device executes a method as described in the first aspect or any possible implementation method of the first aspect.

[0035] In the present application, the processor may include at least one of a central processing unit (CPU) and a graphics processing unit (GPU); wherein both the CPU and the GPU may execute the image rendering process described in the above-mentioned first aspect or any possible implementation of the first aspect, or the CPU and the GPU cooperate to execute the image rendering process described in the above-mentioned first aspect or any possible implementation of the first aspect.

[0036] In a fourth aspect, the present application provides a chip system, which includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected by lines; the interface circuit is used to receive signals from a memory of an electronic device and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes a method as described in the first aspect or any possible implementation of the first aspect, and the processor is at least one of a CPU and a GPU.

[0037] A fifth aspect of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on an electronic device, the electronic device executes a method as described in the first aspect or any possible implementation of the first aspect.

[0038] The sixth aspect of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the method of the first aspect or any possible implementation of the first aspect.

[0039] In a seventh aspect, the present application provides a rendering system, including a cloud-side device and an end-side device, wherein the end-side device is used to send the perspective of a user browsing a target scene to the cloud-side device; the cloud-side device is used to execute the method of the above-mentioned first aspect or any possible implementation method of the first aspect; the end-side device is used to receive a second image returned by the cloud-side device and display the second image.

[0040] An eighth aspect of the present application provides a rendering system, including: an electronic device, the electronic device is used to execute the method of the above-mentioned first aspect or any possible implementation method of the first aspect, and the electronic device is a cloud-side device or a terminal-side device.

[0041] The relevant features and effects of the second to eighth aspects of the present application can be understood by referring to the corresponding introduction in the first aspect or any possible implementation method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1A is a schematic diagram of an architecture of a rendering system provided in an embodiment of the present application;

[0043] Figure 1B is another schematic diagram of the architecture of the rendering system provided in an embodiment of the present application;

[0044] Figure 1C is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0045] Figure 2 is a schematic diagram of an embodiment of a rendering method provided in an embodiment of the present application;

[0046] Figure 3 is a schematic diagram of another embodiment of the rendering method provided in an embodiment of the present application;

[0047] Figure 4A is an example schematic diagram of initializing the radiation field model provided in an embodiment of the present application;

[0048] Figure 4B is an example schematic diagram of a three-dimensional grid model provided in an embodiment of the present application;

[0049] Figure 4C is an example schematic diagram of UV parameterization provided in an embodiment of the present application;

[0050] Figure 4D is an example schematic diagram of a sampling direction provided in an embodiment of the present application;

[0051] Figure 4E is a schematic diagram of an example of texture compression provided by an embodiment of the present application;

[0052] FIG. 5A to FIG. 5C This is a comparison diagram of the effects provided by the embodiments of the present application;

[0053] Figure 6 is a structural schematic diagram of a rendering device provided in an embodiment of the present application;

[0054] Figure 7 It is a structural schematic diagram of a rendering device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0056] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0057] The present application provides a rendering method for achieving high-fidelity real-time rendering. The present application also provides a corresponding device, system, computer-readable storage medium, and computer program product, etc. The following are detailed descriptions.

[0058] The rendering method provided in this application can be applied to various rendering scenarios, such as: film production, video games, commercial advertising, smart home, augmented reality (AR) & virtual reality (VR) and many other fields, and is particularly suitable for rendering large-scale real scenes, such as three-dimensional maps or industrial applications such as factory inspections.

[0059] The rendering method provided in the present application can be executed on the cloud side or on the terminal side. When executed on the cloud side, one method can be: the cloud side can obtain the user's perspective of browsing the target scene from the terminal side, and after rendering the first image to obtain the second image, transmit the second image back to the terminal side for display. Another method can be: the cloud side renders through the perspective pre-set by the developer. When executed on the terminal side, the entire rendering process does not require the participation of the cloud side. After the terminal side responds to the user's perspective of browsing the target scene, it can execute the rendering process of the present application, and then display the second image obtained by rendering the first image.

[0060] In summary, the rendering method provided in the present application can be implemented by an end-cloud collaborative rendering system, or by a non-end-cloud collaborative rendering system. The architectures of these two rendering systems are introduced below.

[0061] Figure 1A A schematic diagram of the architecture of a terminal-cloud collaborative rendering system provided in an embodiment of the present application.

[0062] like Figure 1A As shown, the end-cloud collaborative rendering system provided in the embodiment of the present application includes a cloud-side device and an end-side device, and the cloud-side device and the end-side device communicate through a network.

[0063] Various types of applications can be installed on the end-side device. Taking the application of three-dimensional maps as an example, when a user browses a target scene, the end-side device can receive the user's viewing angle of the target scene provided by the user through an input device such as a mouse, keyboard, screen, or virtual reality (VR) / augmented reality (AR) device. Then the end-side device can transmit the user's viewing angle of the target scene to the cloud-side device through the network. The cloud-side device can restore the color value of each pixel point on the first image to be rendered in each of the multiple directions corresponding to the user's viewing angle of the target scene and compressed texture information. The multiple directions corresponding to each pixel point are the directions of sampling color values ​​from the radiation field model of the target scene. Then, the second image is rendered according to the color value of each pixel point in each of the multiple directions corresponding to each pixel point in the first image, and the second image is returned to the end-side device. After receiving the second image, the end-side device can display the second image.

[0064] The cloud-side device can be a working node in the cloud system. The cloud system also includes a scheduling node. After the scheduling node receives a rendering request from the end-side device (including the perspective of the user browsing the target scene), it can generate a rendering task based on the rendering request and assign it to one or more working nodes in the cloud system for execution.

[0065] The function of the scheduling node can be implemented by software or hardware.

[0066] As an example of a software functional unit, the scheduling node may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the above computing instance may be one or more. For example, the scheduling node may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.

[0067] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in one region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0068] As an example of a hardware functional unit, the scheduling node may include at least one computing device, such as a server, etc. Alternatively, the scheduling node may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0069] The multiple computing devices included in the scheduling node can be distributed in the same area or in different areas. The multiple computing devices included in the scheduling node can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the scheduling node can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0070] A working node can be a physical machine, or a computing instance such as a virtual machine (VM) or a container. A working node can include one or more central processing units (CPU) and graphics processing units (GPU), etc. A working node can also be a CPU or a GPU.

[0071] The end-side device may be a terminal device. The terminal device, also known as user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device including a wireless communication function (providing voice / data connectivity to users), for example, a handheld device with a wireless connection function. At present, some examples of terminal devices are: mobile phones, tablet computers, laptops, PDAs, notebook computers, wireless routers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in Internet of Vehicles, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes, etc. For example, the wireless terminal in the Internet of Vehicles can be an on-board device, a vehicle device, an on-board module, a vehicle, etc. The wireless terminal in industrial control can be a robot, etc. For example, the wireless terminal in unmanned driving can be a drone. The terminal device can be a device running an Android system, an IOS system, a Windows system, or other systems. Applications that need to render application scenes to obtain two-dimensional images, such as game applications, lock screen applications, or map applications, can be run in the terminal device.

[0072] Above Figure 1A Cloud systems such as Figure 1B As shown in Figure 1, the cloud system includes a cloud platform and basic resources. The cloud platform includes a cloud platform manager. The scheduling nodes introduced above can be Figure 1B The basic resources may include multiple servers, each of which may be a working node, or each server may include multiple working nodes.

[0073] exist Figure 1BThe working node in the system may be a computing device card or a virtual machine (VM). The computing device card may be at least one of a central processing unit (CPU), a graphics processing unit (GPU) and a neural network processing unit (NPU).

[0074] The cloud platform manager will maintain or periodically collect information about each work node in the basic resources, such as the resource usage on each work node (resource usage rate or resource idle rate), etc. This information can be used as auxiliary decision-making information when allocating rendering tasks.

[0075] The cloud platform manager can receive a rendering request from a terminal device, which includes the user's perspective for browsing the target scene, and then generate one or more rendering tasks based on the rendering request, and assign them to one or more working nodes to perform the corresponding rendering tasks.

[0076] After the working node completes the rendering task, the cloud platform manager can return the rendered image to the user.

[0077] The rendering system of the non-end-cloud system may include an electronic device, which may be a cloud-side device or an end-side device. When the electronic device is a cloud-side device, it can be rendered through the perspective pre-set by the developer. When the electronic device is an end-side device, the entire rendering process does not require cloud-side participation. After the end-side device responds to the user's perspective of browsing the target scene, it can execute the rendering process of the present application, and then display the rendering of the first image to obtain the second image.

[0078] The structure of the electronic device can participate Figure 1C It is understood that in one possible embodiment, Figure 1C As shown, the electronic device 1000 may include: a central processing unit 1001, a graphics processor 1002, a display device 1003 and a memory 1004. Optionally, the electronic device 1000 may also include at least one communication bus ( Figure 1C ), which is not shown in the figure, is used to realize the connection and communication between various components.

[0079] It should be understood that the various components in the electronic device 1000 may also be coupled through other connectors, and the other connectors may include various interfaces, transmission lines or buses, etc. The various components in the electronic device 1000 may also be connected in a radial manner centered on the central processor 1001. In various embodiments of the present application, coupling refers to being electrically connected or connected to each other, including being directly connected or indirectly connected through other devices.

[0080] There are many ways to connect the CPU 1001 and the GPU 1002, and they are not limited to Figure 1C The central processing unit 1001 and the graphics processing unit 1002 in the electronic device 1000 may be located on the same chip or may be separate chips.

[0081] The functions of the central processing unit 1001 , the graphics processing unit 1002 , the display device 1003 and the memory 1004 are briefly introduced below.

[0082] Central processing unit 1001: used to run operating system 1005 and application 1006. Application 1006 can be a graphics application, such as a game, a video player, etc. Operating system 1005 provides a system graphics library interface, and application 1006 generates an instruction stream for rendering graphics or image frames and the required related rendering data through the system graphics library interface and the driver provided by operating system 1005, such as graphics library user mode driver and / or graphics library kernel mode driver. Among them, the system graphics library includes but is not limited to: open graphics library for embedded system (OpenGL ES), Khronos platform graphics interface or Vulkan (a cross-platform drawing application interface) and other system graphics libraries. The instruction stream contains a series of instructions, which are usually call instructions for the system graphics library interface.

[0083] Optionally, the central processing unit 1001 may include at least one of the following types of processors: an application processor, one or more microprocessors, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor, etc.

[0084] The CPU 1001 may further include necessary hardware accelerators, such as application specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or integrated circuits for implementing logic operations. The processor 1001 may be coupled to one or more data buses for transmitting data and instructions between various components of the electronic device 1000.

[0085] Graphics processor 1002: used to receive the graphics instruction stream sent by processor 1001, generate a rendering target through a rendering pipeline, and display the rendering target to display device 1003 through the layer synthesis display module of the operating system. The rendering pipeline can also be called a rendering pipeline, a pixel pipeline or a pixel pipeline, which is a parallel processing unit inside the graphics processor 1002 for processing graphics signals. The graphics processor 1002 may include multiple rendering pipelines, and multiple rendering pipelines can process graphics signals in parallel independently of each other. For example, the rendering pipeline can perform a series of operations in the process of rendering graphics or image frames, and typical operations may include: vertex processing, primitive processing, rasterization, fragment processing, etc.

[0086] Alternatively, the graphics processor 1002 may include a general-purpose graphics processor that executes software, such as a GPU or other types of dedicated graphics processing units.

[0087] Display device 1003: used to display various images generated by electronic device 1000, which may be a graphical user interface (GUI) of an operating system or image data (including still images and video data) processed by graphics processor 1002.

[0088] Optionally, the display device 1003 may include any suitable type of display screen, such as a liquid crystal display (LCD), a plasma display, or an organic light-emitting diode (OLED) display.

[0089] The memory 1004 is a transmission channel between the CPU 1001 and the GPU 1002 and may be a double data rate synchronous dynamic random access memory (DDR SDRAM) or other types of cache.

[0090] It should be noted that, when the electronic device is a cloud-side device, the electronic device may not include the display device 1003 .

[0091] The above introduces the rendering system provided by the embodiment of the present application, and the possible structure of the electronic device. The rendering method provided by the embodiment of the present application is described below. The content of the rendering method involving the execution of the cloud-side device can be executed by the cloud-side device, or by a component of the cloud-side device (such as a processor, chip, or chip system, etc.). Similarly, the content involving the execution of the end-side device can be executed by the end-side device, or by a component of the end-side device (such as a processor, chip, or chip system, etc.).

[0092] Figure 2 A schematic diagram of an embodiment of a rendering method provided in an embodiment of the present application.

[0093] like Figure 2 As shown, in combination with the above-mentioned end-cloud collaborative rendering system, an embodiment of the rendering method provided in the embodiment of the present application includes:

[0094] 201. The terminal-side device sends the user's viewing angle of the target scene. Correspondingly, the cloud-side device obtains the user's viewing angle of the target scene.

[0095] In this application, the target scene can be a scene that can be browsed in a three-dimensional map, such as a city, an island, or a village. Of course, the target scene can also be an industrial application scene such as equipment in a factory or shelves in a warehouse. This application does not limit the target scene. As long as it is a scene that needs to be rendered, the rendering solution provided by this application can be used.

[0096] 202. The cloud-side device restores the color value of each pixel in each of the corresponding P directions according to the compressed texture information for each pixel in the first image.

[0097] Among them, the first image is the image to be rendered corresponding to the target scene from the perspective, the P directions corresponding to each pixel are the directions of sampling color values ​​from the radiation field model of the target scene, P is an integer greater than 1, and the compressed texture information includes compression information of the color values ​​in the P directions corresponding to each pixel.

[0098] In the present application, the radiation field model of the target scene refers to the radiation field model obtained through the point cloud and image of the target scene. The radiation field model is a function of the three-dimensional coordinate points, direction, color, transparency and other information of the target scene in space.

[0099] In this application, texture refers to color value. The brightness of pixels on an image corresponding to different viewing angles is usually different, so even pixels at the same position may have different corresponding color values ​​at different viewing angles.

[0100] 203. The cloud-side device renders the first image according to the color value of each pixel point in the first image in each of the P corresponding directions to obtain a rendered second image.

[0101] In the present application, the first image and the second image are both images of the target scene that can be seen from the viewing angle. The difference is that the first image is an unrendered image, and the second image is a rendered image.

[0102] 204. The cloud-side device sends the second image. Correspondingly, the terminal-side device receives the second image.

[0103] 205. The terminal device displays the second image.

[0104] The technical solution provided by the present application, when sampling the texture of the target scene, will obtain the color value of each pixel in multiple directions from the radiation field model of the target scene, so that more light field information can be retained, which is conducive to subsequent high-quality and high-fidelity rendering. In addition, in the solution provided by the present application, compressed texture information is saved, and the color value of the pixel point of the corresponding perspective is restored when it is needed, which can reduce storage requirements. Moreover, when rendering, it is only necessary to render according to the color value, and the traditional rendering pipeline can be used for rendering, which greatly improves the rendering speed. From the above, it can be seen that the solution provided by the present application can achieve high-fidelity real-time rendering of large-scale scenes with a relatively small storage space.

[0105] If the rendering method provided by the embodiment of the present application is performed by a cloud device alone in combination with a non-end-cloud collaborative rendering system, the cloud device executes the above Figure 2 The cloud-side device in the corresponding embodiment obtains the viewing angle of the user browsing the target scene, as well as steps 202 and 203. When the rendering method provided in the embodiment of the present application is executed by the terminal-side device alone, the terminal-side device executes the above Figure 2 The terminal device in the corresponding embodiment obtains the viewing angle of the user browsing the target scene, as well as steps 202, 203 and 205.

[0106] In order to achieve high-fidelity real-time rendering of the target scene, the present application embodiment can make the following preparations before rendering. Figure 3 Make an introduction.

[0107] like Figure 3 As shown, the preparation before rendering provided by the embodiment of the present application may include:

[0108] 301. Radiation field model initialization;

[0109] like Figure 4AAs shown, in an embodiment of the present application, pictures and point clouds taken of a target scene from different perspectives may be input into a radiation field generation model to obtain a radiation field model of the target scene.

[0110] The radiation field model is a function of the target scene's three-dimensional coordinates, direction, color, transparency and other information in space.

[0111] 302. Mesh extraction;

[0112] The radiation field model of the target scene may be gridded, so that the radiation field model of the target scene corresponds to a three-dimensional grid, and the three-dimensional grid indicates the position of the coordinate point of the target scene in the three-dimensional space.

[0113] The example diagram of the target scene's radiation field model after meshing can be used to participate in Figure 4B To understand.

[0114] 303.UV parameterization;

[0115] A two-dimensional texture pixel map can be obtained by UV parameterizing a three-dimensional grid. The two-dimensional texture pixel map includes N texture pixel points, such as 4096*4096 pixel points.

[0116] The above process of parameterizing the 3D mesh UV can be used to Figure 4C To understand, such as Figure 4C For the convenience of representation, Figure 3 UV parameterization is performed on a local map on a three-dimensional grid, and the spatial coordinates on the three-dimensional grid are converted into pixel points on the two-dimensional space of the UV coordinate axis.

[0117] 304. Multi-directional texture extraction;

[0118] For these texture pixel points in the two-dimensional texture pixel map, texture sampling can be performed on the radiation field model of the target scene from different directions in M ​​directions, so that M sampled texture maps can be obtained.

[0119] In the embodiment of the present application, the M directions can be determined from the directions of points at different positions on the sphere and the center of the sphere, and the M points can be determined by uniform sampling of the sphere. Figure 4D To understand.

[0120] like Figure 4D In FIG. 4 , the solid 401 represents the center of the sphere, and the hollow 402 on the sphere represents the sampling point. There can be many sampling points (represented by M) determined by uniform sampling on the sphere. Figure 4D Only a few are shown schematically in the figure, and the direction from each hollow center 402 on the sphere to the center 401 is each direction of the M directions introduced above.

[0121] Then, for each of the M directions, Figure 4C Each texture pixel in the two-dimensional texture pixel map in the radiated field model obtains the corresponding color value (i.e., extracts the texture of the texture pixel) and M sampled texture maps are obtained. The M directions correspond to the M sampled texture maps one by one. The number of texture pixels in the M sampled texture maps is the same, and the arrangement positions are also the same. The sampled texture maps are used to represent the color values ​​of the N texture pixels in the corresponding directions.

[0122] M can be balanced between controlling the amount of computation and maintaining authenticity, and its value can be between 40 and 100.

[0123] 305. Texture compression;

[0124] In the process of texture compression, the M sampled texture maps obtained in step 304 can be compressed by sampling singular value decomposition (SVD), and a standard texture map C, K feature texture maps, and a weight matrix W corresponding to the K feature texture maps can be obtained, K is a positive integer, and (1+K)<M, for example: in this application, 84 sampled texture maps can be compressed into 15 feature texture maps. In this application, the standard texture map C, K feature texture maps, and the weight matrix W corresponding to the K feature texture maps can also be referred to as compressed texture information.

[0125] In the embodiment of the present application, the standard texture map refers to a texture map that retains the most complete color information, which can be understood as a color texture map, and the feature texture map is a compressed texture map, which can be understood as a texture map that only retains some grayscale information. Processing M sampled texture maps into a standard texture map and K feature texture maps can reduce the demand for storage space, which is beneficial to subsequent rendering.

[0126] The color value of each texture pixel in the standard texture map is obtained by averaging the color values ​​of texture pixels at the same position in the M sampled texture maps.

[0127] The weight matrices corresponding to the K feature texture maps and the K texture maps are obtained by dimensionality reduction compression of an M*N matrix, where the M*N matrix is ​​the color value of each texture pixel in the M sampled texture maps minus the color value of the texture pixel at the same position in the standard texture map.

[0128] Subtracting M sampled texture images from the standard texture image, and then performing dimensionality reduction compression (also called low-rank compression) on the M*N matrix obtained by the subtraction can reduce the amount of data and help save storage space.

[0129] In the embodiment of the present application, the process of obtaining a standard texture map through M sampled texture maps and the schematic diagram of the M*N matrix before dimensionality reduction compression can be participated in Figure 4E To understand, such as Figure 4E As shown, there are 4 sampling texture maps, corresponding to 4 different directions, namely sampling texture map 1, sampling texture map 2, sampling texture map 3, sampling texture map 4, sampling texture map 5, sampling texture map 6, sampling texture map 7, sampling texture map 8, sampling texture map 9, sampling texture map 10, sampling texture map 11, sampling texture map 12, sampling texture map 13, sampling texture map 14, sampling texture map 15, sampling texture map 16, sampling texture map 1 Figure 2 , Sample Texture Figure 3 The color values ​​of the texture pixels at the same position in the four sampled texture images are averaged to get the standard texture image. The color value of each texture pixel in the sampled texture image 1 is subtracted from the color value of the texture pixel at the same position in the standard texture image to get the pixel difference texture image 1. Figure 2 The pixel difference texture can be obtained by subtracting the color value of each texture pixel in the standard texture map from the color value of the texture pixel at the same position in the standard texture map. Figure 2 , the texture will be sampled Figure 3 The pixel difference texture can be obtained by subtracting the color value of each texture pixel in the standard texture map from the color value of the texture pixel at the same position in the standard texture map. Figure 3 , the color value of each texture pixel in the sampled texture image 4 is subtracted from the color value of the texture pixel at the same position in the standard texture image to obtain the pixel difference texture image 4, and then the four pixel difference texture images are compressed by dimensionality reduction to obtain the feature texture image. Figure 4E For example, after dimensionality reduction and compression of the four pixel difference texture maps in , one feature texture map can be obtained.

[0130] 306. Model hierarchy;

[0131] In an embodiment of the present application, when viewing different positions of the target scene from the same viewing angle, some positions may be relatively clear while some positions may be relatively blurred, so different positions have different importance during rendering. In order to improve rendering efficiency, the present application may perform multi-level of detail (LOD) processing on the mesh model used during rendering based on the standard texture map and K feature texture maps obtained in step 305, wherein the first level may use the standard texture map and K feature texture maps, and the subsequent different levels may be obtained by downsampling the standard texture map and the K feature texture maps to different degrees of sparsity. In this way, when rendering different positions of the target scene, textures may be obtained from different levels and the corresponding positions may be rendered, thereby improving rendering efficiency.

[0132] 307. Custom shaders;

[0133] According to the rendering pipeline of the traditional texture grid, for each pixel to be rendered, the pipeline can provide texture coordinates and viewing direction. The present application can determine the P directions closest to the viewing direction from the M directions (e.g., P=3) according to the viewing direction, and then restore the color value of the pixel in each of the P directions through K feature texture maps and weight matrix W, and then interpolate the P colors through Barycentric coordinate to obtain the color value of the pixel. Because the interpolated color value of the pixel comes from the color values ​​of multiple directions, the interpolated color value of the pixel can be used to render the pixel to improve the rendering quality.

[0134] In the embodiment of the present application, the supplier collects aerial images at the city level, which can be stored on a distributed server in the cloud. Then the above steps 301 to 307 can be performed, and the model or compressed texture information obtained in the above process can be stored in the cloud through an open scene graph binary (OSGB) file for the delivery of rendering services.

[0135] Users of this service can open a browser on their end devices to preview the city from above. Specifically, they only need to move the mouse, and the browser will transmit the user's browsing perspective back to the cloud, which will render the image and then return the rendered image to the user's browser for viewing.

[0136] 308. This application rendering process.

[0137] For the rendering process of this application, please refer to the previous Figure 2 Steps 202 and 203 in the corresponding embodiments are understood, wherein the P directions corresponding to each pixel point are directions determined from the M directions that are closest to the first direction, the M directions are directions for texture sampling of the radiation field model of the target scene determined by spherical uniform sampling, the first direction is the direction from the position of the viewing angle to the three-dimensional coordinate point corresponding to each pixel point, M>P, and M is an integer.

[0138] Regarding the uniform sampling of the sphere, the direction of M can be involved in the previous Figure 4DPart of the illustration and introduction can be understood. Among them, the first direction is the direction from the three-dimensional coordinate point in the space corresponding to the pixel point on the first image to the position of the viewing angle, which can also be understood as the direction from the position of the viewing angle to the three-dimensional coordinate point. The closest direction refers to the P direction with the smallest angle with the first direction among the M directions. The smallest angle in this application refers to the P angles ranked in the top P in order of angles from small to large. The meaning of the closest is not limited to the one with the greatest degree of proximity, but can also be the top P angles ranked in order of proximity from large to small. In this application, the P directions are the directions closest to the first direction. In this way, for the corresponding pixel point, the color values ​​of the P directions are the closest to the color value of the pixel point, which can improve the accuracy of rendering the pixel point.

[0139] In the above step 202, the color value of each pixel in each of the P directions corresponding to each pixel is restored according to the compressed texture information. The color value of each pixel in each of the P directions is obtained by multiplying the weight matrix corresponding to the K feature texture images and the K*N matrix formed by the N texture pixels on each feature texture image, and then adding the 1*N matrix corresponding to the standard texture image, which can be expressed as: W*T+C, wherein C represents the 1*N matrix corresponding to the standard texture image, W represents the weight matrix (M*K matrix) corresponding to the K feature texture images, T represents the K*N matrix corresponding to the K feature texture images, and N is the number of texture pixels on the feature texture image.

[0140] In an embodiment of the present application, the color value of each pixel in each of the P directions during sampling can be restored through K feature texture maps, the corresponding weight matrix, and the standard texture map. In this way, this information is in a compressed state when not in use, and the corresponding color value can be restored when used, which does not take up too much storage space and can also achieve high-quality rendering.

[0141] After restoring the color value of each pixel in each of the P directions corresponding to each pixel through step 202, step 203 can be executed to obtain the second image. In the embodiment of the present application, the second image is obtained by rendering the first image according to the color value of each pixel in the first image in the first direction corresponding to each pixel, and the color value of each pixel in the first direction corresponding to each pixel is obtained by interpolating the color value of each pixel in each of the P directions corresponding to each pixel. Considering that the brightness and other information of the same position at different viewing angles may be different, the color value of the same position at different viewing angles may be different. Therefore, when rendering the image, the color values ​​are obtained from multiple directions closest to the first direction, and then the color value of the first direction is determined. This can obtain a high-fidelity image that is more in line with the viewing angle, which is conducive to improving the rendering quality.

[0142] In the embodiment of the present application, different positions of the second image are rendered using textures of different levels, and the textures of different levels are obtained by downsampling the standard texture map and K feature texture maps to different degrees of sparsity. Considering that when viewing different positions of the target scene from the same viewing angle, some positions may be relatively clear and some positions may be relatively blurred, so different positions have different importance during rendering, so different positions can be rendered according to textures of different levels, which can improve rendering efficiency.

[0143] The rendering method provided in the embodiment of the present application can support the universal OSGB file format, and can achieve an interactive frame rate (60 frames per second, fps) on a common graphics card for real large-scale scenes. In terms of rendering quality, compared with the texture grid method, the rendering result of the present application has a more uniform overall color, shows a highly realistic light and shadow effect, and has more beautiful texture details.

[0144] The rendering method provided by this application can participate in the above-mentioned effect of rendering relative to the texture grid method. Figure 5A , Figure 5B and Figure 5C To understand.

[0145] From the introduction of the rendering scheme of the present application, it can be seen that the present application proposes a new renderable model based on compressed directional textures, which has the advantages of high efficiency of the texture grid method and high quality of the neural radiation field. The present application realizes the conversion of complex neural radiation field models into customized renderable texture models by performing multi-directional texture extraction on the radiation field model. Compared with the texture grid method that only generates one standard texture map, the multi-directional texture extraction method retains richer scene information. The present application further utilizes feature texture compression to achieve lightweight expression of large scenes. Compared with the texture grid method, this step does not significantly increase memory requirements. Compared with the neural radiation field method, the present application significantly improves rendering efficiency based on display radiation field technology combined with a standard rendering pipeline, and the custom shader related to the viewing angle ensures high-quality rendering effects. In summary, the storage requirements and rendering quality of the present application are very good, and large-scale real scenes can be rendered quickly and with high quality. In addition, since the technical method of the present application has the characteristics of low data dependence and small storage requirements, it can not only be used on the cloud side, but also the end-side device can also implement the above rendering process.

[0146] The above describes the rendering method provided in the embodiment of the present application. The following describes the rendering device provided in the embodiment of the present application in conjunction with the accompanying drawings.

[0147] like Figure 6 As shown, the rendering device 60 provided in the embodiment of the present application includes:

[0148] The acquisition unit 601 is used to acquire the viewing angle of the user browsing the target scene.

[0149] The processing unit 602 is used to restore the color value of each pixel in each of the P directions corresponding to each pixel in the first image according to the compressed texture information; wherein the first image is an image to be rendered corresponding to the target scene of the viewing angle, the P directions corresponding to each pixel are directions for sampling color values ​​from the radiation field model of the target scene, P is an integer greater than 1, and the compressed texture information includes compressed information of the color values ​​in the P directions corresponding to each pixel. The processing unit 602 can be used to execute step 202 in the above method embodiment.

[0150] The rendering unit 603 is used to render the first image according to the color value of each pixel in each of the P directions corresponding to the first image to obtain a rendered second image. The rendering unit 603 can be used to perform step 203 in the above method embodiment.

[0151] The technical solution provided by the present application, when sampling the texture of the target scene, will obtain the color value of each pixel in multiple directions from the radiation field model of the target scene, so that more light field information can be retained, which is conducive to subsequent high-quality and high-fidelity rendering. In addition, in the solution provided by the present application, compressed texture information is saved, and the color value of the pixel point of the corresponding perspective is restored when it is needed, which can reduce storage requirements. Moreover, when rendering, it is only necessary to render according to the color value, and the traditional rendering pipeline can be used for rendering, which greatly improves the rendering speed. From the above, it can be seen that the solution provided by the present application can achieve high-fidelity real-time rendering of large-scale scenes with a relatively small storage space.

[0152] Optionally, the P directions corresponding to each pixel point are directions closest to the first direction determined from the M directions, the M directions are directions for texture sampling of the radiation field model of the target scene determined by spherical uniform sampling, the first direction is the direction from the viewing angle to the three-dimensional coordinate point corresponding to each pixel point, M>P, and M is an integer.

[0153] Optionally, each of the M directions corresponds to a sampled texture map, and the sampled texture map is used to represent the color values ​​of N texture pixels in the corresponding direction, where N is an integer greater than 1.

[0154] Optionally, the compressed texture information includes a standard texture map, K compressed feature texture maps, and a weight matrix corresponding to the K feature texture maps; the standard texture map, K feature texture maps, and the weight matrix corresponding to the K feature texture maps are obtained through M sampled texture maps, K is a positive integer, and (1+K)<M.

[0155] Optionally, the color value of each texture pixel in the standard texture map is obtained by averaging the color values ​​of texture pixels at the same position in the M sampled texture maps.

[0156] Optionally, the weight matrices corresponding to the K feature texture maps and the K texture maps are obtained by dimensionality reduction compression of an M*N matrix, where the M*N matrix is ​​a matrix obtained by subtracting the color value of the texture pixel at the same position in the standard texture map from the color value of each texture pixel in the M sampled texture maps.

[0157] Optionally, the color value of each pixel in each of the P directions is obtained by multiplying the weight matrix corresponding to the K feature texture images and the K*N matrix formed by the N texture pixels on each feature texture image, and then adding it to the 1*N matrix corresponding to the standard texture image.

[0158] Optionally, the second image is obtained by rendering the first image according to the color value of each pixel in the first image in the corresponding first direction, and the color value of each pixel in the corresponding first direction is obtained by interpolating the color value of each pixel in each of the corresponding P directions.

[0159] Optionally, different positions of the second image are obtained by rendering using textures of different levels, and the textures of different levels are obtained by downsampling the standard texture map and K feature texture maps to different degrees of sparseness.

[0160] Optionally, the M sampling texture maps corresponding to the M directions are obtained by performing texture sampling on the radiation field model of the target scene according to the two-dimensional texture pixel map.

[0161] Optionally, the two-dimensional texture pixel map is obtained by performing UV parameterization processing on the three-dimensional grid of the radiation field model.

[0162] The rendering device provided in the embodiment of the present application can be understood by referring to the corresponding contents of the method embodiment part introduced above, and will not be repeated here.

[0163] See also Figure 7 , a structural schematic diagram of another rendering device 70 provided in the present application is described as follows.

[0164] The rendering device 70 may include a processor 701 and a memory 702. The processor 701, the memory 702, and the communication interface 703 are interconnected via a bus 704. The memory 702 stores program instructions and data.

[0165] The memory 702 stores the aforementioned Figure 1A-Figure 5BMore specifically, the processor may also be a processor for processing images, such as a GPU or a CPU for processing images.

[0166] Processor 701 is used to execute the above Figure 1A-Figure 5B The method steps are performed by the rendering device shown in any one of the embodiments.

[0167] Optionally, the communication interface 703 is used to receive or send data.

[0168] The present application also provides a computer-readable storage medium in which a program is stored. When the program is run on a computer, the computer executes the above-mentioned Figure 1A-Figure 5B The illustrated embodiments describe steps in a method.

[0169] Optionally, the aforementioned Figure 7 The rendering device shown in FIG. 1 is a chip.

[0170] The present application also provides a rendering device, which can also be called a digital processing chip or chip. The chip includes a processing unit and a communication interface. The processing unit obtains program instructions through the communication interface. The program instructions are executed by the processing unit. The processing unit is used to execute the above 1A- Figure 5B The method steps shown in any embodiment.

[0171] The embodiment of the present application also provides a digital processing chip. The digital processing chip integrates a circuit and one or more interfaces for implementing the above-mentioned processor 701 or the functions of the processor 701. When the digital processing chip integrates a memory, the digital processing chip can complete the method steps of any one or more of the above-mentioned embodiments. When the digital processing chip does not integrate a memory, it can be connected to an external memory through a communication interface. The digital processing chip implements the method steps in the above-mentioned embodiment according to the program code stored in the external memory.

[0172] The present application also provides a computer-readable storage medium in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned 1A- Figure 5B The steps in the method described in any embodiment.

[0173] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the above-mentioned 1A- Figure 5B The steps in the method described in any embodiment.

[0174] The image processing device provided in the embodiment of the present application may be a chip, and the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, a pin or a circuit. The processing unit may execute the computer execution instructions stored in the storage unit, so that the chip in the server executes the above Figure 1A-Figure 5B The rendering method described in the illustrated embodiment. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc. The storage unit may also be a storage unit located outside the chip in the wireless access device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.

[0175] Specifically, the aforementioned processing unit or processor may include a central processing unit (CPU), a neural-network processing unit (NPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0176] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0177] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0178] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0179] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.

Claims

1. A rendering method, characterized in that: include: Get the user's perspective when browsing the target scene; For each pixel in the first image, according to the compressed texture information, the color value of each pixel in each of the P directions corresponding to each pixel is restored; wherein the first image is an image to be rendered corresponding to the target scene at the viewing angle, the P directions corresponding to each pixel are directions for sampling color values ​​from the radiation field model of the target scene, P is an integer greater than 1, and the compressed texture information includes compressed information of the color values ​​in the P directions corresponding to each pixel; The first image is rendered according to the color value of each pixel in the first image in each of the P directions corresponding to each pixel, to obtain a rendered second image.

2. The method according to claim 1, characterized in that The P directions corresponding to each pixel point are directions determined from the M directions that are closest to the first direction, the M directions are directions for texture sampling of the radiation field model of the target scene determined by spherical uniform sampling, the first direction is the direction from the position of the viewing angle to the three-dimensional coordinate point corresponding to each pixel point, M>P, and M is an integer.

3. The method according to claim 2, characterized in that Each of the M directions corresponds to a sampled texture map, and the sampled texture map is used to represent the color values ​​of N texture pixels in the corresponding direction, where N is an integer greater than 1.

4. The method according to claim 3, characterized in that The compressed texture information includes a standard texture map, K compressed feature texture maps, and weight matrices corresponding to the K feature texture maps; The standard texture map, the K feature texture maps and the weight matrices corresponding to the K feature texture maps are obtained through the M sampled texture maps, K is a positive integer, and (1+K)<M.

5. The method according to claim 4, characterized in that The color value of each texture pixel in the standard texture map is obtained by averaging the color values ​​of the texture pixels at the same position in the M sampled texture maps.

6. The method according to claim 4 or 5, characterized in that: The weight matrices corresponding to the K feature texture maps and the K texture maps are obtained by dimensionality reduction compression of an M*N matrix, where the M*N matrix is ​​a matrix obtained by subtracting the color value of the texture pixel at the same position in the standard texture map from the color value of each texture pixel in the M sampled texture maps.

7. The method according to claim 6, characterized in that The color value of each pixel point in each of the P directions is obtained by multiplying the weight matrix corresponding to the K feature texture images and the K*N matrix formed by the N texture pixels on each feature texture image, and then adding it to the 1*N matrix corresponding to the standard texture image.

8. The method according to any one of claims 2 to 7, characterized in that: The second image is obtained by rendering the first image according to the color value of each pixel in the first image in the corresponding first direction, and the color value of each pixel in the corresponding first direction is obtained by interpolating the color value of each pixel in each of the P corresponding directions.

9. The method according to any one of claims 4 to 7, characterized in that: Different positions of the second image are obtained by rendering using textures of different levels, and the textures of different levels are obtained by downsampling the standard texture map and the K feature texture maps at different sparsity levels.

10. The method according to any one of claims 4 to 9, characterized in that: The M sampling texture maps corresponding to the M directions are obtained by performing texture sampling on the radiation field model of the target scene according to the two-dimensional texture pixel map.

11. The method according to claim 10, characterized in that The two-dimensional texture pixel map is obtained by performing UV parameterization processing on the three-dimensional grid of the radiation field model.

12. The method according to any one of claims 1 to 11, characterized in that: The target scene is a large-scale real scene.

13. A rendering device, characterized in that: An acquisition unit, used to acquire the viewing angle of the user browsing the target scene; A processing unit, configured to restore, for each pixel in the first image, the color value of each pixel in each of P directions corresponding to each pixel according to the compressed texture information; wherein the first image is an image to be rendered corresponding to the target scene at the viewing angle, the P directions corresponding to each pixel are directions for sampling color values ​​from a radiation field model of the target scene, P is an integer greater than 1, and the compressed texture information includes compressed information of the color values ​​in the P directions corresponding to each pixel; A rendering unit is used to render the first image according to the color value of each pixel point in each of the P directions corresponding to the first image to obtain a rendered second image.

14. The device according to claim 13, characterized in that The P directions corresponding to each pixel point are directions determined from the M directions that are closest to the first direction, the M directions are directions for texture sampling of the radiation field model of the target scene determined by spherical uniform sampling, the first direction is the direction from the position of the viewing angle to the three-dimensional coordinate point corresponding to each pixel point, M>P, and M is an integer.

15. The device according to claim 14, characterized in that Each of the M directions corresponds to a sampled texture map, and the sampled texture map is used to represent the color values ​​of N texture pixels in the corresponding direction, where N is an integer greater than 1.

16. The device according to claim 15, characterized in that The compressed texture information includes a standard texture map, K compressed feature texture maps, and weight matrices corresponding to the K feature texture maps; The standard texture map, the K feature texture maps and the weight matrices corresponding to the K feature texture maps are obtained through the M sampled texture maps, K is a positive integer, and (1+K)<M.

17. The device according to claim 16, characterized in that The color value of each texture pixel in the standard texture map is obtained by averaging the color values ​​of the texture pixels at the same position in the M sampled texture maps.

18. The device according to claim 16 or 17, characterized in that The weight matrices corresponding to the K feature texture maps and the K texture maps are obtained by dimensionality reduction compression of an M*N matrix, where the M*N matrix is ​​a matrix obtained by subtracting the color value of the texture pixel at the same position in the standard texture map from the color value of each texture pixel in the M sampled texture maps.

19. The device according to claim 18, characterized in that The color value of each pixel point in each of the P directions is obtained by multiplying the weight matrix corresponding to the K feature texture images and the K*N matrix formed by the N texture pixels on each feature texture image, and then adding it to the 1*N matrix corresponding to the standard texture image.

20. An electronic device, characterized in that: include: A communication interface, a processor and a memory, wherein the communication interface and the processor are coupled to the memory, and the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1 to 12.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 12.

22. A computer program product, characterized in that The computer program product comprises a computer program code, which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 12.

23. A chip system, characterized in that: The chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected through lines; the interface circuits are used to receive signals from the memory of the electronic device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1 to 12, and the processor is at least one of a central processing unit or a graphics processing unit.

24. A rendering system, characterized in that: Including cloud-side devices and end-side devices, The terminal-side device is used to send the user's viewing angle of the target scene to the cloud-side device; The cloud-side device is used to perform the method described in any one of claims 1 to 12 above; The terminal-side device is used to receive the second image returned by the cloud-side device and display the second image.

25. A rendering system, characterized in that: include: An electronic device, wherein the electronic device is used to execute the method as described in any one of claims 1 to 12, and the electronic device is a cloud-side device or a terminal-side device.

Citation Information

Cited By

  • Salient region coding method and system in real-time rendering scene

    CN119697374A

  • Rendering method and corresponding device

    EP4675562A1

  • Rendering method and corresponding device

    WO2024199097A1