Image display method and device

文档序号:537478 发布日期:2021-06-01 浏览:12次 中文

阅读说明:本技术 图像显示方法和装置 (Image display method and device ) 是由 范海军 于 2021-01-11 设计创作,主要内容包括:本发明涉及图像显示方法和装置,所述方法包括:创建环境基类,其中,所述环境基类至少包括控制3D图像的显示效果渐变的功能;通过状态机调用所述环境基类应用于第一3D图像和第二3D图像;其中,所述环境基类用于控制所述第一3D图像的显示效果逐渐降低,以及控制所述第二3D图像的显示效果逐渐提高。根据本公开,通过状态机将环境基类分别应用于第一3D图像和第二3D图像,从而实现在第一3D图像和第二3D图像之间切换。环境基类控制显示效果变化是渐变的,在切换过程中能够显示第一环境图像的显示效果逐渐降低的过程,以及显示第二3D图像的显示效果逐渐提高的过程,因此切换过程中的显示效果并不突兀,用户观看效果较好。(The invention relates to an image display method and device, the method comprises the following steps: creating an environment base class, wherein the environment base class at least comprises a function of controlling gradual change of a display effect of the 3D image; calling the environment base class through a state machine to be applied to the first 3D image and the second 3D image; the environment base class is used for controlling the display effect of the first 3D image to be gradually reduced and controlling the display effect of the second 3D image to be gradually improved. According to the present disclosure, the environment base class is applied to the first 3D image and the second 3D image by the state machine, respectively, thereby enabling switching between the first 3D image and the second 3D image. The change of the display effect is gradually controlled by the environment base class, the process that the display effect of the first environment image is gradually reduced and the process that the display effect of the second 3D image is gradually improved can be displayed in the switching process, so that the display effect in the switching process is not abrupt, and the watching effect of a user is better.)

1. An image display method, comprising:

creating an environment base class, wherein the environment base class at least comprises a function of controlling gradual change of a display effect of the 3D image;

calling the environment base class through a state machine to be applied to the first 3D image and the second 3D image;

the environment base class is used for controlling the display effect of the first 3D image to be gradually reduced and controlling the display effect of the second 3D image to be gradually improved.

2. The method of claim 1, further comprising:

creating a first environment class of the first 3D image and creating a second environment class of the second 3D environment, wherein the first environment class and the second environment class inherit the environment base class;

wherein the calling, by the state machine, the environment base class to be applied to the first 3D image and the second 3D image includes:

calling, by the state machine, the first environment class to apply to the first 3D image and calling, by the state machine, the second environment class to apply to the second 3D image;

the first environment class is used for controlling the display effect of the first 3D image to be gradually reduced, and the second environment class is used for controlling the display effect of the second 3D image to be gradually reduced.

3. The method according to claim 2, wherein the environment base class further includes a function of controlling a display angle of the 3D image to be gradually changed, wherein the first environment base class is further configured to control a display angle of the first 3D image to be gradually changed from a first angle to a second angle, and wherein the second environment base class is configured to control a display angle of the second 3D image to be gradually changed from the first angle to the second angle.

4. The method of claim 1, wherein the environmental base class, when invoked by the state machine, invokes an effects processing component management class;

the effect processing component management class is hung on root nodes of the first 3D image and the second 3D image, when the effect processing component management class is called, the effect processing component management class is hung on grids of the first 3D image and the second 3D image, and the effect processing component is used for adjusting material balls corresponding to the grids so as to control gradual change of display effects of the first 3D image and the second 3D image.

5. The method of claim 4, wherein the effects processing component is further configured to generate an interspersing animation to display a process that controls the gradual change of the display effects of the first 3D image and the second 3D image.

6. The method according to any one of claims 1 to 5, further comprising:

and according to the received first instruction, pausing the control of the environment base class on the display effect of the first 3D image and/or pausing the control of the environment base class on the display effect of the second 3D image.

7. The method according to any one of claims 1 to 5, further comprising:

and according to the received second instruction, adjusting the speed of controlling the display effect of the environment base class on the first 3D image, and/or adjusting the speed of controlling the display effect of the environment base class on the second 3D image.

8. The method according to any of claims 1 to 5, characterized in that the second 3D image is displayed superimposed on the first 3D image.

9. The method of any of claims 1 to 5, wherein the display effect comprises at least one of:

transparency, shape, size, location.

10. Method according to any of the claims 1 to 5, characterized in that the first 3D environment image and/or the second 3D environment image comprises at least one of:

offices, parking lots, restaurants, shopping centers, and building sales locations.

11. An image display apparatus comprising one or more processors operating individually or in concert to:

creating an environment base class, wherein the environment base class at least comprises a function of controlling gradual change of a display effect of the 3D image;

calling the environment base class through a state machine to be applied to the first 3D image and the second 3D image;

the environment base class is used for controlling the display effect of the first 3D image to be gradually reduced and controlling the display effect of the second 3D image to be gradually improved.

12. The method of claim 11, wherein the processor is further configured to:

creating a first environment class of the first 3D image and creating a second environment class of the second 3D environment, wherein the first environment class and the second environment class inherit the environment base class;

and for:

calling, by the state machine, the first environment class to apply to the first 3D image and calling, by the state machine, the second environment class to apply to the second 3D image;

the first environment class is used for controlling the display effect of the first 3D image to be gradually reduced, and the second environment class is used for controlling the display effect of the second 3D image to be gradually reduced.

13. The method according to claim 12, wherein the environment base class further includes a function of controlling a display angle of the 3D image to be gradually changed, wherein the first environment base class is further configured to control a display angle of the first 3D image to be gradually changed from a first angle to a second angle, and wherein the second environment base class is configured to control a display angle of the second 3D image to be gradually changed from the first angle to the second angle.

14. The method of claim 11, wherein the environment base class, when invoked by the state machine, invokes an effects processing component management class;

the effect processing component management class is hung on root nodes of the first 3D image and the second 3D image, when the effect processing component management class is called, the effect processing component management class is hung on grids of the first 3D image and the second 3D image, and the effect processing component is used for adjusting material balls corresponding to the grids so as to control gradual change of display effects of the first 3D image and the second 3D image.

15. An electronic device, comprising:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to perform the steps of the method of any one of claims 1 to 10.

16. The electronic device according to claim 15, wherein the electronic device is an embedded terminal, and the embedded terminal is disposed in an actual environment where the first 3D image and/or the second 3D image is located.

17. The electronic device according to claim 16, wherein an instruction receiving module is disposed on the embedded terminal and configured to receive an instruction and transmit the received instruction to the processor, and wherein the processor is configured to adjust control of the environment base class over the display effect of the first 3D image and/or adjust control of the environment base class over the display effect of the second 3D image according to the instruction.

18. The electronic device of claim 17, wherein the instructions received by the receiving module comprise at least one of:

touch control instruction, voice instruction, physical key instruction and light control instruction.

19. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 10.

Technical Field

The present invention relates to the field of display technologies, and in particular, to an image display method, an image display apparatus, an electronic device, and a computer-readable storage medium.

Background

At present, for the switching display of a 3D image, an original 3D image is generally required to be set to be black or hidden in the switching process, then a new 3D image is displayed at the position of the original 3D image, the transition between the original 3D image and the new 3D image is not generated in the process, the switching effect is very abrupt, and the watching effect is poor.

Disclosure of Invention

The invention provides an image display method, an image display apparatus, an electronic device, and a computer-readable storage medium to solve the disadvantages of the related art.

According to a first aspect of embodiments of the present disclosure, there is provided an image display method including:

creating an environment base class, wherein the environment base class at least comprises a function of controlling gradual change of a display effect of the 3D image;

calling the environment base class through a state machine to be applied to the first 3D image and the second 3D image;

the environment base class is used for controlling the display effect of the first 3D image to be gradually reduced and controlling the display effect of the second 3D image to be gradually improved.

Optionally, the method further comprises:

creating a first environment class of the first 3D image and creating a second environment class of the second 3D environment, wherein the first environment class and the second environment class inherit the environment base class;

wherein the calling, by the state machine, the environment base class to be applied to the first 3D image and the second 3D image includes:

calling, by the state machine, the first environment class to apply to the first 3D image and calling, by the state machine, the second environment class to apply to the second 3D image;

the first environment class is used for controlling the display effect of the first 3D image to be gradually reduced, and the second environment class is used for controlling the display effect of the second 3D image to be gradually reduced.

Optionally, the environment base class further includes a function of controlling a display angle of the 3D image to gradually change, the first environment base class is further configured to control the display angle of the first 3D image to gradually change from a first angle to a second angle, and the second environment base class is configured to control the display angle of the second 3D image to gradually change from the first angle to the second angle.

Optionally, the environment base class calls an effect processing component management class when called by the state machine;

the effect processing component management class is hung on root nodes of the first 3D image and the second 3D image, when the effect processing component management class is called, the effect processing component management class is hung on grids of the first 3D image and the second 3D image, and the effect processing component is used for adjusting material balls corresponding to the grids so as to control gradual change of display effects of the first 3D image and the second 3D image.

Optionally, the effect processing component is further configured to generate an inter-complement animation to display a process that controls the gradual change of the display effect of the first 3D image and the second 3D image.

Optionally, the method further comprises:

and according to the received first instruction, pausing the control of the environment base class on the display effect of the first 3D image and/or pausing the control of the environment base class on the display effect of the second 3D image.

Optionally, the method further comprises:

and according to the received second instruction, adjusting the speed of controlling the display effect of the environment base class on the first 3D image, and/or adjusting the speed of controlling the display effect of the environment base class on the second 3D image.

Optionally, the second 3D image is displayed superimposed on the first 3D image.

Optionally, the display effect comprises at least one of:

transparency, shape, size, location.

Optionally, the first 3D environment image and/or the second 3D environment image comprises at least one of:

offices, parking lots, restaurants, shopping centers, and building sales locations.

According to a second aspect of embodiments of the present disclosure, there is provided an image display device comprising one or more processors, acting alone or in conjunction, the processors being configured to:

creating an environment base class, wherein the environment base class at least comprises a function of controlling gradual change of a display effect of the 3D image;

calling the environment base class through a state machine to be applied to the first 3D image and the second 3D image;

the environment base class is used for controlling the display effect of the first 3D image to be gradually reduced and controlling the display effect of the second 3D image to be gradually improved.

The processor is further configured to:

creating a first environment class of the first 3D image and creating a second environment class of the second 3D environment, wherein the first environment class and the second environment class inherit the environment base class;

and for:

calling, by the state machine, the first environment class to apply to the first 3D image and calling, by the state machine, the second environment class to apply to the second 3D image;

the first environment class is used for controlling the display effect of the first 3D image to be gradually reduced, and the second environment class is used for controlling the display effect of the second 3D image to be gradually reduced.

Optionally, the environment base class further includes a function of controlling a display angle of the 3D image to gradually change, the first environment base class is further configured to control the display angle of the first 3D image to gradually change from a first angle to a second angle, and the second environment base class is configured to control the display angle of the second 3D image to gradually change from the first angle to the second angle.

Optionally, the environment base class calls an effect processing component management class when called by the state machine;

the effect processing component management class is hung on root nodes of the first 3D image and the second 3D image, when the effect processing component management class is called, the effect processing component management class is hung on grids of the first 3D image and the second 3D image, and the effect processing component is used for adjusting material balls corresponding to the grids so as to control gradual change of display effects of the first 3D image and the second 3D image.

According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to perform the steps of the above method.

Optionally, the electronic device is an embedded terminal, and the embedded terminal is disposed in an actual environment where the first 3D image and/or the second 3D image are located.

Optionally, an instruction receiving module is disposed on the embedded terminal, and configured to receive an instruction and transmit the received instruction to the processor, where the processor is configured to adjust control of the environment base class on the display effect of the first 3D image and/or adjust control of the environment base class on the display effect of the second 3D image according to the instruction.

Optionally, the instruction received by the receiving module includes at least one of:

touch control instruction, voice instruction, physical key instruction and light control instruction.

According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps in the above-described method.

According to the above embodiments, for the first 3D image and the second 3D image, when switching between the two is required, the environment base class may be applied to the first 3D image and the second 3D image respectively through the state machine, so as to realize switching between the first 3D image and the second 3D image.

The change of the display effect is gradually controlled by the environment base class, the process that the display effect of the first environment image is gradually reduced and the process that the display effect of the second 3D image is gradually improved can be displayed in the switching process, so that the display effect in the switching process is not abrupt, and the watching effect of a user is better.

In addition, because the environment base class is created in advance, the function of adjusting the display effect can be applied to all 3D images, different codes do not need to be edited for different 3D images to control the display effect, and the reduction of the code amount is facilitated in the application process.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

FIG. 1 is a schematic flow chart diagram illustrating one type of image display in accordance with an embodiment of the present invention.

Fig. 2 is a schematic flow chart illustrating another image display according to an embodiment of the present invention.

Fig. 3 is a schematic diagram illustrating a correspondence between a state and an environment class according to an embodiment of the present invention.

Fig. 4 is a schematic diagram illustrating an effect processing component management class and an effect processing component according to an embodiment of the present invention.

Fig. 5 is a schematic diagram illustrating a handover procedure according to an embodiment of the present invention.

FIG. 6 is a schematic flow chart diagram illustrating yet another image display in accordance with an embodiment of the present invention.

FIG. 7 is a schematic flow chart diagram illustrating yet another image display in accordance with an embodiment of the present invention.

Fig. 8A to 8D are schematic diagrams illustrating a handover procedure according to an embodiment of the present invention.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.

FIG. 1 is a schematic flow chart diagram illustrating one type of image display in accordance with an embodiment of the present invention. The image display method can be applied to electronic devices, including but not limited to mobile terminals, such as mobile phones, tablet computers, wearable devices, embedded terminals, such as query devices, navigation devices, and the like, and servers.

As shown in fig. 1, the image display method may include the steps of:

in step S101, creating an environment base class, wherein the environment base class at least includes a function of controlling a display effect of the 3D image to be gradually changed;

in step S102, calling, by a state machine, the environment base class to be applied to the first 3D image and the second 3D image;

the environment base class is used for controlling the display effect of the first 3D image to be gradually reduced and controlling the display effect of the second 3D image to be gradually improved.

In one embodiment, the display effect includes at least one of:

transparency, shape, size, location.

In one embodiment, the first 3D environment image and/or the second 3D environment image may be a 3D image of an environment within a building, the building comprising at least one of:

offices, parking lots, restaurants, shopping centers, and building sales locations.

In one embodiment, the second 3D image may be displayed superimposed on the first 3D image.

In one embodiment, a state machine may be set and an environment base class may be created, where the environment base class may include an algorithm for adjusting the 3D image, and the algorithm may have two implementation manners, one is to gradually reduce the display effect of the 3D image, and the other is to gradually increase the display effect of the 3D image. The state machine may apply the environment base class to the 3D image for which the display effect needs to be adjusted.

Furthermore, for the first 3D image and the second 3D image, when switching between the two is required, the environment base class may be applied to the first 3D image and the second 3D image respectively through the state machine, so as to realize switching between the first 3D image and the second 3D image.

The change of the display effect is gradually controlled by the environment base class, the process that the display effect of the first environment image is gradually reduced and the process that the display effect of the second 3D image is gradually improved can be displayed in the switching process, so that the display effect in the switching process is not abrupt, and the watching effect of a user is better.

In addition, because the environment base class is created in advance, the function of adjusting the display effect can be applied to all 3D images, different codes do not need to be edited for different 3D images to control the display effect, and the reduction of the code amount is facilitated in the application process.

It should be noted that whether the environment base class control display effect gradually decreases or the control display effect gradually increases may be determined according to the image of the selected 3D image, for example, the environment base class control display effect gradually decreases for a previously selected 3D image and the environment base class control display effect gradually increases for a subsequently selected 3D image.

