CN112967369B - Light ray display method and device - Google Patents

Light ray display method and device Download PDF

Info

Publication number
CN112967369B
CN112967369B CN202110424924.4A CN202110424924A CN112967369B CN 112967369 B CN112967369 B CN 112967369B CN 202110424924 A CN202110424924 A CN 202110424924A CN 112967369 B CN112967369 B CN 112967369B
Authority
CN
China
Prior art keywords
light
projection screen
coordinates
ray
hit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110424924.4A
Other languages
Chinese (zh)
Other versions
CN112967369A (en
Inventor
王毅
刘佩
葛国峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Skyguard Network Security Technology Co ltd
Original Assignee
Beijing Skyguard Network Security Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Skyguard Network Security Technology Co ltd filed Critical Beijing Skyguard Network Security Technology Co ltd
Priority to CN202110424924.4A priority Critical patent/CN112967369B/en
Publication of CN112967369A publication Critical patent/CN112967369A/en
Application granted granted Critical
Publication of CN112967369B publication Critical patent/CN112967369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/06Ray-tracing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a light ray display method and device, and relates to the technical field of computers. One embodiment of the method comprises the following steps: acquiring the viewpoint position of a camera and the position of a projection screen of a three-dimensional object; constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system; receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm; and displaying the target light to the user. The implementation mode reduces the debugging difficulty of the ray tracing algorithm and reduces the technical effect of debugging cost.

Description

Light ray display method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a light display method and apparatus.
Background
Ray tracing technology is a method of presenting three-dimensional images on a two-dimensional screen and is widely used in computer games and animation, television and DVD production, and in movie products. In ray tracing techniques, the path of each ray is made up of multiple straight lines, almost always containing reflection, refraction and shadow effects from the origin to the scene. In animation, the position and direction of the straight line portion of each ray always change, so each ray is expressed by a mathematical equation, and the spatial path of the ray is defined as a function of time. Each ray is assigned a color based on the color or pigment of the object in the scene through which the ray passed before reaching the screen. Each pixel on the screen corresponds to each ray that can be traced back to the source at each instant.
The prior art has at least the following problems:
In the existing method related to the ray tracing technology, as the three-dimensional image is finally constructed, the rays in the process of constructing the three-dimensional image are invisible, the construction process of each pixel point in the three-dimensional image cannot be intuitively observed, and the ray tracing algorithm cannot be debugged before the three-dimensional image is constructed, so that the debugging difficulty and the debugging cost of the ray tracing algorithm are high.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a light ray display method and apparatus, which can visually display the tracking light ray in the process of constructing a three-dimensional image, thereby reducing the debugging difficulty of the light ray tracking algorithm and reducing the debugging cost.
To achieve the above object, according to a first aspect of an embodiment of the present invention, there is provided a light ray display method, including:
acquiring the viewpoint position of a camera and the position of a projection screen of a three-dimensional object;
Constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system;
Receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm;
And displaying the target light to the user.
Further, the step of constructing the light path diagram according to the three-dimensional coordinate system, the space scene including the three-dimensional object, and the ray tracing algorithm includes:
Respectively connecting a plurality of projection screen coordinates by taking a camera viewpoint coordinate as a starting point so as to determine a plurality of emitted light rays;
respectively extending a plurality of emitted light rays into a space scene, determining at least one hit point when the emitted light rays hit a three-dimensional object according to a ray tracing algorithm, and determining corresponding hit point coordinates of the at least one hit point in a three-dimensional coordinate system;
And for each emitted light ray, connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light rays and the hit point coordinates to obtain a first light ray, and constructing a light path diagram according to the first light rays corresponding to the projection screen coordinates.
Further, extending the plurality of emitted light rays into the space scene respectively, determining at least one hit point when the emitted light rays hit the three-dimensional object according to the ray tracing algorithm, and further including:
When each emitted light extends into the space scene, the corresponding hit point of the three-dimensional object is hit according to the light ray tracing algorithm, and the reflected light ray and/or the refracted light ray are determined according to the emitted light ray and the first hit point;
and extending the reflected light and/or the refracted light, and determining the corresponding hit point when the reflected light and/or the refracted light hits the three-dimensional object until the recursion depth threshold corresponding to the ray tracing algorithm is reached.
Further, determining the reflected light and/or the refracted light from the emitted light and the first hit point further comprises:
Determining a first normal and a reflected ray from the emitted ray, the first hit point, and the shape of the hit object; and/or
The second normal and the refracted ray are determined from the emitted ray, the first hit point and the refractive index of the hit object.
Further, the step of obtaining the first light ray further includes:
and aiming at each emitted light ray, sequentially connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light ray, the hit point coordinates and the first normal and/or the second normal corresponding to the hit point to obtain the first light ray.
Further, the ray tracing algorithm is debugged according to the displayed target ray.
According to a second aspect of an embodiment of the present invention, there is provided a light showing device, including:
The position acquisition module is used for acquiring the viewpoint position of the camera and the projection screen position of the three-dimensional object;
a coordinate system construction module for constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining the camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system;
The target light determining module is used for receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm;
And the display module is used for displaying the target light to the user.
Further, the device also comprises a light path diagram construction module for:
Respectively connecting a plurality of projection screen coordinates by taking a camera viewpoint coordinate as a starting point so as to determine a plurality of emitted light rays;
respectively extending a plurality of emitted light rays into a space scene, determining at least one hit point when the emitted light rays hit a three-dimensional object according to a ray tracing algorithm, and determining corresponding hit point coordinates of the at least one hit point in a three-dimensional coordinate system;
And for each emitted light ray, connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light rays and the hit point coordinates to obtain a first light ray, and constructing a light path diagram according to the first light rays corresponding to the projection screen coordinates.
According to a third aspect of an embodiment of the present invention, there is provided an electronic apparatus, including:
one or more processors;
Storage means for storing one or more programs,
When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement any of the light ray display methods described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements a light ray display method as any one of the above.
One embodiment of the above invention has the following advantages or benefits: because the position of the viewpoint of the camera and the position of the projection screen of the three-dimensional object are acquired; constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system; receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm; the technical means of displaying the target light to the user overcomes the technical problems of high debugging difficulty and high debugging cost of the ray tracing algorithm in the existing method related to the ray tracing technology, and further achieves the technical effects of visually displaying the tracing light in the process of constructing the three-dimensional image, reducing the debugging difficulty of the ray tracing algorithm and reducing the debugging cost.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a light ray display method according to a first embodiment of the present invention;
FIG. 2a is a schematic diagram of a main flow of a light ray display method according to a second embodiment of the present invention;
FIG. 2b is a schematic diagram illustrating the light ray display effect corresponding to the method shown in FIG. 2 a;
FIG. 3 is a schematic diagram of the main modules of a light display device according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
Fig. 5 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a light ray display method according to a first embodiment of the present invention; as shown in fig. 1, the light ray display method provided by the embodiment of the invention mainly includes:
Step S101, a camera viewpoint position and a projection screen position of a three-dimensional object are acquired.
Ray tracing algorithms are an important algorithm in computer graphics that construct three-dimensional images with realism by simulating the physical properties of rays in the real world. The method is beneficial to determining the sending path of the light rays in the process of simulating the interaction of the light and the object by using the image generated by a computer later by acquiring the viewpoint position of the camera (simulating the sending starting point of the light rays) and the projection screen position of the three-dimensional object (constructing the two-dimensional image corresponding to the three-dimensional object), so as to realize the visualization of the light rays.
Step S102, a three-dimensional coordinate system is constructed according to the camera viewpoint position and the projection screen position, and the camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position are determined in the three-dimensional coordinate system.
Specifically, according to the embodiment of the invention, a three-dimensional coordinate system is constructed according to the viewpoint position of the camera and the position of the projection screen to construct a three-dimensional coordinate system, so that the coordinates corresponding to nodes through which light passes can be determined later, the light transmission path diagram can be determined conveniently, the visual display of the tracking light in the process of constructing the three-dimensional image can be realized, the debugging difficulty of a light tracking algorithm can be reduced, and the debugging cost can be reduced.
Step S103, receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the starting point of the target light is camera viewpoint coordinates, and the light path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm.
Specifically, according to the embodiment of the invention, after the light path diagram is built according to the three-dimensional coordinate system, the space scene including the three-dimensional object and the ray tracing algorithm, a user can determine the sending path of the light rays which are sent out from the target light rays and pass through a certain point in the two-dimensional image corresponding to the target three-dimensional object only by inputting the coordinates of the target projection screen (namely, the coordinates corresponding to the certain point in the two-dimensional image corresponding to the target three-dimensional object), and then the visual display of the light rays can be realized.
Further, according to an embodiment of the present invention, the step of constructing the light path diagram according to the three-dimensional coordinate system, the spatial scene including the three-dimensional object, and the ray tracing algorithm includes:
Respectively connecting a plurality of projection screen coordinates by taking a camera viewpoint coordinate as a starting point so as to determine a plurality of emitted light rays;
respectively extending a plurality of emitted light rays into a space scene, determining at least one hit point when the emitted light rays hit a three-dimensional object according to a ray tracing algorithm, and determining corresponding hit point coordinates of the at least one hit point in a three-dimensional coordinate system;
And for each emitted light ray, connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light rays and the hit point coordinates to obtain a first light ray, and constructing a light path diagram according to the first light rays corresponding to the projection screen coordinates.
Specifically, according to the embodiment of the invention, a plurality of projection screen coordinates form a two-dimensional image corresponding to a three-dimensional object, and the plurality of projection screen coordinates are respectively connected with a starting point of a target ray which is a camera viewpoint coordinate as a starting point so as to determine a plurality of emission rays; and then the plurality of emitted light rays are respectively extended into a space scene comprising the three-dimensional object, the corresponding hit point when the emitted light rays hit the three-dimensional object can be determined according to a ray tracing algorithm, and then the first light ray (namely, the target light ray is taken as a starting point, passes through the projection screen coordinates, and then extends to the corresponding light ray path in the space scene) is determined.
Preferably, according to an embodiment of the present invention, the extending the plurality of emission light rays into the spatial scene respectively determines at least one hit point when the emission light rays hit the three-dimensional object according to a ray tracing algorithm, and further includes:
When each emitted light extends into the space scene, the corresponding hit point of the three-dimensional object is hit according to the light ray tracing algorithm, and the reflected light ray and/or the refracted light ray are determined according to the emitted light ray and the first hit point;
and extending the reflected light and/or the refracted light, and determining the corresponding hit point when the reflected light and/or the refracted light hits the three-dimensional object until the recursion depth threshold corresponding to the ray tracing algorithm is reached.
By means of the arrangement, the ray tracing algorithm determines the reflected ray and/or the refracted ray after the emitted ray hits the first three-dimensional object (the first hit point is the three-dimensional object corresponding to the two-dimensional image formed by the plurality of projection screen coordinates, also called the target three-dimensional object), recursions are performed (continuing to determine that the reflected ray and/or the refracted ray hits any three-dimensional object in the space scene (the three-dimensional object hit by the reflected or refracted ray is a three-dimensional object except the target three-dimensional object in the space scene, it is to be noted that after multiple reflections/refractions, the reflected ray and/or the refracted ray may hit the target three-dimensional object again), until the recursion depth threshold is reached, by means of the arrangement, the plurality of hit points can be determined, and the camera viewpoint coordinates, a certain projection screen coordinate and the hit points extending into the space scene (connected according to the hit sequence) can be determined.
Further, according to an embodiment of the present invention, the determining the reflected light and/or the refracted light according to the emitted light and the first striking point further includes:
Determining a first normal and a reflected ray from the emitted ray, the first hit point, and the shape of the hit object; and/or
The second normal and the refracted ray are determined from the emitted ray, the first hit point and the refractive index of the hit object.
Illustratively, according to an embodiment of the present invention, the step of obtaining the first light further includes:
and aiming at each emitted light ray, sequentially connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light ray, the hit point coordinates and the first normal and/or the second normal corresponding to the hit point to obtain the first light ray.
Through the arrangement, the normal corresponding to each hit point is determined, and the subsequent debugging of the light ray tracking algorithm according to the displayed normal is facilitated.
Step S104, displaying the target light to the user.
Further, the ray tracing algorithm is debugged according to the displayed target ray.
Through the arrangement, the ray tracing algorithm is debugged according to the visually displayed target rays, so that the debugging difficulty of the ray tracing algorithm is reduced, and the debugging cost is reduced.
According to the technical scheme of the embodiment of the invention, the position of the viewpoint of the camera and the position of the projection screen of the three-dimensional object are acquired; constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system; receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm; the technical means of displaying the target light to the user overcomes the technical problems of high debugging difficulty and high debugging cost of the ray tracing algorithm in the existing method related to the ray tracing technology, and further achieves the technical effects of visually displaying the tracing light in the process of constructing the three-dimensional image, reducing the debugging difficulty of the ray tracing algorithm and reducing the debugging cost.
Fig. 2 is a schematic diagram of a main flow of a light ray display method according to a second embodiment of the present invention; as shown in fig. 2, the light ray display method provided by the embodiment of the invention mainly includes:
Step S201, obtaining the position of a camera viewpoint and the position of a projection screen of a three-dimensional object; a three-dimensional coordinate system is constructed from the camera viewpoint position and the projection screen position, and camera viewpoint coordinates, and a plurality of projection screen coordinates in the projection screen position, are determined in the three-dimensional coordinate system.
Specifically, according to the embodiment of the invention, a three-dimensional coordinate system is constructed according to the viewpoint position of the camera and the position of the projection screen to construct a three-dimensional coordinate system, so that the coordinates corresponding to nodes through which light passes can be determined later, the light transmission path diagram can be determined conveniently, the visual display of the tracking light in the process of constructing the three-dimensional image can be realized, the debugging difficulty of a light tracking algorithm can be reduced, and the debugging cost can be reduced.
In step S202, a plurality of projection screen coordinates are respectively connected with the camera viewpoint coordinates as a starting point to determine a plurality of emitted light rays.
Specifically, with the camera viewpoint coordinates as the starting point, the projection screen coordinates are respectively connected, a plurality of emitted light rays are determined, and the extending direction of the emitted light rays is indicated. The method is beneficial to extending the emitted light rays into a space scene comprising a three-dimensional object, and further determining the light ray transmission path so as to facilitate visual display of the light ray transmission path.
Step S203, when each emitted light extends into the space scene, the corresponding hit point of the three-dimensional object is hit according to the light ray tracing algorithm, and the reflected light ray and/or the refracted light ray are determined according to the emitted light ray and the first hit point; and extending the reflected light and/or the refracted light, and determining the corresponding hit point when the reflected light and/or the refracted light hits the three-dimensional object until the recursion depth threshold corresponding to the ray tracing algorithm is reached.
Specifically, according to the embodiment of the present invention, the emitted light is used as the input of the ray tracing algorithm, the intersection point (i.e. the hit point) of the emitted light L 0 (the refracted light or the reflected light after refraction or reflection) and the three-dimensional object is sequentially determined, the reflected light and/or the refracted light L 1, L 1 is used as the new light (the input of the ray tracing algorithm) to continue to extend, and the recursive calculation is performed according to the ray tracing algorithm until the light does not collide with any object or the maximum recursive depth is reached. And recording the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light rays and the normal coordinates of the hit point calculated in each step. The recording result is a series of three-dimensional coordinates, the corresponding starting point is the camera viewpoint coordinate, and the connecting line of the series of three-dimensional coordinates is the light transmission path.
According to an embodiment of the present invention, as shown in fig. 2b, a black rectangular block indicates a camera, a camera viewpoint is located in the black rectangular block, an arrow indicates an extending direction of an emitted light, a turning point is a hit point, and a ray connected to the hit point is a normal. It should be noted that, since the space scene including the three-dimensional object is a three-dimensional space scene, the light ray display effect diagram shown in fig. 2b is only at one angle.
Further, according to an embodiment of the present invention, the determining the reflected light and/or the refracted light according to the emitted light and the first striking point further includes:
Determining a first normal and a reflected ray from the emitted ray, the first hit point, and the shape of the hit object; and/or
The second normal and the refracted ray are determined from the emitted ray, the first hit point and the refractive index of the hit object.
Step S204, determining the corresponding hit point coordinates of at least one hit point in the three-dimensional coordinate system; and for each emitted light ray, connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light rays and the hit point coordinates to obtain a first light ray, and constructing a light path diagram according to the first light rays corresponding to the projection screen coordinates.
Further, the step of obtaining the first light ray further includes:
and aiming at each emitted light ray, sequentially connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light ray, the hit point coordinates and the first normal and/or the second normal corresponding to the hit point to obtain the first light ray.
By means of the arrangement, the ray tracing algorithm determines the reflected ray and/or the refracted ray after the emitted ray hits the first three-dimensional object (the first hit point is the three-dimensional object corresponding to the two-dimensional image formed by the plurality of projection screen coordinates, also called the target three-dimensional object), recursions are performed (continuing to determine that the reflected ray and/or the refracted ray hits any three-dimensional object in the space scene (the three-dimensional object hit by the reflected or refracted ray is a three-dimensional object except the target three-dimensional object in the space scene, it is to be noted that after multiple reflections/refractions, the reflected ray and/or the refracted ray may hit the target three-dimensional object again), until the recursion depth threshold is reached, by means of the arrangement, the plurality of hit points can be determined, and the camera viewpoint coordinates, a certain projection screen coordinate and the hit points extending into the space scene (connected according to the hit sequence) can be determined.
Step S205, receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; and determining the target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram.
Specifically, according to the embodiment of the invention, after the light path diagram is built according to the three-dimensional coordinate system, the space scene including the three-dimensional object and the ray tracing algorithm, a user can determine the sending path of the light rays which are sent out from the target light rays and pass through a certain point in the two-dimensional image corresponding to the three-dimensional object only by inputting the coordinates of the target projection screen (namely, the coordinates corresponding to the certain point in the two-dimensional image corresponding to the three-dimensional object), and then the visual display of the light rays can be realized.
Step S206, the target light is displayed to the user, so that the user can debug the light ray tracing algorithm according to the displayed target light.
Through the arrangement, the ray tracing algorithm is debugged according to the visually displayed target rays, so that the debugging difficulty of the ray tracing algorithm is reduced, and the debugging cost is reduced. It should be noted that, the debugging of the ray tracing algorithm according to the target ray is only one application of the present invention, but not limited to the present invention.
According to the technical scheme of the embodiment of the invention, the position of the viewpoint of the camera and the position of the projection screen of the three-dimensional object are acquired; constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system; receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm; the technical means of displaying the target light to the user overcomes the technical problems of high debugging difficulty and high debugging cost of the ray tracing algorithm in the existing method related to the ray tracing technology, and further achieves the technical effects of visually displaying the tracing light in the process of constructing the three-dimensional image, reducing the debugging difficulty of the ray tracing algorithm and reducing the debugging cost.
FIG. 3 is a schematic diagram of the main modules of a light display device according to an embodiment of the present invention; as shown in fig. 3, the light display apparatus 300 provided in the embodiment of the present invention further includes:
the position acquisition module 301 is configured to acquire a camera viewpoint position and a projection screen position of the three-dimensional object.
Ray tracing algorithms are an important method of computer graphics that construct three-dimensional images with realism by simulating the physical properties of rays in the real world. The method is beneficial to determining the sending path of the light rays in the process of simulating the interaction of the light and the object by using the image generated by a computer later by acquiring the viewpoint position of the camera (simulating the sending starting point of the light rays) and the projection screen position of the three-dimensional object (constructing the two-dimensional image corresponding to the three-dimensional object), so as to realize the visualization of the light rays.
A coordinate system construction module 302 for constructing a three-dimensional coordinate system from the camera viewpoint position and the projection screen position, determining the camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system.
Specifically, according to the embodiment of the invention, a three-dimensional coordinate system is constructed according to the viewpoint position of the camera and the position of the projection screen to construct a three-dimensional coordinate system, so that the coordinates corresponding to nodes through which light passes can be determined later, the light transmission path diagram can be determined conveniently, the visual display of the tracking light in the process of constructing the three-dimensional image can be realized, the debugging difficulty of a light tracking algorithm can be reduced, and the debugging cost can be reduced.
A target ray determination module 303 for receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the starting point of the target light is camera viewpoint coordinates, and the light path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm.
Specifically, according to the embodiment of the invention, after the light path diagram is built according to the three-dimensional coordinate system, the space scene including the three-dimensional object and the ray tracing algorithm, a user can determine the sending path of the light rays which are sent out from the target light rays and pass through a certain point in the two-dimensional image corresponding to the three-dimensional object only by inputting the coordinates of the target projection screen (namely, the coordinates corresponding to the certain point in the two-dimensional image corresponding to the three-dimensional object), and then the visual display of the light rays can be realized.
Further, according to an embodiment of the present invention, the light display apparatus 300 further includes a light path diagram construction module, configured to:
Respectively connecting a plurality of projection screen coordinates by taking a camera viewpoint coordinate as a starting point so as to determine a plurality of emitted light rays;
respectively extending a plurality of emitted light rays into a space scene, determining at least one hit point when the emitted light rays hit a three-dimensional object according to a ray tracing algorithm, and determining corresponding hit point coordinates of the at least one hit point in a three-dimensional coordinate system;
And for each emitted light ray, connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light rays and the hit point coordinates to obtain a first light ray, and constructing a light path diagram according to the first light rays corresponding to the projection screen coordinates.
Specifically, according to the embodiment of the invention, a plurality of projection screen coordinates form a two-dimensional image corresponding to a three-dimensional object, and the plurality of projection screen coordinates are respectively connected with a starting point of a target ray which is a camera viewpoint coordinate as a starting point so as to determine a plurality of emission rays; and then the plurality of emitted light rays are respectively extended into a space scene comprising the three-dimensional object, the corresponding hit point when the emitted light rays hit the three-dimensional object can be determined according to a ray tracing algorithm, and then the first light ray (namely, the target light ray is taken as a starting point, passes through the projection screen coordinates, and then extends to the corresponding light ray path in the space scene) is determined.
Preferably, according to an embodiment of the present invention, the above optical path diagram building module is further configured to:
When each emitted light extends into the space scene, the corresponding hit point of the three-dimensional object is hit according to the light ray tracing algorithm, and the reflected light ray and/or the refracted light ray are determined according to the emitted light ray and the first hit point;
and extending the reflected light and/or the refracted light, and determining the corresponding hit point when the reflected light and/or the refracted light hits the three-dimensional object until the recursion depth threshold corresponding to the ray tracing algorithm is reached.
By means of the arrangement, the ray tracing algorithm determines the reflected ray and/or the refracted ray after the emitted ray hits the first three-dimensional object (the first hit point is the three-dimensional object corresponding to the two-dimensional image formed by the plurality of projection screen coordinates, also called the target three-dimensional object), recursions are performed (continuing to determine that the reflected ray and/or the refracted ray hits any three-dimensional object in the space scene (the three-dimensional object hit by the reflected or refracted ray is a three-dimensional object except the target three-dimensional object in the space scene, it is to be noted that after multiple reflections/refractions, the reflected ray and/or the refracted ray may hit the target three-dimensional object again), until the recursion depth threshold is reached, by means of the arrangement, the plurality of hit points can be determined, and the camera viewpoint coordinates, a certain projection screen coordinate and the hit points extending into the space scene (connected according to the hit sequence) can be determined.
Further, according to an embodiment of the present invention, the above optical path diagram construction module is further configured to:
Determining a first normal and a reflected ray from the emitted ray, the first hit point, and the shape of the hit object; and/or
The second normal and the refracted ray are determined from the emitted ray, the first hit point and the refractive index of the hit object.
Illustratively, according to an embodiment of the present invention, the above optical path diagram building module is further configured to:
and aiming at each emitted light ray, sequentially connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emitted light ray, the hit point coordinates and the first normal and/or the second normal corresponding to the hit point to obtain the first light ray.
Through the arrangement, the normal corresponding to each hit point is determined, and the subsequent debugging of the light ray tracking algorithm according to the displayed normal is facilitated.
And the display module 304 is configured to display the target light to the user.
Further, according to an embodiment of the present invention, the light display apparatus 300 further includes a debug module for: and debugging the ray tracing algorithm according to the displayed target ray.
Through the arrangement, the ray tracing algorithm is debugged according to the visually displayed target rays, so that the debugging difficulty of the ray tracing algorithm is reduced, and the debugging cost is reduced.
According to the technical scheme of the embodiment of the invention, the position of the viewpoint of the camera and the position of the projection screen of the three-dimensional object are acquired; constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system; receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm; the technical means of displaying the target light to the user overcomes the technical problems of high debugging difficulty and high debugging cost of the ray tracing algorithm in the existing method related to the ray tracing technology, and further achieves the technical effects of visually displaying the tracing light in the process of constructing the three-dimensional image, reducing the debugging difficulty of the ray tracing algorithm and reducing the debugging cost.
Fig. 4 illustrates an exemplary system architecture 400 in which a light presentation method or light presentation device of an embodiment of the present invention may be applied.
As shown in fig. 4, a system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components contained in a particular architecture may be tailored to the application specific case). The network 404 is used as a medium to provide communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 405 via the network 404 using the terminal devices 401, 402, 403 to receive or send messages or the like. Various communication client applications, such as a light show class application, a web browser application, a search class application, a data processing class application, a mailbox client, social platform software, etc. (for example only) may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a server (by way of example only) that utilizes (performs light presentation/data processing) the terminal devices 401, 402, 403 to the user. The server may perform analysis or the like on the received data such as the camera viewpoint position, the projection screen position of the three-dimensional object, and the like, and feed back the processing result (e.g., the target light, which is merely an example) to the terminal device.
It should be noted that the light showing method provided in the embodiment of the present invention is generally executed by the server 405, and accordingly, the light showing device is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present invention. The terminal device or server shown in fig. 5 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a position acquisition module, a coordinate system construction module, a target ray determination module, and a display module. The names of these modules do not constitute limitations on the module itself in some cases, and for example, the position acquisition module may also be described as "a module for acquiring a camera viewpoint position, a projection screen position of a three-dimensional object".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: acquiring the viewpoint position of a camera and the position of a projection screen of a three-dimensional object; constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system; receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm; and displaying the target light to the user.
According to the technical scheme of the embodiment of the invention, the position of the viewpoint of the camera and the position of the projection screen of the three-dimensional object are acquired; constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system; receiving target projection screen coordinates selected by a user from a plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the method comprises the steps that a starting point of target light is a camera viewpoint coordinate, and an optical path diagram is constructed according to a three-dimensional coordinate system, a space scene comprising a three-dimensional object and a light ray tracing algorithm; the technical means of displaying the target light to the user overcomes the technical problems of high debugging difficulty and high debugging cost of the ray tracing algorithm in the existing method related to the ray tracing technology, and further achieves the technical effects of visually displaying the tracing light in the process of constructing the three-dimensional image, reducing the debugging difficulty of the ray tracing algorithm and reducing the debugging cost.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (7)

1. A method of light presentation, comprising:
acquiring the viewpoint position of a camera and the position of a projection screen of a three-dimensional object;
Constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system;
Receiving target projection screen coordinates selected by a user from the plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the starting point of the target light is the camera viewpoint coordinate, and the light path diagram is constructed according to the three-dimensional coordinate system, a space scene comprising the three-dimensional object and a ray tracing algorithm;
Displaying the target light to the user;
The step of constructing an optical path diagram according to the three-dimensional coordinate system, the space scene comprising the three-dimensional object and the ray tracing algorithm comprises the following steps:
Respectively connecting the plurality of projection screen coordinates with the camera viewpoint coordinates as a starting point to determine a plurality of emitted light rays;
Respectively extending the plurality of emitted light rays into the space scene, determining at least one hit point when the emitted light rays hit the three-dimensional object according to the light ray tracing algorithm, and determining corresponding hit point coordinates of the at least one hit point in the three-dimensional coordinate system;
For each emitted light ray, connecting the camera viewpoint coordinates, projection screen coordinates corresponding to the emitted light ray and the hit point coordinates to obtain a first light ray, and constructing the light path diagram according to the first light rays corresponding to the projection screen coordinates;
The extending the plurality of emitted light rays into the space scene respectively, determining at least one hit point when the emitted light rays hit the three-dimensional object according to the ray tracing algorithm, further includes:
Determining the hit points of the emitted light and the three-dimensional object by taking the emitted light as the input of a ray tracing algorithm, and determining reflected light and/or refracted light according to the emitted light and the hit points of the emitted light and the three-dimensional object;
and extending the reflected light and the refracted light, and determining the corresponding hit points when the reflected light and the refracted light hit the three-dimensional object until reaching the recursion depth threshold corresponding to the ray tracing algorithm.
2. The method according to claim 1, wherein determining reflected light and/or refracted light according to the emitted light and the hit point of the emitted light with the three-dimensional object comprises:
determining a first normal and the reflected light based on the emitted light, the striking point, and the shape of the struck object; and/or the number of the groups of groups,
And determining a second normal and the refracted ray according to the emitted ray, the hit point and the refractive index of the hit object.
3. The method of claim 2, wherein the step of obtaining the first light further comprises:
and aiming at each emission light ray, sequentially connecting the camera viewpoint coordinates, the projection screen coordinates corresponding to the emission light ray, the hit point coordinates and the first normal and/or the second normal corresponding to the hit point to obtain the first light ray.
4. The method of claim 1, wherein the ray tracing algorithm is adapted according to the displayed target ray.
5. A light display device, comprising:
The position acquisition module is used for acquiring the viewpoint position of the camera and the projection screen position of the three-dimensional object;
a coordinate system construction module for constructing a three-dimensional coordinate system according to the camera viewpoint position and the projection screen position, and determining camera viewpoint coordinates and a plurality of projection screen coordinates in the projection screen position in the three-dimensional coordinate system;
The target light determining module is used for receiving target projection screen coordinates selected by a user from the plurality of projection screen coordinates; determining target light according to the target projection screen coordinates, the camera viewpoint coordinates and the light path diagram; the starting point of the target light is the camera viewpoint coordinate, and the light path diagram is constructed according to the three-dimensional coordinate system, a space scene comprising the three-dimensional object and a ray tracing algorithm;
the display module is used for displaying the target light to the user;
the light ray display device further comprises a light path diagram construction module for:
Respectively connecting the plurality of projection screen coordinates with the camera viewpoint coordinates as a starting point to determine a plurality of emitted light rays;
Respectively extending the plurality of emitted light rays into the space scene, determining at least one hit point when the emitted light rays hit the three-dimensional object according to the light ray tracing algorithm, and determining corresponding hit point coordinates of the at least one hit point in the three-dimensional coordinate system;
For each emitted light ray, connecting the camera viewpoint coordinates, projection screen coordinates corresponding to the emitted light ray and the hit point coordinates to obtain a first light ray, and constructing the light path diagram according to the first light rays corresponding to the projection screen coordinates;
The extending the plurality of emitted light rays into the space scene respectively, determining at least one hit point when the emitted light rays hit the three-dimensional object according to the ray tracing algorithm, further includes:
Determining the hit points of the emitted light and the three-dimensional object by taking the emitted light as the input of a ray tracing algorithm, and determining reflected light and/or refracted light according to the emitted light and the hit points of the emitted light and the three-dimensional object;
and extending the reflected light and the refracted light, and determining the corresponding hit points when the reflected light and the refracted light hit the three-dimensional object until reaching the recursion depth threshold corresponding to the ray tracing algorithm.
6. An electronic device, comprising:
one or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
7. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-4.
CN202110424924.4A 2021-04-20 2021-04-20 Light ray display method and device Active CN112967369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110424924.4A CN112967369B (en) 2021-04-20 2021-04-20 Light ray display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110424924.4A CN112967369B (en) 2021-04-20 2021-04-20 Light ray display method and device

Publications (2)

Publication Number Publication Date
CN112967369A CN112967369A (en) 2021-06-15
CN112967369B true CN112967369B (en) 2024-06-25

Family

ID=76280929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110424924.4A Active CN112967369B (en) 2021-04-20 2021-04-20 Light ray display method and device

Country Status (1)

Country Link
CN (1) CN112967369B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116681814B (en) * 2022-09-19 2024-05-24 荣耀终端有限公司 Image rendering method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112206517A (en) * 2020-10-22 2021-01-12 网易(杭州)网络有限公司 Rendering method, device, storage medium and computer equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8754829B2 (en) * 2012-08-04 2014-06-17 Paul Lapstun Scanning light field camera and display
CN107665501A (en) * 2016-07-29 2018-02-06 北京大学 A kind of Real time changing focus ray tracing rendering engine
US10360720B1 (en) * 2018-02-22 2019-07-23 Microsoft Technology Licensing, Llc Hybrid raytracing approach for modeling light reflection
WO2019224804A1 (en) * 2018-05-21 2019-11-28 Adshir Ltd. Fast generation of ray traced reflections of virtual objects in real world environment
CN111127620B (en) * 2019-12-27 2024-02-09 芯瞳半导体技术(山东)有限公司 Method, device and computer storage medium for generating hemispherical domain sampling mode
CN111161391B (en) * 2020-04-02 2020-06-30 南京芯瞳半导体技术有限公司 Method and device for generating tracking path and computer storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112206517A (en) * 2020-10-22 2021-01-12 网易(杭州)网络有限公司 Rendering method, device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN112967369A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
KR101072093B1 (en) System and method for photorealistic imaging using ambient occlusion
CN111654746B (en) Video frame insertion method and device, electronic equipment and storage medium
AU2014235416B2 (en) Real world analytics visualization
CN111260766A (en) Virtual light source processing method, device, medium and electronic equipment
CN108882025B (en) Video frame processing method and device
CN111915712B (en) Illumination rendering method and device, computer readable medium and electronic equipment
CN114792355B (en) Virtual image generation method and device, electronic equipment and storage medium
KR20220161233A (en) Method for generating virtual characters, device for generating virtual characters, electronic equipment, storage medium, and computer program
CN113838184A (en) Rendering method, device and system
CN112967369B (en) Light ray display method and device
CN113379885A (en) Virtual hair processing method and device, readable storage medium and electronic equipment
JP2015114775A (en) Image processor and image processing method
WO2024088141A1 (en) Special-effect processing method and apparatus, electronic device, and storage medium
CN114266937A (en) Model training method, image processing method, device, equipment and storage medium
CN108874141B (en) Somatosensory browsing method and device
CN113327311A (en) Virtual character based display method, device, equipment and storage medium
CN114820908B (en) Virtual image generation method and device, electronic equipment and storage medium
CN111145358A (en) Image processing method, device and hardware device
US20230078041A1 (en) Method of displaying animation, electronic device and storage medium
CN116563505B (en) Avatar generation method, apparatus, electronic device, and storage medium
CN115239869B (en) Shadow processing method, shadow rendering method and device
CN110620805B (en) Method and apparatus for generating information
CN116168146A (en) Virtual information display method, device, electronic equipment and computer readable medium
CN117252976A (en) Model rendering order determining method and device, electronic equipment and storage medium
CN114972469A (en) Method and device for generating depth map, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant