Method and system for adjusting pixel overlap of image in virtual scene, and storage medium
By recording the optimal distance M and adjusting the resolution of image resources in the virtual scene according to the real-time distance m, the problem of poor display effect of image resources at different distances in virtual and real technologies is solved, achieving a clearer display effect and wider applicability.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2026-04-02
AI Technical Summary
In traditional virtual reality technologies, image resources display poorly at different distances, especially at long distances where pixels flicker and become blurry, failing to meet user experience requirements.
The optimal distance M is determined by recording the distance between the camera and the image resource at which the user achieves the best clarity. The resolution of the image resource is then adjusted based on the real-time distance m to ensure clear display at different distances and screen resolutions.
It effectively reduces flickering caused by pixel overlap, improves the display effect of image resources, adapts to display screens of different resolutions, and enhances the user experience.
Smart Images

Figure CN2025094914_02042026_PF_FP_ABST
Abstract
Description
Method, system and storage medium for adjusting picture pixel overlap in virtual scene
[0001] Cross-reference to related disclosures
[0002] The present disclosure claims priority to the Chinese patent application No. 2024113338255, filed on September 24, 2024, and entitled "Method, system and storage medium for adjusting picture pixel overlap in virtual scene", the entire content of which is incorporated herein by reference. TECHNICAL FIELD
[0003] The present disclosure relates to the field of virtual and real technology, in particular to a method, system and storage medium for adjusting picture pixel overlap in virtual scene. BACKGROUND
[0004] Virtual and real technology is mainly based on computer technology, which utilizes and integrates three-dimensional graphics technology, multimedia technology, simulation technology, display technology, servo technology and other latest developments of various high-tech technologies to produce a virtual world with realistic three-dimensional vision, touch, smell and other sensory experiences with the help of computers and other devices. Therefore, resource display is the most important technology in virtual and real technology, as users can move in the virtual world when experiencing virtual and real technology, it is necessary to ensure that resources can follow the pace of the user during the rendering process to ensure the user experience.
[0005] However, the traditional resource display is affected by the underlying rendering technology or the device itself, when the distance from the picture resource is far, the size of the picture resource in the entire field of view is small, so the pixels of the picture are compressed during the rendering process, resulting in overlapping between the pixels, which is more serious for high-resolution picture resources, causing pixel flickering, blurred picture and other phenomena, and if the pixel density of the picture does not match the pixel density of the display device, or the display settings are improper (such as anti-aliasing settings, pixel alignment, etc.), it may also cause pixel flickering and other problems, therefore, the traditional picture resource display still has the defects of poor display effect and cannot meet the user experience of virtual and real technology.
[0006] SUMMARY
[0007] The purpose of the present disclosure is to propose a method, system and storage medium for adjusting picture pixel overlap in virtual scene to solve the problem of poor display effect of traditional picture resources, which has the advantages of flexibly adjusting the resolution of picture resources according to the visual distance of the user, reducing the flickering problem caused by pixel overlap, and greatly improving the display effect of picture resources.
[0008] The first aspect, the present disclosure realizes the above-mentioned purpose through the following technical scheme, a method for adjusting picture pixel overlap in a virtual scene, the method comprises the following steps:
[0009] Pre-record the optimal distance M, the recording method is: when recording picture resources in the middle station, record the distance between the user camera and the picture resources as the optimal distance M when the user sees the definition of the picture resources in the virtual scene consistent with the original picture;
[0010] After the user enters the virtual scene, calculate the real-time distance m between the user camera and the picture resources;
[0011] Adjust the resolution of the picture resources according to the size of the real-time distance m and the optimal distance M, and the specific method is as follows:
[0012] If m≤M, the picture resources remain the initial resolution (w, h);
[0013] If m>M, calculate the adjustment ratio N=M / m;
[0014] Calculate the resolution (W, H) of the adjusted picture resources according to the adjustment ratio N, wherein W=w*N and H=h*N;
[0015] Adjust the resolution of the picture resources to (W, H) in the virtual scene.
[0016] Optionally, the method further comprises setting 0.5≤N≤1, if the calculated adjustment ratio N exceeds the range, the picture resources remain the initial resolution (w, h).
[0017] Optionally, the method for calculating the real-time distance m between the user camera and the picture resources is:
[0018] Obtain the center point coordinate O of the picture resources in the virtual scene, and obtain the real-time position coordinate P of the user camera;
[0019] Calculate the distance between the coordinates O and P as the real-time distance m.
[0020] Optionally, the method further comprises:
[0021] Select the resolution (a, b) of the user screen when recording the picture resources in the middle station and recording the optimal distance M as the default screen resolution (a, b);
[0022] Obtain the current screen resolution (A, B) when the user enters the virtual scene;
[0023] Calculate the scaling ratio Z=(A / a+B / b) / 2;
[0024] According to the scaling ratio Z, the optimal distance M' = M / Z under the current screen resolution is calculated.
[0025] Optionally, the method for adjusting the resolution of the picture resource to (W, H) in the virtual scene comprises:
[0026] Backup the picture resource with the initial resolution;
[0027] Compress the resolution of the picture resource with the initial resolution (w, h) to (W, H) to obtain a new picture resource;
[0028] Replace the picture resource with the initial resolution with the new picture resource.
[0029] In a second aspect, the present disclosure achieves the above-mentioned purpose by the following technical solution, a system for adjusting the pixel overlap of a picture in a virtual scene, comprising:
[0030] A standard preset unit configured to pre-record an optimal distance M, the recording method being: when a picture resource is entered in a middle station, recording the distance between a user's camera and the picture resource as the optimal distance M when the definition of the picture resource seen by the user in the virtual scene is consistent with the original picture;
[0031] A distance detection unit configured to calculate the real-time distance m between the user's camera and the picture resource after the user enters the virtual scene;
[0032] A resolution calculation unit configured to adjust the resolution of the picture resource according to the size of the real-time distance m and the optimal distance M, the specific method being as follows:
[0033] If m≤M, the picture resource maintains the initial resolution (w, h);
[0034] If m>M, calculate an adjustment ratio N = M / m;
[0035] According to the adjustment ratio N, calculate the resolution (W, H) of the adjusted picture resource, wherein W = w*N and H = h*N;
[0036] A resolution adjustment unit configured to adjust the resolution of the picture resource to (W, H) in the virtual scene.
[0037] Optionally, the resolution calculation unit comprises setting 0.5≤N≤1, if the calculated adjustment ratio N exceeds this range, the picture resource maintains the initial resolution (w, h).
[0038] Optionally, the system further comprises:
[0039] Select the resolution (a, b) of the user's screen when the picture resource is entered in the middle station and the optimal distance M is recorded as the default screen resolution.
[0040] Obtaining the current screen resolution (A, B) when the user enters the virtual scene;
[0041] Calculating the scaling ratio Z = (A / a + B / b) / 2;
[0042] According to the scaling ratio Z, the optimal distance M' = M / Z under the current screen resolution is calculated.
[0043] Optionally, the method for adjusting the resolution of the picture resource to (W, H) in the virtual scene in the resolution calculation unit is:
[0044] Backup the picture resource of the initial resolution;
[0045] Compress the resolution of the picture resource of the initial resolution (w, h) to (W, H) to obtain a new picture resource;
[0046] Replace the picture resource of the initial resolution with the new picture resource.
[0047] In a third aspect, the present disclosure achieves the above-mentioned purpose by the following technical solution, a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for adjusting the pixel overlap of a picture in a virtual scene according to the first aspect.
[0048] Compared with the prior art, the present disclosure has the beneficial effects that: the present disclosure uses the distance between the user's camera and the picture resource when the user watches the clearest picture as the optimal distance, so in the virtual scene, as the user moves, the distance between the user's camera and the picture resource changes constantly, and based on the optimal distance, the resolution of the picture resource is selectively adjusted according to the distance between the user's camera and the picture resource, effectively reducing the problem of flicker caused by pixel overlap of the picture when the user watches the picture resource from a distance due to too large resolution; and different optimal distances are set to meet the use of different resolution display screens, the application range is wider, and the user experience is guaranteed. BRIEF DESCRIPTION OF DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be considered as a limitation on the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0050] Fig. 1 is a flow chart of the method for adjusting the pixel overlap of a picture in a virtual scene according to the present disclosure.
[0051] FIG. 2 is a schematic diagram of a system for adjusting pixel overlap of a picture in a virtual scene according to the present disclosure. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present disclosure.
[0053] In an implementable manner, as shown in FIG. 1, a method for adjusting pixel overlap of a picture in a virtual scene includes the following steps:
[0054] In step S1, the optimal distance M is recorded in advance. The recording method is as follows: when a picture resource is configured in a virtual scene, the distance between the camera of a user and the picture resource is recorded as the optimal distance M when the resolution of the picture resource seen by the user in the virtual scene is consistent with the original picture. The pre-recording here is performed when the picture resource is configured in the scene, and the picture resource is configured in the middle station. The picture resource is deleted, replaced, and added in the middle station, and is not bound to the virtual scene. This is to facilitate the use of resources. The specific recording method is as follows: a user first enters a virtual scene, and a virtual character is generated in the virtual scene. The user transmits a picture through a user camera, and the picture is displayed on a screen, realizing picture display of the virtual scene. The position of the virtual character is bound to the user camera. The user controls the virtual character to move, and the user camera follows the movement. The picture is converted during the movement. The position distance between the virtual character and the picture resource is adjusted. The user can see the display resolution of the picture resource. When the display resolution is most appropriate, the distance between the user camera and the picture resource at this time is recorded by the background as the optimal distance M. The optimal distance M is used as a reference for subsequent picture resource resolution adjustment.
[0055] Step S2, after the user enters the virtual scene, the real-time distance m between the user camera and the picture resource is calculated. In step S1, the operation when the user records the best distance M in advance, this user can be the administrator or the developer who builds the virtual scene, the picture resource in the middle station cannot be modified by other users, and in step S2, the user is all users who use the virtual scene, the user can control the virtual character to walk in the scene at will after entering the virtual scene, so the distance between the user camera and the picture resource of the user is changed at any time, and the scheme uses the best distance M as a reference for whether the picture resolution needs to be adjusted, so the real-time distance m needs to be recorded. The reason for using distance as a reference for resolution adjustment is that "when the picture with high resolution does not completely cover the field of view picture, the background will automatically compress the resolution of the picture, which will cause pixel overlap and picture flicker and blur, and the distance between the user's character and the picture is used as a reference for whether the picture covers the field of view picture". According to this reason, if the picture resource uses a fixed resolution, the picture will be displayed fuzzy if the resolution is too small, and pixel flicker will occur if the resolution is too large, which will also cause the picture to be displayed fuzzy. Therefore, the scheme discloses a dynamic resolution that adjusts the picture resolution according to the distance between the user camera and the picture resource. The subsequent steps will explain in detail how to adjust.
[0056] Step S3, adjust the resolution of the picture resource according to the size of the real-time distance m and the best distance M, the specific method is as follows:
[0057] If m≤M, the picture resource keeps the initial resolution (w, h); when the distance between the user camera and the picture resource is less than the best distance M, the proportion of the picture resource in the field of view picture is larger at this time, and resolution compression is not needed during rendering, so even if the resolution is larger, it will not affect the final display.
[0058] If m>M, calculate the adjustment ratio N=M / m; when the distance between the user camera and the picture resource exceeds the best distance M, the proportion of the picture resource in the field of view picture is smaller at this time, and there is a case of compressing the picture resolution during rendering, so the resolution of the picture resource needs to be adjusted at this distance, and the adjustment method is to reduce the resolution of the picture resource, so that the pixel overlap does not occur when the resolution is low during rendering, thereby reducing the picture flicker. In this step, we need to calculate the resolution adjustment ratio, which is determined according to the ratio between the current distance between the user camera and the picture resource and the best distance M. After many tests, we can get that the distance and the resolution change in a linear relationship, so the adjustment ratio N is selected to adjust the resolution of the picture resource.
[0059] According to the adjustment ratio N, the resolution (W, H) of the adjusted picture resource is calculated, wherein W=w*N and H=h*N; according to the above step, it can be obtained that the value of the adjustment ratio is reduced as the distance between the user camera and the picture resource becomes larger, and therefore, by multiplying the values of the resolution w and h with the adjustment ratio N, the reduced resolution (W, H) can be obtained.
[0060] In step S4, the resolution of the picture resource in the virtual scene is adjusted to (W, H). By using the picture resolution adjustment technology provided by the virtual scene, the resolution of the picture resource is adjusted to (W, H), so as to solve the picture flickering problem.
[0061] According to the above, when the distance between the user camera and the picture resource changes, it is necessary to adjust the resolution of the picture resource to ensure that the appropriate resolution can display the picture content as clearly as possible. However, such distance change does not need to be adjusted every time, for example, as mentioned above, when the distance is less than the optimal distance M, no change is made, and when the distance exceeds the optimal distance M, the resolution needs to be reduced. However, if the distance exceeds too much, the proportion of the picture resource in the field of view picture also becomes very small, so even if the resolution is adjusted, the picture content cannot be clearly seen. Therefore, the method further includes setting 0.5≤N≤1, and if the calculated adjustment ratio N exceeds the range, the picture resource maintains the initial resolution (w, h). By limiting the size of the adjustment ratio N, it is selected whether to adjust the resolution online, so as to avoid the waste of resources caused by adjusting the resolution when the distance is too far.
[0062] The method for calculating the real-time distance m between the user camera and the picture resource is as follows:
[0063] The center point coordinate O of the picture resource in the virtual scene is obtained, and the real-time position coordinate P of the user camera is obtained.
[0064] The distance between the coordinates O and P is calculated as the real-time distance m. The calculation of the real-time distance m belongs to the commonly used distance calculation method in the virtual scene, and therefore, the principle is not described in detail.
[0065] The above-mentioned methods are performed under the condition that the screen resolution is consistent. When the method is actually used, the following problems may occur: when the administrator uploads the picture resource and determines the optimal distance M, the screen resolution of the device used is 1920*1080. However, when the user uses it, the screen resolution may not be this specification. As mentioned above, the resolution of the device itself also affects the picture clarity, and therefore, different adjustment methods need to be selected for different device resolutions. The method further includes:
[0066] The resolution of the user screen when the optimal distance M is recorded for the first time is selected as the default screen resolution (a, b), and the screen resolution of the device used by the administrator when recording the optimal distance M is also recorded as a reference.
[0067] The current screen resolution (A, B) when the user enters the virtual scene is obtained; this screen resolution is the resolution of the device used by the user using the virtual scene, which may be the same as the default screen resolution or different, which is determined according to the user's situation.
[0068] The scaling ratio Z = (A / a + B / b) / 2 is calculated; whether the default screen resolution and the current screen resolution are the same or not, the scaling ratio needs to be calculated, and if they are the same, the value of the calculated scaling ratio is 1, so in fact no scaling is needed, but if they are different, the scaling ratio Z with a value other than 1 is obtained.
[0069] The optimal distance M' = M / Z under the current screen resolution is calculated according to the scaling ratio Z, and the optimal distance is adjusted using the scaling ratio Z calculated above, because different screen resolutions have different image resource clarity at the same position, so the value of the optimal distance M needs to be changed, and under the current screen, the user standing at the optimal distance M sees the image resource at the most appropriate clarity.
[0070] Since the present scheme adopts an online adjustment of the image resolution, in order not to affect the resources uploaded by the administrator in the middle station, the method for adjusting the resolution of the image resource to (W, H) in the virtual scene is:
[0071] Backup the image resource of the initial resolution, and this backup image resource is used for adjustment and does not affect the resources uploaded in the middle station, so no matter how the distance between the user's camera and the image resource changes, the backup image resource is always used for calculation.
[0072] The resolution of the image resource of the initial resolution (w, h) is compressed to (W, H) to obtain a new image resource;
[0073] The new image resource replaces the image resource of the initial resolution.
[0074] In another implementation manner, as shown in FIG. 2, a system for adjusting the pixel overlap of an image in a virtual scene includes:
[0075] A standard preset unit is configured to record the optimal distance M in advance, and the recording method is: when the image resource is recorded in the middle station, the distance between the user's camera and the image resource when the user sees the image resource in the virtual scene with the same clarity as the original image is recorded as the optimal distance M.
[0076] The distance detection unit is configured to calculate the real-time distance m between the user camera and the picture resource after the user enters the virtual scene. The method for calculating the real-time distance m between the user camera and the picture resource is as follows:
[0077] The center point coordinate O of the picture resource in the virtual scene is obtained, and the real-time position coordinate P of the user camera is obtained.
[0078] The distance between the coordinate O and the coordinate P is calculated as the real-time distance m.
[0079] The resolution calculation unit is configured to adjust the resolution of the picture resource according to the size of the real-time distance m and the optimal distance M. The specific method is as follows:
[0080] If m≤M, the picture resource maintains the initial resolution (w, h);
[0081] If m>M, the adjustment ratio N=M / m is calculated.
[0082] The resolution (W, H) of the adjusted picture resource is calculated according to the adjustment ratio N, where W=w*N and H=h*N.
[0083] The resolution adjustment unit is configured to adjust the resolution of the picture resource to (W, H) in the virtual scene.
[0084] The resolution calculation unit includes setting 0.5≤N≤1. If the calculated adjustment ratio N exceeds this range, the picture resource maintains the initial resolution (w, h).
[0085] The system further includes:
[0086] The resolution of the user screen when the picture resource is entered in the middle station and the optimal distance M is recorded as the default screen resolution (a, b);
[0087] The current screen resolution (A, B) when the user enters the virtual scene is obtained.
[0088] The scaling ratio Z=(A / a+B / b) / 2 is calculated.
[0089] The optimal distance M' =M / Z under the current screen resolution is calculated according to the scaling ratio Z.
[0090] The method for adjusting the resolution of the picture resource to (W, H) in the virtual scene in the resolution calculation unit is as follows:
[0091] The picture resource of the initial resolution is backed up;
[0092] The resolution of the picture resource of the initial resolution (w, h) is compressed to (W, H) to obtain a new picture resource.
[0093] Replace the picture resource of the initial resolution with the new picture resource.
[0094] The two implementations are essentially the same, and thus the specific working principles of the various units will not be described again.
[0095] The embodiment provides a storage medium, which comprises a storage program area and a storage data area. The storage program area can store an operating system and programs required for running instant messaging functions, etc. The storage data area can store various instant messaging information and operation instruction sets, etc. A computer program is stored in the storage program area. When the computer program is executed by a processor, the method for adjusting pixel overlap of pictures in a virtual scene in the embodiment 1 is implemented. The processor can comprise one or more central processing units or digital processing units, etc.
[0096] It is apparent for those skilled in the art that the present disclosure is not limited to the details of the foregoing exemplary embodiments, and the present disclosure can be implemented in other concrete forms without departing from the spirit or essential characteristics of the present disclosure. Therefore, the embodiments should be considered in all aspects as exemplary and non-restrictive, and the scope of the present disclosure is defined by the appended claims rather than the foregoing description, and it is intended to encompass all changes falling within the meaning and range of equivalents of the elements of the claims. Therefore, the present disclosure is not limited to the above-described embodiments, and various modifications and changes can be made thereto without departing from the spirit and scope of the present disclosure.
[0097] In addition, it should be understood that although the present specification is described in terms of embodiments, not every embodiment contains only one independent technical solution, and the description of the specification is only for the sake of clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can be combined appropriately to form other embodiments that those skilled in the art can understand. Industrial applicability
[0098] With the above scheme, the problem of flicker caused by pixel overlap of pictures when a user watches picture resources from a long distance due to excessively large resolution can be effectively reduced. In addition, different optimal distances are set to meet the use of display screens of different resolutions, the application range is wider, and the experience of users is ensured.
Claims
1. A method for adjusting pixel overlap in images within a virtual scene, characterized in that, The method comprises the following steps: Pre-recording the optimal distance M, the recording method being: when a picture resource is recorded in a middle station, recording the distance between the camera of a user and the picture resource as the optimal distance M when the definition of the picture resource seen by the user in a virtual scene is consistent with the original picture; After the user enters the virtual scene, calculating the real-time distance m between the camera of the user and the picture resource; Adjusting the resolution of the picture resource according to the size of the real-time distance m and the optimal distance M.
2. The method of claim 1, wherein, The adjusting of the resolution of the picture resource according to the size of the real-time distance m and the optimal distance M comprises: If m≤M, the picture resource keeps the initial resolution (w, h); If m>M, calculating the adjustment ratio N=M / m; According to the adjustment ratio N, calculating the resolution (W, H) of the picture resource after adjustment, wherein W=w*N and H=h*N; Adjusting the resolution of the picture resource to (W, H) in the virtual scene.
3. The method of adjusting picture pixel overlap in a virtual scene according to claim 1 or 2, characterized in that, The method further comprises: If the calculated adjustment ratio N exceeds a preset ratio range, the picture resource keeps the initial resolution (w, h); wherein the preset ratio range is 0.5≤N≤1.
4. The method of any of claims 1-3, wherein, The calculation of the real-time distance m between the camera of the user and the picture resource comprises: Obtaining the center point coordinate O of the picture resource in the virtual scene and the real-time position coordinate P of the camera of the user; Calculating the distance between the coordinate O and the coordinate P as the real-time distance m.
5. The method of any of claims 1-4, wherein, The method further comprises: Selecting the resolution of the screen of the user when the picture resource is recorded in the middle station and the optimal distance M is recorded as the default screen resolution (a, b); the default screen resolution is the resolution of the device used by an administrator; Obtaining the current screen resolution (A, B) when the user enters the virtual scene; the current screen resolution is the resolution of the device used by the user using the virtual scene; Calculating the scaling ratio Z=(A / a+B / b) / 2; According to the scaling ratio Z, calculating the optimal distance M' in the current screen resolution M'=M / Z.
6. The method of adjusting picture pixel overlap in a virtual scene according to any one of claims 1-5, wherein, The adjustment of the resolution of the picture resource to (W, H) in the virtual scene comprises: Backing up the picture resource of the initial resolution; Compressing the resolution of the picture resource of the initial resolution (w, h) to (W, H) to obtain a new picture resource; Replacing the picture resource of the initial resolution with the new picture resource.
7. The method of any of claims 1-6, wherein, The pre-recording of the optimal distance M comprises: Pre-recording the optimal distance M when the picture resource is configured in the virtual scene, wherein the picture resource is configured in the middle station.
8. The method for adjusting the pixel overlap of a picture in a virtual scene according to any one of claims 1-7, wherein the distance between the camera of the user and the picture resource is adjusted by the position movement of a virtual character bound to the camera of the user. The system comprises:
9. A system for adjusting picture pixel overlap in a virtual scene, the system comprising: A standard preset unit configured to pre-record the optimal distance M, the recording method being: when a picture resource is recorded in a middle station, recording the distance between the camera of a user and the picture resource as the optimal distance M when the definition of the picture resource seen by the user in a virtual scene is consistent with the original picture; a distance detection unit configured to calculate a real-time distance m between the user camera and the picture resource after the user enters the virtual scene; a resolution calculation unit configured to adjust the resolution of the picture resource according to the real-time distance m and the optimal distance M.
10. The method of adjusting picture pixel overlap in a virtual scene according to claim 9, wherein, The resolution calculation unit is specifically configured to: if m≤M, the picture resource keeps the initial resolution (w, h); if m>M, an adjustment ratio N=M / m is calculated; the resolution (W, H) of the adjusted picture resource is calculated according to the adjustment ratio N, where W=w*N and H=h*N; the resolution of the picture resource in the virtual scene is adjusted to (W, H).
11. The system for adjusting picture pixel overlap in a virtual scene according to claim 9 or 10, wherein, The resolution calculation unit is further configured to: if the calculated adjustment ratio N exceeds a preset ratio range, the picture resource keeps the initial resolution (w, h); where the preset ratio range is 0.5≤N≤1.
12. The system for adjusting picture pixel overlap in a virtual scene according to any one of claims 9-11, wherein, The distance detection unit is specifically configured to: obtain the center point coordinate O of the picture resource in the virtual scene and the real-time position coordinate P of the user camera; calculate the distance between the coordinates O and P as the real-time distance m.
13. The system for adjusting picture pixel overlap in a virtual scene according to any one of claims 9-12, wherein, The resolution calculation unit is further configured to: select the resolution (a, b) of the user screen when the picture resource is entered in the intermediate station and the optimal distance M is recorded as the default screen resolution; the default screen resolution is the resolution of the device used by the administrator; obtain the current screen resolution (A, B) when the user enters the virtual scene; the current screen resolution is the resolution of the device used by the user using the virtual scene; calculate a scaling ratio Z=(A / a+B / b) / 2; calculate the optimal distance M' of the current screen resolution according to the scaling ratio Z, where M'=M / Z.
14. The system for adjusting picture pixel overlap in a virtual scene according to any one of claims 9-13, wherein, The resolution calculation unit is specifically configured to: backup the picture resource of the initial resolution; compress the resolution of the picture resource of the initial resolution (w, h) to (W, H) to obtain a new picture resource; replace the picture resource of the initial resolution with the new picture resource.
15. An electronic device, comprising: comprise: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, when the electronic device is running, the processor and the storage medium communicate through the bus, the processor executes the program instructions to execute the method for adjusting the picture pixel overlap in the virtual scene according to any one of claims 1-8.
16. A storage medium, characterized by a computer program is stored thereon, when the computer program is executed by the processor, the method for adjusting the picture pixel overlap in the virtual scene according to any one of claims 1-8 is realized.
Citation Information
Patent Citations
Virtual scene display method and device, equipment and storage medium
CN112370784A
Method and system for dynamically loading picture resources in virtual scene and storage medium
CN116069435A
Virtual scene rendering method and device, storage medium and electronic equipment
CN118196264A
Projection device and image processing method thereof
CN118612392A
Method and system for adjusting picture pixel overlapping in virtual scene and storage medium
CN118840258A