Fig. 2 is a schematic flow chart illustrating another image display according to an embodiment of the present invention. As shown in fig. 2, the method further comprises:

in step S201, creating a first environment class of the first 3D image and creating a second environment class of the second 3D environment, wherein the first environment class and the second environment class inherit the environment base class; for example, step S201 may be performed after step S101;

wherein the calling, by the state machine, the environment base class to be applied to the first 3D image and the second 3D image includes:

in step S202, the first environment class is called by the state machine to be applied to the first 3D image, and the second environment class is called by the state machine to be applied to the second 3D image;

the first environment class is used for controlling the display effect of the first 3D image to be gradually reduced, and the second environment class is used for controlling the display effect of the second 3D image to be gradually reduced.

In one embodiment, for different 3D images, the environment base class can be adjusted as needed to form an environment class corresponding to the 3D image, so as to improve the adjustment effect on the environment class specific 3D image.

For example, a first environment class may be created for the first 3D image, a second environment class may be created for the second 3D environment, and the first environment class and the second environment class inherit the environment base class, that is, in order to obtain the first environment class and the second environment class, a large amount of change codes are not required, and only adjustment is required to be performed on the basis of the codes corresponding to the environment base class.

For example, the display effect type in the environment type may be adjusted, the transparency gradual change of the object in the 3D image may be controlled for the first environment type, and the shape gradual change of the object in the 3D image, such as the melting effect, may be controlled for the second environment type, so that the adjustment of the display effect of the environment type to different 3D images may be satisfied.

Fig. 3 is a schematic diagram illustrating a correspondence between a state and an environment class according to an embodiment of the present invention.

In one embodiment, as shown in fig. 3, for a state machine, different 3D image corresponding states may be created therein, the different states correspond to different environment classes, for example, state 1 corresponds to a first environment class, state 2 corresponds to a second environment class, and the states corresponding to the 3D images that the user needs to switch, for example, state 1 and state 2, may be determined according to the input of the user, so that the first environment class may be invoked through state 1 to be applied to the first 3D image, the second environment class may be invoked through state 2 to be applied to the second 3D image, thereby controlling the display effect of the first 3D image to gradually decrease, and controlling the display effect of the second 3D image to gradually decrease.

Optionally, the environment base class further includes a function of controlling a display angle of the 3D image to gradually change, the first environment base class is further configured to control the display angle of the first 3D image to gradually change from a first angle to a second angle, and the second environment base class is configured to control the display angle of the second 3D image to gradually change from the first angle to the second angle.

In one embodiment, the environment class may adjust a display angle of the 3D image in addition to a display effect of the 3D image, thereby facilitating a user to view the changing 3D image from a desired angle.

Fig. 4 is a schematic diagram illustrating an effect processing component management class and an effect processing component according to an embodiment of the present invention.

In one embodiment, as shown in FIG. 4, the environment base class, when called by the state machine, calls an effects processing component management class;

the effect processing component management class is hung on root nodes of the first 3D image and the second 3D image, when the effect processing component management class is called, the effect processing component management class is hung on grids of the first 3D image and the second 3D image, and the effect processing component is used for adjusting material balls corresponding to the grids so as to control gradual change of display effects of the first 3D image and the second 3D image.

In an embodiment, an effect processing component and an effect processing component management class may be created in advance, the effect processing component may include a specific algorithm for adjusting a display effect, and there may be one or more effect processing components, and an interface for external invocation is provided in the effect processing component management class, so that the environment base class can be invoked.

The effect processing component management class can be hung on the root nodes of the first 3D image and the second 3D image in advance for all the 3D images, when the environment base class is called by the state machine, the effect processing component management class can be called, because the effect processing component management class is hung on the root nodes of the first 3D image and the second 3D image, when the effect processing component management class is called, the effect processing component can be hung on grids of the first 3D image and the second 3D image, and then the effect processing component can adjust material balls corresponding to the grids so as to control gradual change of display effects of the first 3D image and the second 3D image.

