CN110020235B - Web browser three-dimensional model positioning method, device, medium and electronic equipment - Google Patents

Web browser three-dimensional model positioning method, device, medium and electronic equipment Download PDF

Info

Publication number
CN110020235B
CN110020235B CN201710731757.1A CN201710731757A CN110020235B CN 110020235 B CN110020235 B CN 110020235B CN 201710731757 A CN201710731757 A CN 201710731757A CN 110020235 B CN110020235 B CN 110020235B
Authority
CN
China
Prior art keywords
dimensional
dimensional model
information
preset
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710731757.1A
Other languages
Chinese (zh)
Other versions
CN110020235A (en
Inventor
赵刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710731757.1A priority Critical patent/CN110020235B/en
Publication of CN110020235A publication Critical patent/CN110020235A/en
Application granted granted Critical
Publication of CN110020235B publication Critical patent/CN110020235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures

Abstract

The disclosure belongs to the technical field of computers, and particularly relates to a method and a device for positioning a three-dimensional model of a Web browser, a storage medium and electronic equipment. The method comprises the following steps: receiving a preset Uniform Resource Locator (URL) request, wherein the preset URL request at least comprises identification information and position request information of a three-dimensional model; analyzing the preset URL request according to the identification information so as to send the position request information to a server; receiving three-dimensional space position information of the three-dimensional model returned by the server in response to the position request information; and when a three-dimensional virtual scene is formed by rendering of a browser, positioning and determining the position of the three-dimensional model in the rendered three-dimensional virtual scene according to the three-dimensional space position information. The method and the device can quickly and accurately position the coordinate position of a three-dimensional model such as a commodity three-dimensional model in the rendered three-dimensional virtual scene through the improved URL.

Description

Web browser three-dimensional model positioning method, device, medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for positioning a three-dimensional model of a Web browser, and a computer-readable storage medium and an electronic device for implementing the method for positioning a three-dimensional model of a Web browser.
Background
With the advance of scientific technology, in the field of electronic commerce, goods on websites are mainly presented in the form of 2D pictures, but as VR/AR technology gradually enters the field of electronic commerce, goods will be presented in a 3D virtual space in the form of, for example, a 3D model. When the goods are presented in the form of 2D pictures, it is the web page that carries the 2D pictures displaying the goods, and the web page is addressed in the form of uniform resource locator url (uniform resource locator).
In the related art, a web page is addressed using a URL, and an address of a web page is represented by a string having uniqueness, one URL corresponding to one web page. The method is suitable for positioning the Web page, and the Web browser analyzes the URL to find the server and the folder where the Web page is located, so that the corresponding Web page is correctly loaded to display 2D pictures of commodities.
However, it is difficult to apply the current URL addressing method to positioning and displaying a 3D model of a product presented in a 3D virtual space as a 3D model. Therefore, there is a need to provide a new technical solution to improve one or more of the problems in the above solutions.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a method and an apparatus for positioning a three-dimensional model of a Web browser, and a computer-readable storage medium and an electronic device implementing the method, thereby overcoming, at least to some extent, one or more of the problems due to the limitations and disadvantages of the related art.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for positioning a three-dimensional model of a Web browser, the method including:
receiving a URL request of a preset uniform resource locator; wherein the preset URL request at least comprises identification information and position request information of the three-dimensional model;
analyzing the preset URL request according to the identification information so as to send the position request information to a server;
receiving three-dimensional space position information of the three-dimensional model returned by the server in response to the position request information;
and when a three-dimensional virtual scene is formed by rendering of a browser, positioning and determining the position of the three-dimensional model in the rendered three-dimensional virtual scene according to the three-dimensional space position information.
In an exemplary embodiment of the present disclosure, the three-dimensional spatial position information includes a three-dimensional virtual space name and three-dimensional relative coordinates;
the positioning and determining the position of the three-dimensional model in the rendered three-dimensional virtual scene according to the three-dimensional space position information comprises:
determining a three-dimensional virtual space in which the three-dimensional model is located in the three-dimensional virtual scene according to the three-dimensional virtual space name;
and positioning the relative coordinate position of the three-dimensional model in the three-dimensional virtual space according to the three-dimensional relative coordinates.
In an exemplary embodiment of the present disclosure, the browser includes a preset parsing module; the method further comprises the following steps:
before analyzing the preset URL request according to the identification information, judging whether the preset URL request comprises the identification information;
and when the preset URL request is judged to comprise the identification information, the preset URL request is analyzed by the preset analysis module.
In an exemplary embodiment of the present disclosure, the preset parsing module is a preset browser plug-in.
In an exemplary embodiment of the present disclosure, the three-dimensional model includes one or more of a commodity three-dimensional model, a character three-dimensional model, and a building three-dimensional model.
In an exemplary embodiment of the present disclosure, the server is preset with three-dimensional space position information of a three-dimensional virtual space uniquely corresponding to each three-dimensional model.
In an exemplary embodiment of the present disclosure, a format of the preset URL request is: domain name/commodity classification name/three-dimensional space position information; wherein the domain name includes prefix information, and the prefix information includes the identification information.
According to a second aspect of the embodiments of the present disclosure, there is provided a Web browser three-dimensional model positioning apparatus, including:
the first information receiving module is used for receiving a URL request of a preset uniform resource locator; wherein the preset URL request at least comprises identification information and position request information of the three-dimensional model;
the information analysis processing module is used for analyzing the preset URL request according to the identification information so as to send the position request information to a server;
the second information receiving module is used for receiving the three-dimensional space position information of the three-dimensional model returned by the server in response to the position request information; and
and the three-dimensional model positioning module is used for positioning and determining the position of the three-dimensional model in a rendered three-dimensional virtual scene according to the three-dimensional space position information when the browser renders and forms the three-dimensional virtual scene.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the Web browser three-dimensional model positioning method in any one of the above embodiments.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the steps of the Web browser three-dimensional model positioning method in any one of the above embodiments via executing the executable instructions.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in an embodiment of the present disclosure, the URL is modified to make the preset URL request at least include identification information and location request information of a three-dimensional model, and the browser may parse the modified preset URL request according to the identification information to send the location request information to the server, receive three-dimensional space location information of the three-dimensional model returned by the server in response to the location request information, and finally, when the browser renders a three-dimensional virtual scene, determine a location of the three-dimensional model in the rendered three-dimensional virtual scene according to the location information of the three-dimensional space. Therefore, on one hand, the coordinate position of a three-dimensional model such as a commodity three-dimensional model in the rendered three-dimensional virtual scene can be rapidly and accurately positioned through the improved URL; on the other hand, the position of the commodity three-dimensional model can be conveniently obtained by sharing the commodity three-dimensional model with other users.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 schematically illustrates a flowchart of a method for positioning a three-dimensional model of a Web browser in an exemplary embodiment of the disclosure;
FIG. 2 schematically illustrates a flowchart of another method for positioning a three-dimensional model of a Web browser in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a flowchart of a further method for positioning a three-dimensional model of a Web browser in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a three-dimensional virtual space coordinate system in an exemplary embodiment of the disclosure;
FIG. 5 schematically illustrates a three-dimensional virtual scene in an exemplary embodiment of the disclosure;
FIG. 6 is a schematic diagram illustrating a Web browser three-dimensional model positioning apparatus in an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the disclosure;
fig. 8 schematically illustrates an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In this example embodiment, a method for positioning a three-dimensional model of a Web browser is first provided, where the method may be applied to a terminal device, for example, a mobile terminal such as a mobile phone, a notebook computer, a tablet computer, and the like, and a non-mobile terminal such as a desktop computer, and the like. Referring to fig. 1, the method may include:
step S101: receiving a URL request of a preset uniform resource locator; wherein the preset URL request at least comprises identification information and position request information of the three-dimensional model.
Step S102: and analyzing the preset URL request according to the identification information so as to send the position request information to a server.
Step S103: and receiving the three-dimensional space position information of the three-dimensional model returned by the server in response to the position request information.
Step S104: and when a three-dimensional virtual scene is formed by rendering of a browser, positioning and determining the position of the three-dimensional model in the rendered three-dimensional virtual scene according to the three-dimensional space position information.
By the Web browser three-dimensional model positioning method, on one hand, the coordinate position of a three-dimensional model such as a commodity three-dimensional model in a rendered three-dimensional virtual scene can be quickly and accurately positioned through the improved URL; on the other hand, the position of the commodity three-dimensional model can be conveniently obtained by sharing the commodity three-dimensional model with other users.
Hereinafter, the respective steps of the above-described method in the present exemplary embodiment will be described in more detail with reference to fig. 1 to 5.
In step S101, a URL request of a predetermined uniform resource locator is received; wherein the preset URL request at least comprises identification information and position request information of the three-dimensional model.
In the present exemplary embodiment, the preset URL request is formed based on the 3D URL formed by improving the conventional URL, which may include at least identification information and location request information of the three-dimensional model. The three-dimensional model, i.e., 3D model, may include, but is not limited to, a commodity three-dimensional model, a character three-dimensional model, or a building three-dimensional model. In the present embodiment, a three-dimensional model of a commodity is taken as an example, and the three-dimensional model of the commodity may be, for example, a three-dimensional model of a commodity such as a mobile phone, a computer, and clothes, which is not limited thereto. An exemplary format of the preset URL request may be: domain name/commodity classification name/three-dimensional space position information; wherein the domain name may include prefix information, and the prefix information may include the identification information. The three-dimensional spatial location information may include, but is not limited to, a three-dimensional virtual space name, three-dimensional relative coordinates, and the like. In some embodiments, there may be a plurality of the item classification names. For example, in one exemplary embodiment, the format of an exemplary 3D URL request may be as follows:
3d _ http:// domain name/class name 1/class name 2/…/class name N/three-dimensional virtual space name/three-dimensional relative coordinates. Where "3 d _ http://" is exemplary of the prefix information, and 3d is exemplary of the identification information.
In the exemplary embodiment, the 3D URL is formed by improving the conventional URL, and the problem of accurately positioning the 3D model of the commodity on the Web browser is decomposed into two parts: the first part is the positioning of the 3D virtual space, and the second part is the determination of the specific relative position of the 3D model of the good in the 3D virtual space.
Specifically, the 3D virtual space is positioned similarly to the picture in the Web page, the Web page is a carrier of the picture, the 3D model of the commodity is located in the 3D virtual space, the 3D virtual space is a carrier of the 3D model of the commodity, each 3D virtual space is an independent space, the address of the 3D virtual space on the Web is unique, and the 3D virtual space can be assigned and managed by the website server. In an exemplary embodiment of the disclosure, the server, such as a website server, may be preset with three-dimensional space position information of a three-dimensional virtual space uniquely corresponding to the three-dimensional model corresponding to each different commodity. The embodiment can realize the positioning of the commodity 3D model by utilizing the improved 3D URL. The 3D URL may be a domain name + classification name 1+ classification name 2+ … + classification name N +3D virtual space name configuration. Each section of name is divided by '/', so that when domain names are resolved, the section can be obtained when the '/' is encountered, the number of classification names can be 0-N, the function of the classification names is similar to that of folder names, and the specific number of the classification names is related to the design of websites. Assuming that the domain name is www.jd.com, there are 2 class names, 3C and Phone, respectively, and the 3D virtual space name is Oppo.3D, the 3D URL may be represented as www.jd.com/3C/Phone/Opp.3d. The prefix may be "http://", and in order to enable the Web browser to distinguish between the general URL and the 3D URL in this embodiment, the prefix may be defined as "3D _ http://". The 3D virtual space location so prefixed can be denoted as 3D _ http:// www.jd.com/3C/Phone/Opp.3d. The browser may receive the above exemplary 3D URL input by the user, through which the user may enter a 3D virtual space named opp.3d in the www.jd.com domain name and under the Phone category under the 3C category.
The 3D virtual space is stereoscopic, and a position in the 3D virtual space can be represented by a three-dimensional cartesian coordinate system in a rectangular coordinate system, for example, that is, a position of the 3D model of the commodity located in the 3D virtual space can be represented by three coordinate values (X, Y, Z), which can be relative values. For example, referring to fig. 4, with respect to an origin of a 3D virtual space, a central point of the 3D virtual space may be defined as an origin of coordinates, and a left-handed coordinate system is adopted, that is, an X-axis forward direction is rightward, a Y-axis forward direction is upward, a Z-axis forward direction is inward, and a coordinate length unit may be meters. If the coordinate value of one commodity 3D model is (1, 1, 1), the specific position of the commodity 3D model is represented as the central point of the 3D virtual space to the right, upwards and inwards by 1 meter respectively.
The specific relative position of the 3D model of the commodity in the 3D virtual space is determined, that is, in order to enable the user to directly locate the position of the 3D model of the commodity in the 3D virtual space through the 3D URL, in this embodiment, the last segment of the character of the 3D URL may be the 3D relative coordinate of the 3D model of the commodity in the 3D virtual space, which is used to represent the coordinate position of the 3D model of the commodity in the 3D virtual space.
Specifically, the 3D relative coordinates may include a coordinate name and a coordinate value, for example, the format of the 3D relative coordinates may be: x (symbol) xxx. xxx _ Y (symbol) yyy. yyy _ Z (symbol) zzz.
Wherein, X, Y and Z can be exchanged in sequence, the decimal less than 3 bits can be omitted, the symbols are '+' and '-' and '+' can be omitted. Specific examples are for example: x1_ Y1_ Z1 represents coordinates (1, 1, 1), X-0.575_ Y2.1_ Z-1.22 represents coordinates (-0.575, 2.1, -1.22), Y-5.3_ Z12.333_ X-3.98 represents coordinates (-3.98, -5.3, 12.333). For example, if the coordinate value of the commodity 3D model is (1, 1, 1), then in the example of the opp.3d virtual space, the complete exemplary 3D URL may be: 3d _ http:// www.jd.com/3C/Phone/Opp.3d/X1_ Y1_ Z1.
In step S102, the preset URL request is parsed according to the identification information, so as to send the location request information to a server.
Illustratively, when the browser receives the above exemplary 3D URL, i.e., 3D _ http:// www.jd.com/3C/Phone/Opp.3d, the subsequent parsing processing steps may be triggered according to the exemplary identification information 3D in the exemplary prefix information "3D _ http:///" therein, to send, for example, "www.jd.com/3C/Phone/Opp.3d/X1 _ Y1_ Z1" to, for example, a Web server.
In order to adapt the current browser to the improved 3D URL resolution, the data processing efficiency is improved by facilitating and rapidly processing. In an exemplary embodiment of the present disclosure, the browser may include a preset parsing module, and for example, the preset parsing module may be a preset browser plug-in. Accordingly, referring to fig. 2, the method may further include the steps of:
step S201: and before analyzing the preset URL request according to the identification information, judging whether the preset URL request comprises the identification information. For example, it may be determined whether the 3D URL, i.e., 3D _ http:// www.jd.com/3C/Phone/Opp.3d, includes identification information 3D.
Step S202: and when the preset URL request is judged to comprise the identification information, the preset URL request is analyzed by the preset analysis module. For example, when the identification information 3d is determined to be included, the preset URL request is parsed by the preset parsing module, such as a preset browser plug-in.
In step S103, three-dimensional spatial position information of the three-dimensional model returned by the server in response to the position request information is received.
Illustratively, the browser may receive the three-dimensional spatial position information (such as a three-dimensional virtual space name and three-dimensional relative coordinates) of the 3D model of the mobile Phone commodity, the corresponding file resources required for rendering, and the like, which are returned by the website server in response to the request, namely, "www.jd.com/3C/Phone/opp.3d/X1 _ Y1_ Z1".
In step S104, when a three-dimensional virtual scene is rendered and formed by the browser, the position of the three-dimensional model in the rendered three-dimensional virtual scene is determined according to the three-dimensional spatial position information.
Illustratively, the browser may render a three-dimensional virtual scene, i.e. a 3D virtual scene, for example, by a 3D rendering engine, according to the file resources. As shown in fig. 5, the 3D virtual scene may include a plurality of three-dimensional virtual spaces 501 and a 3D model of a commodity, such as a 3D model 502 of a mobile phone, for example, along the X-axis direction. Accordingly, in conjunction with fig. 3, the positioning and determining the position of the three-dimensional model in the rendered three-dimensional virtual scene according to the three-dimensional spatial position information in step S104 may include the following steps:
step S301: and determining a three-dimensional virtual space in which the three-dimensional model is positioned in the three-dimensional virtual scene according to the three-dimensional virtual space name.
For example, the browser may receive the above-described exemplary 3D URL entered by the user, i.e., 3D _ http:// www.jd.com/3C/Phone/Opp.3d/X1_ Y1_ Z1, through which 3D URL may be entered a 3D virtual space having a space name Opp.3d in the domain name www.jd.com under the Phone category under the 3C category. Such as the three-dimensional virtual space 501 in which the cell phone 3D model 502 is located, is determined from the three-dimensional virtual space name.
Step S302: and positioning the relative coordinate position of the three-dimensional model in the three-dimensional virtual space according to the three-dimensional relative coordinates.
For example, the determination of the specific relative coordinate position (1, 1, 1) of the cell phone 3D model 502 in the three-dimensional virtual space 501 is continued according to the 3D relative coordinates such as X1_ Y1_ Z1. Therefore, when the 3D virtual scene is rendered, the observation point of the user can be set at the position of the commodity 3D model in a simulated mode, the user is simulated to move to the side of the commodity 3D model instantly, and the commodity 3D model is convenient to observe.
In the 3D rendering engine, the position of the eyes of the user can be represented by the position of the camera (Eye Point), and the view Point of the user (i.e. the position of the 3D model of the commodity) can be represented by the shooting target Point (LookAt Point) of the camera. Then the 3D relative coordinates (X, Y, Z) obtained by the browser parsing the 3D URL are the hookat Point. LookAt Point is also a 3D coordinate, assuming that (X) is used hereLP,YLP,ZLP) Is shown, then XLP=X,YLP=Y,ZLPZ. EyePoint represents the position of the user's eye and is also a 3D coordinate, assumed to be (X)EP,YEP,ZEP) Indicating that a variable L is newly introduced to indicate the distance between the eyes and the commodity, Eye Point can be calculated by the following formula: xEP,=X,YEP=Y,ZEP=Z-L。
In the present exemplary embodiment, an existing URL and a resolution rule of a Web browser are defined in an improved manner, and the improved URL may be referred to as a 3D URL as described above. The improved 3D URL is analyzed according to the definition through a browser with a 3D URL analyzing function (such as a 3D URL analyzing plug-in), after a user inputs the URL on a Web browser, the user can find a 3D virtual space where a corresponding commodity 3D model is located, and the specific position in the 3D virtual space where the commodity 3D model is located can be further positioned like the 3D virtual space is equivalent to a webpage and corresponding commodity pictures are found in the webpage,
the embodiment of the example can solve the problem of accurate positioning of the 3D model of the commodity on the Web page in the three-dimensional virtual scene, the specific position coordinates of the 3D model of the commodity in the 3D virtual space can be analyzed through the improved URL (three-dimensional resource locator), namely the 3D URL, and the 3D URL analysis technology of the Web browser can be used for analyzing the specific position coordinates of the 3D model of the commodity, so that the improved URL can support a user to directly position the specific position of the 3D model of the commodity through the 3D URL, and the user can conveniently share the position of the 3D commodity in the 3D virtual space. The user can share the 3D URL of the 3D commodity corresponding to the commodity 3D model, and other users can directly transfer the 3D URL to the vicinity of the 3D commodity.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc. Additionally, it will also be readily appreciated that the steps may be performed synchronously or asynchronously, e.g., among multiple modules/processes/threads.
Further, in this example embodiment, a WEB browser three-dimensional model positioning apparatus is also provided. Referring to fig. 6, the apparatus 600 may include a first information receiving module 601, an information parsing module 602, a second information receiving module 603, and a three-dimensional model positioning module 604. Wherein:
the first information receiving module 601 is configured to receive a URL request of a predetermined uniform resource locator; wherein the preset URL request at least comprises identification information and position request information of the three-dimensional model.
The information parsing module 602 is configured to parse the preset URL request according to the identification information, so as to send the location request information to a server.
The second information receiving module 603 is configured to receive three-dimensional space position information of the three-dimensional model returned by the server in response to the position request information.
The three-dimensional model positioning module 604 is configured to, when a three-dimensional virtual scene is formed by rendering with a browser, position and determine a position of the three-dimensional model in the rendered three-dimensional virtual scene according to the three-dimensional space position information.
In an exemplary embodiment of the present disclosure, the three-dimensional spatial position information includes a three-dimensional virtual space name and three-dimensional relative coordinates; correspondingly, the three-dimensional model positioning module 604 may be specifically configured to determine a three-dimensional virtual space in the three-dimensional virtual scene where the three-dimensional model is located according to the name of the three-dimensional virtual space; and then positioning the relative coordinate position of the three-dimensional model in the three-dimensional virtual space according to the three-dimensional relative coordinate.
In an exemplary embodiment of the present disclosure, the browser may include a preset parsing module; the apparatus 600 may further include a URL processing module, which is specifically configured to determine whether the preset URL request includes the identification information before parsing the preset URL request according to the identification information; and when the preset URL request is judged to comprise the identification information, the preset URL request is analyzed by the preset analysis module.
In an exemplary embodiment of the present disclosure, the preset parsing module may be a preset browser plug-in. The three-dimensional model may include one or more of a commodity three-dimensional model, a character three-dimensional model, and a building three-dimensional model, although not limited thereto.
In an exemplary embodiment of the present disclosure, the server is preset with three-dimensional space position information of a three-dimensional virtual space uniquely corresponding to each three-dimensional model.
In an exemplary embodiment of the present disclosure, an exemplary format of the preset URL request may be: domain name/commodity classification name/three-dimensional space position information; wherein the domain name includes prefix information, and the prefix information includes the identification information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units. The components shown as modules or units may or may not be physical units, i.e. may be located in one place or may also be distributed over a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the wood-disclosed scheme. One of ordinary skill in the art can understand and implement it without inventive effort.
In an example embodiment of the present disclosure, a Web browser may further be provided, where the Web browser may include the three-dimensional model positioning apparatus of the Web browser described in any of the above embodiments.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored, which when executed by, for example, a processor, can implement the steps of the Web browser three-dimensional model positioning method in any one of the above embodiments. In some possible embodiments, the aspects of the present invention may also be implemented in the form of a program product, which includes program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned three-dimensional model positioning method section of the Web browser of this specification, when the program product runs on the terminal device.
Referring to fig. 7, a program product 700 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, there is also provided an electronic device, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to execute the steps of the Web browser three-dimensional model positioning method in any one of the above embodiments via executing the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one memory unit 820, a bus 830 connecting the various system components (including the memory unit 820 and the processing unit 810), a display unit 840, and the like.
Wherein the storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 executes the steps according to various exemplary embodiments of the present invention described in the above-mentioned WEB browser three-dimensional model positioning method section of this specification. For example, the processing unit 810 may perform the steps as shown in fig. 1.
The memory unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The memory unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. The network adapter 860 may communicate with other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above-mentioned method for positioning a three-dimensional model of a Web browser according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (5)

1. A method for positioning a three-dimensional model of a Web browser is characterized by comprising the following steps:
receiving a URL request of a preset uniform resource locator; the preset URL request at least comprises identification information and position request information of a three-dimensional model, and the format of the preset URL request is as follows: the domain name/commodity classification name/three-dimensional space position information comprises prefix information which comprises the identification information; the three-dimensional model comprises one or more of a commodity three-dimensional model, a character three-dimensional model and a building three-dimensional model;
when the preset URL request is judged to comprise the identification information, a preset analyzing module in the browser analyzes the preset URL request according to the identification information so as to send the position request information to a server, wherein three-dimensional space position information of a three-dimensional virtual space uniquely corresponding to each three-dimensional model is preset on the server;
receiving three-dimensional space position information of the three-dimensional model returned by the server in response to the position request information; wherein the three-dimensional spatial location information comprises a three-dimensional virtual space name and three-dimensional relative coordinates;
when a three-dimensional virtual scene is formed by rendering of the browser, a three-dimensional virtual space where the three-dimensional model is located in the three-dimensional virtual scene is determined according to the name of the three-dimensional virtual space, and the relative coordinate position of the three-dimensional model in the three-dimensional virtual space is located according to the three-dimensional relative coordinate.
2. The positioning method according to claim 1, wherein the predetermined parsing module is a predetermined browser plug-in.
3. A Web browser three-dimensional model positioning apparatus, comprising:
the first information receiving module is used for receiving a URL request of a preset uniform resource locator; the preset URL request at least comprises identification information and position request information of a three-dimensional model, and the format of the preset URL request is as follows: the domain name/commodity classification name/three-dimensional space position information comprises prefix information which comprises the identification information; the three-dimensional model comprises one or more of a commodity three-dimensional model, a character three-dimensional model and a building three-dimensional model;
the information analysis processing module is used for analyzing the preset URL request according to the identification information by a preset analysis module in the browser when the preset URL request is judged to comprise the identification information so as to send the position request information to a server, wherein three-dimensional space position information of a three-dimensional virtual space uniquely corresponding to each three-dimensional model is preset on the server;
the second information receiving module is used for receiving the three-dimensional space position information of the three-dimensional model returned by the server in response to the position request information; wherein the three-dimensional spatial location information comprises a three-dimensional virtual space name and three-dimensional relative coordinates; and
and the three-dimensional model positioning module is used for determining a three-dimensional virtual space in which the three-dimensional model is positioned in the three-dimensional virtual scene according to the name of the three-dimensional virtual space when the browser renders to form the three-dimensional virtual scene, and positioning the relative coordinate position of the three-dimensional model in the three-dimensional virtual space according to the three-dimensional relative coordinate.
4. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for positioning a three-dimensional model of a Web browser of any one of claims 1 and 2.
5. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the Web browser three-dimensional model positioning method of any one of claims 1 and 2 via execution of the executable instructions.
CN201710731757.1A 2017-08-23 2017-08-23 Web browser three-dimensional model positioning method, device, medium and electronic equipment Active CN110020235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710731757.1A CN110020235B (en) 2017-08-23 2017-08-23 Web browser three-dimensional model positioning method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710731757.1A CN110020235B (en) 2017-08-23 2017-08-23 Web browser three-dimensional model positioning method, device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110020235A CN110020235A (en) 2019-07-16
CN110020235B true CN110020235B (en) 2021-08-03

