CN110709891A - Virtual reality scene model establishing method and device, electronic equipment and storage medium - Google Patents

Virtual reality scene model establishing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110709891A
CN110709891A CN201780091700.8A CN201780091700A CN110709891A CN 110709891 A CN110709891 A CN 110709891A CN 201780091700 A CN201780091700 A CN 201780091700A CN 110709891 A CN110709891 A CN 110709891A
Authority
CN
China
Prior art keywords
scene
virtual reality
configuration information
elements
necessary
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.)
Pending
Application number
CN201780091700.8A
Other languages
Chinese (zh)
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.)
Shenzhen Royole Technologies Co Ltd
Original Assignee
Shenzhen Royole Technologies 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 Shenzhen Royole Technologies Co Ltd filed Critical Shenzhen Royole Technologies Co Ltd
Publication of CN110709891A publication Critical patent/CN110709891A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The application provides a virtual reality scene model establishing method, a virtual reality scene model establishing device, electronic equipment and a storage medium, wherein the method comprises the steps of determining scene elements required for establishing a virtual reality scene model; determining necessary configuration information of each scene element; and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element. By the method and the device, the scene elements can be edited secondarily, repairability and maintainability in the later period of the scene elements are improved, resources are saved for storage and calling consumed by the scene elements, and the model building effect is effectively improved.

Description