Therefore, the code for specifically adjusting the display effect can be set in the effect processing component instead of the code for specifically adjusting the display effect in the environment base class, so that when the environment base class is called, quick calling can be realized due to the small code amount, the fruit processing component management class is hung on the root node of the 3D image in advance, complex processing does not need to be carried out on the fruit processing component management class in the calling process, and the switching speed is favorably improved.

It should be noted that "hanging" described in the embodiments of the present disclosure may be understood as binding, for example, hanging the effect processing component management class on the root node means binding the effect processing component management class on the root node, and when the effect processing component management class is run, nodes on all branches below the root node, that is, grids, may be traversed, and then hanging the effect processing component on the grids, that is, binding the effect processing component on the grids, so that the function of the effect processing component may be applied to the grids, specifically, to the material balls of the grids, thereby implementing adjustment of parameters in the material balls by the effect processing component to control gradual change of the display effect of the 3D model corresponding to the grids, and further making the entire 3D image gradually change.

In an embodiment, for the 3D images related in all embodiments of the present disclosure, the 3D images may be created by Unity software, the 3D images may include a plurality of 3D objects, each object is composed of a mesh and a material ball (which may also be understood as a shader) and the material ball corresponding to each mesh may be adjusted by hanging the effect processing component on each mesh, thereby adjusting the display effect of each object in the 3D images.

In one embodiment, an environment base class, a first environment class, a second environment class, a state machine, an effects processing component management class, an effects processing component, a complementary animation, etc., may be created in the Unity software.

When the method is applied to the electronic device, different versions can be made by using scenes according to specific needs, for example, the electronic device is a mobile phone, a mobile phone application version can be made for Unity software for realizing the method, for example, the electronic device is a computer, and a webpage version can be made for Unity software for realizing the method.

Fig. 5 is a schematic diagram illustrating a handover procedure according to an embodiment of the present invention.

As shown in fig. 5, for example, on the basis of the embodiments shown in fig. 3 and 4, if the user selects the state 1 as the start and the state 2 as the end by inputting a switching instruction, it may be determined that the switching action is to be switched from the first 3D image to the second 3D image.

The first environment class can be called through the state 1, the first environment class calls an effect processing component management class, the effect processing component management class hangs the effect processing component on the grid of the first 3D image, and then the effect processing component adjusts the material ball corresponding to the grid to control the gradual change of the display effect of the first 3D image, for example, the parameter corresponding to the transparency in the material ball is adjusted from 1 to 0, so that the first 3D image is gradually transparent.

And calling a second environment class through the state 2, calling an effect processing component management class by the second environment class, hanging the effect processing component on the grid of the second 3D image by the effect processing component management class, and further adjusting the material ball corresponding to the grid by the effect processing component to control the gradual change of the display effect of the second 3D image, for example, adjusting the parameter corresponding to the transparency in the material ball from 0 to 1, so that the second 3D image is gradually displayed.

In addition, the functions of the effect processing component can be expanded, for example, in addition to adjusting the display effect, the adjusting speed, the scaling and the like can be set.

Optionally, the effect processing component is further configured to generate a complementary (do tween) animation to display a process that controls the display effect fade of the first 3D image and the second 3D image.

FIG. 6 is a schematic flow chart diagram illustrating yet another image display in accordance with an embodiment of the present invention. As shown in fig. 6, the method further comprises:

in step S601, according to the received first instruction, control of the environment base class on the display effect of the first 3D image is suspended, and/or control of the environment base class on the display effect of the second 3D image is suspended. For example, step S601 may be performed during the execution of step S102.

In one embodiment, during the process of switching the first 3D image to the second 3D image, the user may input a first instruction to pause the switching process, and since the first 3D image may be displayed to be overlapped while being switched to the second 3D image, the user may pause during the switching process, so that the user views an effect of the overlapped display of the first 3D image and the second 3D image.

For example, the display effect includes transparency, and then pause in the switching process, and the user can conveniently watch the blocked object in the first 3D image because the transparency of the object in the first 3D image is gradually reduced.

FIG. 7 is a schematic flow chart diagram illustrating yet another image display in accordance with an embodiment of the present invention. As shown in fig. 7, the method further comprises:

in step S701, according to the received second instruction, a speed of controlling a display effect of the environment base class on the first 3D image is adjusted, and/or a speed of controlling a display effect of the environment base class on the second 3D image is adjusted. For example, step S701 may be performed during or after step S102 is performed.

In one embodiment, during the process of switching the first 3D image to the second 3D image, the user may input a second instruction to adjust the switching speed, for example, the speed may be increased to complete the switching as soon as possible, for example, the speed may be decreased to allow the user to view details during the switching process, and the speed may also be adjusted in the reverse direction, for example, to improve the display effect of the first 3D image and decrease the display effect of the second 3D image.

Fig. 8A to 8D are schematic diagrams illustrating a handover procedure according to an embodiment of the present invention.

In one embodiment, taking transparency as an example of the display effect, the first 3D image corresponds to an office environment and the second 3D image corresponds to a parking lot environment.

In the process of switching from the first 3D image to the second 3D image, the transparency of each 3D object in the office environment may be gradually reduced, and the transparency of each 3D object in the parking lot environment may be gradually increased. In addition, in the process of adjusting the transparency, the display viewing angle can be gradually adjusted, for example, from a top view angle of an office to a head-up view angle of a parking lot.

As can be seen from fig. 8B and 8C, during the switching process, the transparency of the object in the first 3D image gradually decreases, and the transparency of the object in the second 3D image increases, and finally, the first 3D image in fig. 8A completely disappears and appears as the second 3D image in fig. 8D.

In addition to the transparency as the display effect in the above embodiment, the display effect may be a shape, a size, a position, or the like.

For example, the shape may be used as the display effect, and in the process of switching from the first 3D image to the second 3D image, the shape of each 3D object in the office environment may be gradually changed, and the shape of each 3D object in the parking lot environment may be gradually changed, for example, a display effect that each 3D object in the office environment gradually melts, each 3D object in the parking lot environment gradually shapes is achieved, finally, all objects in the first 3D image completely melt and disappear, and all objects in the second 3D image completely form a desired shape, that is, the first 3D image completely disappears and appears as the second 3D image is achieved. Of course, the display viewing angle may also be gradually adjusted in the process.

In addition to the above embodiments, the office and the parking lot may be used as application scenarios, and restaurants, shopping centers, and building venders may also be used as application scenarios.

For example, taking a building selling place as an example, the first 3D image corresponds to the building No. 1, the second 3D image corresponds to the building No. 2, and the house buyer can view the first 3D image on the center line of the screen to know the information about the building No. 1, and can switch from the first 3D image to the second 3D image when needing to know the information about the building No. 2, and can gradually change and reduce the display effect of the first 3D image and gradually provide the display effect of the second 3D image in the switching process until the first 3D image completely disappears and the second 3D image completely appears, so that the house buyer can see the effect that the building No. 1 gradually disappears and the building No. 2 gradually appears.

Because No. 1 building is not disappearance in the twinkling of an eye in the switching process, No. 2 building is also not showing in the twinkling of an eye, and both are the stack demonstration, and the person of buying the house is directly perceivedly observing the difference of No. 1 building and No. 2 building in the switching process to accurately know No. 1 building and No. 2 building difference.

An embodiment of the present disclosure also provides an electronic device, including:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to perform the steps of the method of any of the above embodiments.

Optionally, the electronic device is an embedded terminal, and the embedded terminal is disposed in an actual environment where the first 3D image and/or the second 3D image are located.

In one embodiment, the method is executed on the embedded terminal, so that a user in an actual environment can directly input an instruction on the embedded terminal to control the switching between the first 3D image and the second 3D image, and since the embedded terminal is located in the environment where the 3D image is located, the user can intuitively see the corresponding relationship between the actual environment and the 3D image in the switching process so as to perform actions such as observation, navigation and the like.

In an embodiment, an instruction receiving module is disposed on the embedded terminal and configured to receive an instruction and transmit the received instruction to the processor, where the processor is configured to adjust control of the environment base class on the display effect of the first 3D image and/or adjust control of the environment base class on the display effect of the second 3D image according to the instruction.

In one embodiment, the instructions for receiving by the receiving module include at least one of:

touch control instruction, voice instruction, physical key instruction and light control instruction.

For example, on a screen of the embedded terminal, a plurality of virtual keys corresponding to environments can be displayed, wherein the virtual keys include an office corresponding to the first 3D image and a parking lot corresponding to the second 3D image.

When the screen does not display the 3D image currently, the user clicks the virtual key, and may generate a touch instruction for directly displaying the 3D image of the environment corresponding to the virtual key, for example, when the virtual key in the office is clicked, the first 3D image is displayed.

When the user clicks the virtual key while the 3D image is currently displayed on the screen, a touch instruction for switching from displaying the current 3D image to displaying the 3D image of the environment corresponding to the virtual key, for example, clicking the virtual key of the parking lot, may be generated, and then switching from displaying the first 3D image to displaying the second 3D image, for example, switching according to the effects shown in fig. 8A to 8D.

In one embodiment, the processor is further configured to:

and according to the received first instruction, pausing the control of the environment base class on the display effect of the first 3D image and/or pausing the control of the environment base class on the display effect of the second 3D image.

In one embodiment, the processor is further configured to:

and according to the received second instruction, adjusting the speed of controlling the display effect of the environment base class on the first 3D image, and/or adjusting the speed of controlling the display effect of the environment base class on the second 3D image.

Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to any of the above embodiments.

The present disclosure also proposes an embodiment of an image display apparatus corresponding to the aforementioned embodiment of image display.

An embodiment of the invention provides an image display apparatus comprising one or more processors, acting alone or in conjunction, the processors being configured to:

creating an environment base class, wherein the environment base class at least comprises a function of controlling gradual change of a display effect of the 3D image;

calling the environment base class through a state machine to be applied to the first 3D image and the second 3D image;

the environment base class is used for controlling the display effect of the first 3D image to be gradually reduced and controlling the display effect of the second 3D image to be gradually improved.

In one embodiment, the processor is further configured to:

creating a first environment class of the first 3D image and creating a second environment class of the second 3D environment, wherein the first environment class and the second environment class inherit the environment base class;

and for applying to the first 3D image by the state machine calling the first environment class, and for applying to the second 3D image by the state machine calling the second environment class;

the first environment class is used for controlling the display effect of the first 3D image to be gradually reduced, and the second environment class is used for controlling the display effect of the second 3D image to be gradually reduced.

In one embodiment, the environment base class further includes a function of controlling a display angle of the 3D image to gradually change, the first environment base class is further configured to control a display angle of the first 3D image to gradually change from a first angle to a second angle, and the second environment base class is configured to control a display angle of the second 3D image to gradually change from the first angle to the second angle.

In one embodiment, the environment base class, when called by the state machine, calls an effects processing component management class;

the effect processing component management class is hung on root nodes of the first 3D image and the second 3D image, when the effect processing component management class is called, the effect processing component management class is hung on grids of the first 3D image and the second 3D image, and the effect processing component is used for adjusting material balls corresponding to the grids so as to control gradual change of display effects of the first 3D image and the second 3D image.

In one embodiment, the effect processing component is further configured to generate an interspersing animation to display a process that controls a gradual change in display effect of the first 3D image and the second 3D image.

In one embodiment, the processor is further configured to:

and according to the received first instruction, pausing the control of the environment base class on the display effect of the first 3D image and/or pausing the control of the environment base class on the display effect of the second 3D image.

In one embodiment, the processor is further configured to:

and according to the received second instruction, adjusting the speed of controlling the display effect of the environment base class on the first 3D image, and/or adjusting the speed of controlling the display effect of the environment base class on the second 3D image.

In one embodiment, the second 3D image is displayed superimposed on the first 3D image.

In one embodiment, the display effect includes at least one of:

transparency, shape, size, location.

In an embodiment, the first 3D environment image and/or the second 3D environment image comprises at least one of:

offices, parking lots, restaurants, shopping centers, and building sales locations.

In the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The term "plurality" means two or more unless expressly limited otherwise.

Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:单元透镜和透镜阵列的横向位置误差二维度量方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类