Family

ID=67186139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710731757.1A Active CN110020235B (en) 2017-08-23 2017-08-23 Web browser three-dimensional model positioning method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110020235B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113449228A (en) * 2020-03-24 2021-09-28 北京沃东天骏信息技术有限公司 Page rendering method and device
CN111729323B (en) * 2020-07-03 2022-05-10 华强方特(深圳)软件有限公司 Method for driving VR (virtual reality) lens by real-time data of six-degree-of-freedom track amusement equipment
CN113781136A (en) * 2020-09-03 2021-12-10 北京沃东天骏信息技术有限公司 Interface display method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923564A (en) * 2010-06-08 2010-12-22 汪翔云 Method for improving performance of webpage of representing three-dimensional object based on image cache
CN102930585A (en) * 2012-09-19 2013-02-13 浙江大学 Method for using Flash to achieve three-dimensional network map diorama
CN103037073A (en) * 2011-10-10 2013-04-10 Lg电子株式会社 Mobile terminal and controlling method thereof
CN103412874A (en) * 2013-07-11 2013-11-27 北京大学深圳研究生院 Method and system for achieving three-dimensional page
CN103440114A (en) * 2013-07-17 2013-12-11 中国石油天然气股份有限公司 Web architecture-based three-dimensional wellbore trajectory display system
CN103559227A (en) * 2013-10-22 2014-02-05 北京奇虎科技有限公司 Webpage displaying method and browser
CN104504753A (en) * 2014-12-18 2015-04-08 深圳先进技术研究院 Internet three-dimensional IP (internet protocol) map system and method based on augmented reality
CN104598469A (en) * 2013-10-31 2015-05-06 蓝网科技有限公司 Method for drawing medical image positioning line on browser
US9672661B2 (en) * 2015-06-08 2017-06-06 Airbus Operations (S.A.S.) Damage detection and repair system and method using enhanced geolocation

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8605863B1 (en) * 2008-03-18 2013-12-10 Avaya Inc. Method and apparatus for providing state indication on a telephone call
CN101539942A (en) * 2009-04-30 2009-09-23 北京瑞汛世纪科技有限公司 Method and device for displaying Internet content
CN102087598A (en) * 2011-02-22 2011-06-08 深圳市同洲电子股份有限公司 Method, device and browsing device for displaying 3D interface
US20130117704A1 (en) * 2011-11-09 2013-05-09 Darius Lahoutifard Browser-Accessible 3D Immersive Virtual Events
CN102930592B (en) * 2012-11-16 2015-09-23 厦门光束信息科技有限公司 Based on the cloud computing rendering intent that URL(uniform resource locator) is resolved
US20150277699A1 (en) * 2013-04-02 2015-10-01 Cherif Atia Algreatly Interaction method for optical head-mounted display
CN104133553B (en) * 2014-07-30 2018-04-06 小米科技有限责任公司 Webpage content display method and device
CN106649888B (en) * 2017-01-16 2020-06-02 北京恒华伟业科技股份有限公司 Browser

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923564A (en) * 2010-06-08 2010-12-22 汪翔云 Method for improving performance of webpage of representing three-dimensional object based on image cache
CN103037073A (en) * 2011-10-10 2013-04-10 Lg电子株式会社 Mobile terminal and controlling method thereof
CN102930585A (en) * 2012-09-19 2013-02-13 浙江大学 Method for using Flash to achieve three-dimensional network map diorama
CN103412874A (en) * 2013-07-11 2013-11-27 北京大学深圳研究生院 Method and system for achieving three-dimensional page
CN103440114A (en) * 2013-07-17 2013-12-11 中国石油天然气股份有限公司 Web architecture-based three-dimensional wellbore trajectory display system
CN103559227A (en) * 2013-10-22 2014-02-05 北京奇虎科技有限公司 Webpage displaying method and browser
CN104598469A (en) * 2013-10-31 2015-05-06 蓝网科技有限公司 Method for drawing medical image positioning line on browser
CN104504753A (en) * 2014-12-18 2015-04-08 深圳先进技术研究院 Internet three-dimensional IP (internet protocol) map system and method based on augmented reality
US9672661B2 (en) * 2015-06-08 2017-06-06 Airbus Operations (S.A.S.) Damage detection and repair system and method using enhanced geolocation