Virtual reality scene model establishing method and device, electronic equipment and storage medium Technical Field
The present application relates to the field of virtual reality technologies, and in particular, to a method and an apparatus for establishing a virtual reality scene model, an electronic device, and a storage medium.
Background
At present, with the development of virtual reality technology, a large three-dimensional scene in a virtual reality product is a very key element, so that a user can have better immersion. A large three-dimensional scene with a sense of immersion is generally large in space while the scene elements are rich. In the three-dimensional scene developed based on Unity in virtual reality, in the related technology, a three-dimensional tool, such as 3DSMax or Maya, is used for modeling the whole large scene, then a grid model file of the whole large scene is derived, then the model file is directly placed in Unity for displaying, and finally the three-dimensional scene in a virtual reality product is displayed.
In this way, the scene elements in the mesh model file cannot be edited for the second time in Untiy, the modifiability is low, a plurality of scene elements consume more storage and call resources, and when the model elements are rendered, more memory is consumed, and the model building effect is poor.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present application is to provide a method for establishing a virtual reality scene model, which can implement secondary editing of scene elements, improve the repairability and maintainability of the scene elements in the later period, save the storage and calling resources consumed by the scene elements, and effectively improve the model establishing effect.
Another objective of the present application is to provide a virtual reality scene model building apparatus.
Another object of the present application is to provide an electronic device.
It is yet another object of the present application to provide a non-transitory computer readable storage medium.
Another object of the present application is to propose a computer program product.
In order to achieve the above object, a method for establishing a virtual reality scene model provided in an embodiment of the first aspect of the present application includes: determining scene elements necessary for establishing a virtual reality scene model; determining configuration information of each scene element necessary for the scene; and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
In order to achieve the above object, an apparatus for establishing a virtual reality scene model according to an embodiment of a second aspect of the present application includes: the virtual reality scene model building method comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining scene elements required for building a virtual reality scene model; a second determining module for determining the configuration information of each scene element necessary for the scene; and the establishing module is used for establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
In order to achieve the above object, an electronic device according to a third aspect of the present application includes: a housing; a processor; a memory; a circuit board and a power supply circuit; the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: determining scene elements necessary for establishing a virtual reality scene model; determining configuration information of each scene element necessary for the scene; and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
To achieve the above object, a non-transitory computer-readable storage medium is provided in a fourth aspect of the present application, where the storage medium is used to store an application program, and the application program is used to execute the virtual reality scene model building method according to the first aspect of the present application when the application program is executed.
To achieve the above object, a fifth aspect of the present application provides a computer program product, where the computer program product is configured to execute the virtual reality scene model building method according to the first aspect of the present application when running.
According to the method, the device, the electronic equipment, the medium and the computer program product for establishing the virtual reality scene model, the characteristics of the scene elements required for establishing the virtual reality scene are different, namely, the configuration information of the scene elements with the same characteristics is not completely stored in a repeated modeling mode, but the elements with the same characteristics as the scene elements are repeatedly engraved, so that the scene elements can be secondarily edited, the repairability and the maintainability of the scene elements in the later period are improved, the storage calling resources consumed by the scene elements are saved, and the model establishing effect is effectively improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a virtual reality scene model building method according to a first embodiment of the present application;
fig. 2 is a schematic flowchart of a virtual reality scene model building method according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of a virtual reality scene model building method according to a third embodiment of the present application;
fig. 4 is a schematic flowchart of a virtual reality scene model building method according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a virtual reality scene model building apparatus according to a first embodiment of the present application;
fig. 6 is a schematic structural diagram of a virtual reality scene model building apparatus according to a second embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
As shown in the background art, in the related art, the scene elements in the grid model file cannot be edited for the second time in the Untiy, the modifiability is low, a plurality of scene elements consume more storage and call resources, and when the model elements are rendered, more memory is consumed, and the model building effect is poor.
The method comprises the steps of determining scene elements required for establishing a virtual reality scene model; determining configuration information of each scene element necessary for the scene; according to the necessary scene elements and the configuration information of each scene element, a virtual reality scene model is established in the Unity engine, and the determined characteristics of the scene elements required for establishing the virtual reality scene are different from each other, namely, the configuration information of the scene elements with the same characteristics is not completely stored in a repeated modeling way, but is quoted to the elements with the same characteristics as the scene elements, so that the scene elements can be edited for the second time, the repairability and maintainability of the scene elements at the later stage are improved, the storage calling resources consumed by the scene elements are saved, and the model establishing effect is effectively improved.
The embodiment of the application can be applied to electronic equipment. The electronic device is, for example, a Personal Computer (PC), a cloud device or a mobile device, and the mobile device is, for example, a smart phone or a tablet Computer.
The execution main body in the embodiment of the present application may be, for example, a Central Processing Unit (CPU) of the electronic device in terms of hardware, and may be, for example, a service program of a virtual reality scene modeling class in the electronic device in terms of software, which is not limited to this.
Fig. 1 is a schematic flow chart of a virtual reality scene model building method according to a first embodiment of the present application. The method comprises the following steps:
s101: scene elements necessary for establishing a virtual reality scene model are determined.
The method comprises the steps of obtaining the required scene elements for establishing the virtual reality scene model, and analyzing and processing the required information related to the virtual reality scene model to be established. The feature of the scene element is an intrinsic attribute feature, which is used to identify a category to which the element belongs, and the category to which the element belongs may be, for example, a stone, a tree, a bird, or the like.
Specifically, when the demand information is analyzed to obtain that the virtual reality scene model to be established includes a plurality of scene elements with the same intrinsic attribute characteristics, such as a plurality of "stones", a plurality of "trees", or a plurality of "birds", only one of the scene elements is taken as a scene element necessary for establishing the virtual reality scene model. For example, when there are multiple stones, only one "stone" is selected as a necessary scene element.
In another embodiment, if the virtual reality scene model to be created includes a plurality of scene elements with the same intrinsic attribute characteristics, and other characteristics of the scene elements with the same intrinsic attribute characteristics, such as morphological characteristics and position characteristics, are different, one of the scene elements may be further selected as the necessary scene element according to the other characteristics. Accordingly, one or more scene elements may be determined corresponding to scene elements of the same intrinsic attribute characteristics, without limitation.
The determined essential attribute characteristics of the scene elements required for establishing the virtual reality scene are different from each other, namely, the modeling and the storage are not completely repeated for the scene elements with the same essential attribute characteristics, so that the storage and calling resources consumed by the scene elements can be effectively saved.
S102: configuration information of each scene element necessary is determined.
The configuration information is used for marking the position, the size and the rotation angle of the scene element in the virtual reality scene model.
The method and the device can analyze and process the requirement information related to the virtual reality scene model to be established to obtain the configuration information of the scene elements necessary for establishing the virtual reality scene model.
For example, if the necessary scene element is "stone", the configuration information determined by analyzing according to the requirement information is a position, a size, a rotation angle, and the like.
S103: and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
Optionally, in some embodiments, referring to fig. 2, S103 specifically includes:
s201: and arranging the necessary scene elements in the virtual reality scene of the Unity engine according to the configuration information of each necessary scene element.
In the embodiment of the present invention, the necessary scene elements may be arranged in the virtual reality scene of the Unity engine, and the position coordinates, the size, and the rotation angle of the scene element to which the configuration information belongs may be adjusted according to the configuration information corresponding to each necessary scene element in the necessary scene elements, and this step is performed for each necessary scene element to complete the arrangement of the necessary scene elements.
In order to facilitate model rendering of the display screen of the electronic device, a virtual reality scene space coordinate system that is the same as a rendering coordinate system of the display screen of the electronic device during model rendering may be created.
Thus, the configuration information described above may be relative configuration information based on the virtual reality scene spatial coordinate system.
S202: and judging whether the arranged necessary scene elements need to be repeatedly arranged, if so, executing S203, otherwise, executing S206.
The requirement information related to the virtual reality scene model to be established can be analyzed and processed, and whether certain or some of the arranged necessary scene elements need to be repeatedly arranged is determined.
For example, the arranged necessary scene elements include: if the 'stone' scene element and the 'tree' scene element are obtained by analyzing and processing the demand information related to the virtual reality scene model to be established, and the virtual reality scene model to be established also comprises another 'stone' scene element, the 'stone' in the necessary scene elements can be arranged in a batch processing mode.
S203: target scene elements corresponding to the necessary scene elements that need to be repeatedly arranged are generated in the form of references.
When the required scene elements in the required scene elements need to be repeatedly arranged, the scene elements corresponding to the required scene elements needing to be repeatedly arranged can be generated in a reference form, and the scene elements generated in the reference form can be called as target scene elements.
S204: configuration information for each target scene element is determined.
It is understood that the configuration information of the target scene element may be the same as or different from the configuration information of the scene element referred to by the target scene element, according to different requirement information, and is not limited thereto.
S205: the target scene elements are repeatedly arranged in the Unity engine in a batch manner.
The method comprises the steps of analyzing and determining configuration information such as position coordinates, sizes and rotation angles of the multiple-engraving scene elements according to requirements, then, if the number of the target scene elements is at least two, repeatedly arranging each multiple-engraving scene element in a batch processing mode, and if the number of the target scene elements is one, directly re-engraving the scene elements with the same characteristics as the target scene elements.
Because the elements with the same characteristics as the scene elements are repeatedly engraved in a batch processing mode, instead of storing each scene element, the storage and calling resources consumed by the scene elements are saved, and the model building effect is effectively improved.
S206: a virtual reality scene model is created from the virtual reality scene in which each necessary scene element is arranged.
Optionally, in some embodiments, referring to fig. 3, the method may further include:
s301: and generating a configuration table containing the configuration information of each scene element and/or the configuration information of the target scene element, and storing the configuration table.
S302: and receiving an instruction of modifying the configuration information in the configuration table by a user.
S303: and modifying the configuration information in the configuration table according to the instruction to obtain the modified configuration table.
S304: and modifying the configuration information of the scene elements and/or the target scene elements in the virtual reality scene model according to the modified configuration table.
There may be multiple repetitions of the same stone model information in the configuration table, but the three-dimensional position, size, and rotation information may be different. Through the configuration table, the resource amount of one stone model resource can be used, a plurality of stones can be dynamically loaded and copied, and the copied stones are only referenced in Untiy, so that the resource amount cannot be increased, the memory overhead is reduced, and the total size of the grid model file is greatly reduced. And the whole scene can be dynamically loaded through the configuration information, when any element in the scene needs to be changed, the position, the size and the rotation information of the element in the configuration table corresponding to the modelname are only needed to be changed, and the scene dynamic requirement is met.
Meanwhile, due to the existence of the configuration table, all the same scene elements, such as all stones and all trees, can be retrieved, and because the elements are the same scene models used and the same model materials are used, the unit can perform Untiy specific batch processing operation, and through the batch processing operation, the same stones can perform the same batch rendering in the GPU, and the same trees also perform the same batch rendering, so that the drawing times of the whole GPU are reduced, and the heat productivity and the power consumption are reduced.
By adopting a mode of blocking scene elements, a scene is segmented, namely, a whole scene model is not derived, but specific scene elements are derived. Arranged in Unity, and a corresponding configuration table may then be generated by the computer program code, which records all position, rotation and zoom information for each scene element. Due to the fact that the information in the configuration table can be modified, secondary editing of the scene elements can be achieved, the modification and maintainability in the later period of the scene elements are improved, the whole scene can be dynamically changed, the whole interactivity of the scene is improved, resource consumption is reduced, and the operability of the elements in the scene is improved.
Optionally, in some embodiments, referring to fig. 4, the method may further include:
s401: and determining the position information of the user in the virtual reality scene model.
S402: a target range corresponding to the location information is determined.
S403: and dynamically loading and displaying the scene elements in the target range by taking the position marked by the position information as a central point by adopting an interest plane technology.
Further, in the embodiment Of the present application, the scene may also be dynamically loaded by applying an Area Of Interest (AOI) technology, and when the user is located at any position in the scene, all scene elements in the user Interest range may be dynamically loaded according to the position information in the configuration table.
For example, assume that the user's virtual position in the three-dimensional scene is (X)user,Yuser,Zuser) The Radius value of the user interest range is Radius, and the three-dimensional space position of any scene element is (X)object,Yobject,Zobject) By the formula (X)user-Xobject)2+(Yuser-Yobject)2+(Zuser-Zobject)2<Radius2All scene elements meeting the radius of the interest range can be obtained, the scene elements meeting the conditions can be dynamically loaded along with the continuous movement of the three-dimensional position of the user, the scene elements not meeting the conditions can be deleted, only the scenes in the interest range of the user can be loaded in the mode, and the distant scenes cannot be seen by the user at the current position, so that the overall interactivity and immersion cannot be influenced even if the scene elements are not loaded, and therefore the scene elements meeting the condition are further processedThe method effectively reduces the loading capacity of the overall scene, reduces the memory and further reduces the rendering overhead.
In this embodiment, because the determined characteristics of the scene elements required for establishing the virtual reality scene are different from each other, that is, the configuration information of the scene elements with the same characteristics is not all repeatedly modeled and stored, but the elements with the same characteristics as the scene elements are repeatedly engraved, the scene elements can be secondarily edited, the repairability and the maintainability in the later period of the scene elements are improved, the storage and calling resources consumed by the scene elements are saved, and the model establishing effect is effectively improved.
Fig. 5 is a schematic structural diagram of a virtual reality scene model building apparatus according to a first embodiment of the present application.
Referring to fig. 5, the apparatus 500 includes:
a first determining module 501, configured to determine scene elements necessary for building a virtual reality scene model.
A second determining module 502, configured to determine the necessary configuration information of each scene element.
The establishing module 503 is configured to establish a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
Optionally, in some embodiments, referring to fig. 6, the establishing module 503 includes:
an arrangement sub-module 5031 for arranging the necessary scene elements in the virtual reality scene of the Unity engine according to the configuration information of each necessary scene element.
A judging sub-module 5032 for judging whether the arranged necessary scene elements need to be repeatedly arranged.
A generating sub-module 5033, configured to generate, in a form of reference, a target scene element corresponding to the necessary scene element that needs to be repeatedly arranged when the arranged necessary scene element needs to be repeatedly arranged.
A determining sub-module 5034 for determining configuration information of each target scene element.
The arrangement submodule 5031 is further configured to arrange the target scene elements in a batch manner in the Unity engine.
Optionally, in some embodiments, referring to fig. 6, the apparatus 500 further comprises:
a generating module 504, configured to generate a configuration table containing configuration information of each scene element and/or configuration information of a target scene element, and store the configuration table.
And a third determining module 505, configured to determine the position information of the user in the virtual reality scene model.
A fourth determining module 506, configured to determine a target range corresponding to the location information.
And the display module 507 is configured to dynamically load and display the scene elements in the target range by using the position marked by the position information as a central point by using an interest plane technology.
A receiving module 508, configured to receive an instruction for a user to modify the configuration information in the configuration table, and modify the configuration information in the configuration table according to the instruction to obtain a modified configuration table;
a modifying module 509, configured to modify the configuration information of the scene element and/or the target scene element in the virtual reality scene model according to the modified configuration table.
Optionally, the configuration information comprises at least one of the following parameters: position coordinates, dimensions, and rotation angle.
It should be noted that the explanation of the embodiment of the virtual reality scene model establishing method in the foregoing embodiments of fig. 1 to fig. 4 is also applicable to the virtual reality scene model establishing apparatus in the embodiment, and the implementation principle thereof is similar, and is not described herein again.
In this embodiment, because the determined characteristics of the scene elements required for establishing the virtual reality scene are different from each other, that is, the configuration information of the scene elements with the same characteristics is not all repeatedly modeled and stored, but the elements with the same characteristics as the scene elements are repeatedly engraved, the scene elements can be secondarily edited, the repairability and the maintainability in the later period of the scene elements are improved, the storage and calling resources consumed by the scene elements are saved, and the model establishing effect is effectively improved.
The embodiment of the application also provides electronic equipment, which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
determining scene elements necessary for establishing a virtual reality scene model;
determining necessary configuration information of each scene element;
and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
Optionally, in some embodiments, the processor is further configured to:
arranging the necessary scene elements in the virtual reality scene of the Unity engine according to the configuration information of each necessary scene element;
judging whether the arranged necessary scene elements need to be repeatedly arranged or not;
if yes, generating a target scene element corresponding to the necessary scene element needing to be repeatedly arranged in a reference mode;
determining configuration information of each target scene element;
batch-wise repeated arrangement of target scene elements in a Unity engine
Optionally, in some embodiments, the processor is further configured to:
and generating a configuration table containing the configuration information of each scene element and/or the configuration information of the target scene element, and storing the configuration table.
Optionally, in some embodiments, the configuration information includes at least one of the following parameters: position coordinates, dimensions, and rotation angle.
Optionally, in some embodiments, the processor is further configured to:
determining the position information of a user in the virtual reality scene model;
determining a target range corresponding to the position information;
and dynamically loading and displaying the scene elements in the target range by taking the position marked by the position information as a central point by adopting an interest plane technology.
Optionally, in some embodiments, the processor is further configured to:
receiving an instruction of modifying the configuration information in the configuration table by a user;
modifying the configuration information in the configuration table according to the instruction to obtain a modified configuration table;
and modifying the configuration information of the scene elements and/or the target scene elements in the virtual reality scene model according to the modified configuration table.
It should be noted that the explanation of the embodiment of the virtual reality scene model establishing method in the foregoing embodiments of fig. 1 to fig. 4 is also applicable to the electronic device of the embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, because the determined characteristics of the scene elements required for establishing the virtual reality scene are different from each other, that is, the configuration information of the scene elements with the same characteristics is not all repeatedly modeled and stored, but the elements with the same characteristics as the scene elements are repeatedly engraved, the scene elements can be secondarily edited, the repairability and the maintainability in the later period of the scene elements are improved, the storage and calling resources consumed by the scene elements are saved, and the model establishing effect is effectively improved.
In order to implement the above embodiments, the present application also proposes a storage medium. The storage medium is used for storing an application program, and the application program is used for executing the virtual reality scene model establishing method of the embodiment of the application when the application program runs, wherein the virtual reality scene model establishing method comprises the following steps:
determining scene elements necessary for establishing a virtual reality scene model;
determining necessary configuration information of each scene element;
and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
It should be noted that the method, the principle and the implementation manner for executing the virtual reality scene model by the application program in the embodiment are similar to the method for establishing the virtual reality scene model in the embodiment described above, and are not described herein again in order to avoid redundancy.
The storage medium of the embodiment of the application has the advantages that the determined characteristics of the scene elements required for establishing the virtual reality scene are different from each other, that is, the configuration information of the scene elements with the same characteristics is not stored in a repeated modeling mode, but the elements with the same characteristics as the scene elements are repeatedly engraved, so that the scene elements can be edited for the second time, the later-stage repairability and maintainability of the scene elements are improved, the storage calling resources consumed by the scene elements are saved, and the model establishing effect is effectively improved.
In order to implement the foregoing embodiment, the present application further provides an application program, where the application program is configured to execute the virtual reality scene model establishing method according to the present embodiment when running, where the virtual reality scene model establishing method includes:
determining scene elements necessary for establishing a virtual reality scene model;
determining necessary configuration information of each scene element;
and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
It should be noted that the method, the principle and the implementation manner for executing the virtual reality scene model by the application program in the embodiment are similar to the method for establishing the virtual reality scene model in the embodiment described above, and are not described herein again in order to avoid redundancy.
According to the application program of the embodiment of the application program, the determined scene elements required for establishing the virtual reality scene have different characteristics, namely, the configuration information of the scene elements with the same characteristics is not completely stored repeatedly in a modeling mode, but the elements with the same characteristics as the scene elements are repeatedly engraved, so that the scene elements can be edited for the second time, the later repairability and maintainability of the scene elements are improved, the storage calling resources consumed by the scene elements are saved, and the model establishing effect is effectively improved.
In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (19)

  1. A virtual reality scene model building method is characterized by comprising the following steps:
    determining scene elements necessary for establishing a virtual reality scene model;
    determining configuration information of each scene element necessary for the scene;
    and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
  2. The method for building a virtual reality scene model according to claim 1, wherein the building a virtual reality scene model in a Unity engine according to the necessary scene elements and the configuration information of each scene element comprises:
    arranging each necessary scene element in a virtual reality scene of the Unity engine according to the configuration information of the necessary scene element;
    judging whether the arranged necessary scene elements need to be repeatedly arranged or not;
    if yes, generating a target scene element corresponding to the necessary scene element needing to be repeatedly arranged in a reference mode;
    determining configuration information of each target scene element;
    arranging the target scene elements in a batch manner in the Unity engine.
  3. The virtual reality scene model building method of claim 2, further comprising:
    and generating a configuration table containing the configuration information of each scene element and/or the configuration information of the target scene element, and storing the configuration table.
  4. A virtual reality scene model building method according to any one of claims 1 to 3, wherein the configuration information includes at least one of the following parameters: position coordinates, dimensions, and rotation angle.
  5. A virtual reality scene model building method according to any one of claims 1 to 3, further comprising:
    determining position information of a user in the virtual reality scene model;
    determining a target range corresponding to the position information;
    and dynamically loading and displaying the scene elements in the target range by taking the position marked by the position information as a central point by adopting an interest plane technology.
  6. A virtual reality scene model building method according to any one of claim 3, further comprising:
    receiving an instruction of modifying the configuration information in the configuration table by a user;
    modifying the configuration information in the configuration table according to the instruction to obtain a modified configuration table;
    and modifying the configuration information of the scene elements and/or the target scene elements in the virtual reality scene model according to the modified configuration table.
  7. A virtual reality scene model building device is characterized by comprising:
    the virtual reality scene model building method comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining scene elements required for building a virtual reality scene model;
    a second determining module for determining the configuration information of each scene element necessary for the scene;
    and the establishing module is used for establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
  8. The virtual reality scene model building apparatus of claim 7, wherein the building module comprises:
    an arrangement submodule, configured to arrange each necessary scene element in the virtual reality scene of the Unity engine according to configuration information of the necessary scene element;
    the judgment submodule is used for judging whether the arranged necessary scene elements need to be repeatedly arranged or not;
    the generating sub-module is used for generating a target scene element corresponding to the required scene element needing to be repeatedly arranged in a reference mode when the arranged required scene element needs to be repeatedly arranged;
    the determining submodule is used for determining the configuration information of each target scene element;
    the arrangement submodule is further configured to arrange the target scene elements in the Unity engine in a batch manner.
  9. The virtual reality scene model building apparatus of claim 8, further comprising:
    and the generating module is used for generating a configuration table containing the configuration information of each scene element and/or the configuration information of the target scene element, and storing the configuration table.
  10. The virtual reality scene model building apparatus of any one of claims 7-9, wherein the configuration information includes at least one of the following parameters: position coordinates, dimensions, and rotation angle.
  11. The virtual reality scene model building apparatus of any one of claims 7-9, further comprising:
    the third determining module is used for determining the position information of the user in the virtual reality scene model;
    a fourth determining module, configured to determine a target range corresponding to the location information;
    and the display module is used for dynamically loading and displaying the scene elements in the target range by taking the position marked by the position information as a central point by adopting an interest plane technology.
  12. The virtual reality scene model building apparatus of any one of claim 9, further comprising:
    the receiving module is used for receiving an instruction of modifying the configuration information in the configuration table by a user and modifying the configuration information in the configuration table according to the instruction to obtain a modified configuration table;
    and the modification module is used for modifying the configuration information of the scene elements and/or the target scene elements in the virtual reality scene model according to the modified configuration table.
  13. An electronic device, comprising:
    a processor;
    a memory;
    the memory stores executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
    determining scene elements necessary for establishing a virtual reality scene model;
    determining configuration information of each scene element necessary for the scene;
    and establishing a virtual reality scene model in the Unity engine according to the necessary scene elements and the configuration information of each scene element.
  14. The electronic device of claim 13, wherein the processor is further configured to:
    arranging each necessary scene element in a virtual reality scene of the Unity engine according to the configuration information of the necessary scene element;
    judging whether the arranged necessary scene elements need to be repeatedly arranged or not;
    if yes, generating a target scene element corresponding to the necessary scene element needing to be repeatedly arranged in a reference mode;
    determining configuration information of each target scene element;
    repeatedly arranging the target scene elements in the Unity engine in a batch manner.
  15. The electronic device of claim 14, wherein the processor is further configured to:
    and generating a configuration table containing the configuration information of each scene element and/or the configuration information of the target scene element, and storing the configuration table.
  16. The electronic device of any of claims 13-15, wherein the configuration information includes at least one of the following parameters: position coordinates, dimensions, and rotation angle.
  17. The electronic device of any of claims 13-15, wherein the processor is further configured to:
    determining position information of a user in the virtual reality scene model;
    determining a target range corresponding to the position information;
    and dynamically loading and displaying the scene elements in the target range by taking the position marked by the position information as a central point by adopting an interest plane technology.
  18. The electronic device of any of claim 15, wherein the processor is further configured to:
    receiving an instruction of modifying the configuration information in the configuration table by a user;
    modifying the configuration information in the configuration table according to the instruction to obtain a modified configuration table;
    and modifying the configuration information of the scene elements and/or the target scene elements in the virtual reality scene model according to the modified configuration table.
  19. A non-transitory computer-readable storage medium having instructions stored therein, which when executed by a processor of an electronic device, the processor performs the virtual reality scene model building method of any one of claims 1-6.
CN201780091700.8A 2017-12-26 2017-12-26 Virtual reality scene model establishing method and device, electronic equipment and storage medium Pending CN110709891A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/118474 WO2019126976A1 (en) 2017-12-26 2017-12-26 Method and apparatus for establishing virtual reality scene model, and electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN110709891A true CN110709891A (en) 2020-01-17

Family

ID=67064347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780091700.8A Pending CN110709891A (en) 2017-12-26 2017-12-26 Virtual reality scene model establishing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110709891A (en)
WO (1) WO2019126976A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408572A (en) * 2021-05-11 2021-09-17 华建数创(上海)科技有限公司 Unreal engine-based data model fusion method capable of being configured remotely
CN115291939A (en) * 2022-08-17 2022-11-04 北京字跳网络技术有限公司 Interactive scene configuration method, device, storage medium, equipment and program product
CN115729812A (en) * 2022-11-09 2023-03-03 广州汽车集团股份有限公司 Test method, electronic device, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11481989B2 (en) * 2019-04-12 2022-10-25 Esko Software Bv Method of and system for generating and viewing a 3D visualization of an object having printed features

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117982A (en) * 2015-08-27 2015-12-02 云南电网有限责任公司楚雄供电局 Visual display method of business data on the basis of tower entity
CN105931288A (en) * 2016-04-12 2016-09-07 广州凡拓数字创意科技股份有限公司 Construction method and system of digital exhibition hall
CN106569609A (en) * 2016-11-11 2017-04-19 上海远鉴信息科技有限公司 Method and system for transmitting users in improved virtual reality
CN106683201A (en) * 2016-12-23 2017-05-17 深圳市豆娱科技有限公司 Scene editing method and device based on three-dimensional virtual reality
CN106951067A (en) * 2017-02-13 2017-07-14 歌尔科技有限公司 The generation method and equipment of a kind of virtual reality scenario

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012906B (en) * 2010-10-27 2012-01-25 南京聚社数字科技有限公司 Three-dimensional scene management platform based on SaaS architecture and editing and browsing method
US9355123B2 (en) * 2013-07-19 2016-05-31 Nant Holdings Ip, Llc Fast recognition algorithm processing, systems and methods
CN104102545B (en) * 2014-07-04 2017-12-01 北京理工大学 Mobile augmented reality browser three dimensional resource configures the optimization method with loading
CN106709985B (en) * 2016-12-21 2020-07-14 民政部一零一研究所 Virtual sacrifice three-dimensional scene generation method and device
CN106709980B (en) * 2017-01-09 2020-09-04 北京航空航天大学 Formalization-based complex three-dimensional scene modeling method
CN107170047A (en) * 2017-04-13 2017-09-15 北京小鸟看看科技有限公司 Update method, equipment and the virtual reality device of virtual reality scenario
CN107320955B (en) * 2017-06-23 2021-01-29 武汉秀宝软件有限公司 AR venue interface interaction method and system based on multiple clients

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117982A (en) * 2015-08-27 2015-12-02 云南电网有限责任公司楚雄供电局 Visual display method of business data on the basis of tower entity
CN105931288A (en) * 2016-04-12 2016-09-07 广州凡拓数字创意科技股份有限公司 Construction method and system of digital exhibition hall
CN106569609A (en) * 2016-11-11 2017-04-19 上海远鉴信息科技有限公司 Method and system for transmitting users in improved virtual reality
CN106683201A (en) * 2016-12-23 2017-05-17 深圳市豆娱科技有限公司 Scene editing method and device based on three-dimensional virtual reality
CN106951067A (en) * 2017-02-13 2017-07-14 歌尔科技有限公司 The generation method and equipment of a kind of virtual reality scenario

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408572A (en) * 2021-05-11 2021-09-17 华建数创(上海)科技有限公司 Unreal engine-based data model fusion method capable of being configured remotely
CN115291939A (en) * 2022-08-17 2022-11-04 北京字跳网络技术有限公司 Interactive scene configuration method, device, storage medium, equipment and program product
CN115729812A (en) * 2022-11-09 2023-03-03 广州汽车集团股份有限公司 Test method, electronic device, and storage medium
CN115729812B (en) * 2022-11-09 2024-04-23 广州汽车集团股份有限公司 Test method, electronic device and storage medium