Also Published As

Publication number Publication date
CN110020235A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN106991154B (en) Webpage rendering method and device, terminal and server
EP3816823A1 (en) Webpage rendering method, device, electronic apparatus and storage medium
US9984408B1 (en) Method, medium, and system for live video cooperative shopping
CN108574604B (en) Test method and device
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN105493067A (en) Application context migration framework and protocol
CN109062563B (en) Method and device for generating page
CN112015314B (en) Information display method and device, electronic equipment and medium
CN110020235B (en) Web browser three-dimensional model positioning method, device, medium and electronic equipment
CN111966255B (en) Information display method and device, electronic equipment and computer readable medium
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN111125555B (en) Enterprise information acquisition method and device
CN110134869B (en) Information pushing method, device, equipment and storage medium
CN113761428A (en) Page rendering method, device and system, storage medium and electronic equipment
CN113407882A (en) Component generation method and device, computer-readable storage medium and electronic equipment
CN112346976A (en) Interface document generation method, device and system based on webpage and computer equipment
CN110110236B (en) Information pushing method, device, equipment and storage medium
CN111581098A (en) Interface data transfer storage method, device, server and storage medium
CN111198738A (en) Mobile terminal page display method and device and electronic equipment
CN112131092A (en) Page debugging method and device
CN112083982A (en) Information processing method and device
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN111506285B (en) Electronic price tag updating method and device, electronic equipment and readable medium
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN108459890B (en) Interface display method and device for application

Legal Events

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