Also Published As

Publication number Publication date
WO2019126976A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
US11270497B2 (en) Object loading method and apparatus, storage medium, and electronic device
EP3657327B1 (en) Method for rendering game, and method, apparatus and device for generating game resource file
CN109260708B (en) Map rendering method and device and computer equipment
CN110709891A (en) Virtual reality scene model establishing method and device, electronic equipment and storage medium
CN107358649B (en) Processing method and device of terrain file
KR102433857B1 (en) Device and method for creating dynamic virtual content in mixed reality
CN113112579A (en) Rendering method, rendering device, electronic equipment and computer-readable storage medium
CN111476910B (en) 3D model display method, system, medium and display terminal of intelligent building BIM
US8522201B2 (en) Methods and apparatus for sub-asset modification
KR101431311B1 (en) Performance analysis during visual creation of graphics images
CN112732255A (en) Rendering method, device, equipment and storage medium
CN113926190A (en) Method and device for controlling three-dimensional model in game editor and storage medium
CN109925715B (en) Virtual water area generation method and device and terminal
CN112807695A (en) Game scene generation method and device, readable storage medium and electronic equipment
CN111950057A (en) Loading method and device of Building Information Model (BIM)
CN114797109A (en) Object editing method and device, electronic equipment and storage medium
CN115270530A (en) Method, system, device and medium for rapidly establishing progress visualization model
EP4231243A1 (en) Data storage management method, object rendering method, and device
CN112579144B (en) Data processing method and device
CN114627225A (en) Method and device for rendering graphics and storage medium
CN110827400B (en) Method and device for generating model of object in three-dimensional scene and terminal
CN110930499A (en) 3D data processing method and device
CN109542573B (en) Scene display method and device
CN115239895B (en) Mass data loading and optimal rendering method for GIS water environment 3D map
CN116860222B (en) Algorithm flow editing method and related device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200117

WD01 Invention patent application deemed withdrawn after publication