CN107608608B - Information interaction method, device and system of three-dimensional graphic rendering engine - Google Patents

Information interaction method, device and system of three-dimensional graphic rendering engine Download PDF

Info

Publication number
CN107608608B
CN107608608B CN201710875655.7A CN201710875655A CN107608608B CN 107608608 B CN107608608 B CN 107608608B CN 201710875655 A CN201710875655 A CN 201710875655A CN 107608608 B CN107608608 B CN 107608608B
Authority
CN
China
Prior art keywords
input event
responder
information interaction
execution
engine
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
CN201710875655.7A
Other languages
Chinese (zh)
Other versions
CN107608608A (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.)
Zhejiang Kelan Information Technology Co ltd
Original Assignee
Zhejiang Kelan 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 Zhejiang Kelan Information Technology Co ltd filed Critical Zhejiang Kelan Information Technology Co ltd
Priority to CN201710875655.7A priority Critical patent/CN107608608B/en
Publication of CN107608608A publication Critical patent/CN107608608A/en
Application granted granted Critical
Publication of CN107608608B publication Critical patent/CN107608608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an information interaction method of a three-dimensional graphic rendering engine, which comprises the following steps: receiving an input event sent by an external device; and sending the input event to a corresponding responder according to the attribute of the input event so that the responder can execute preset change according to the input event. Therefore, according to the information interaction method of the three-dimensional graphic rendering engine provided by the embodiment of the invention, when the input event triggered by the external device is sensed, the input event is sent to the corresponding responder, and the responder judges that the input event meets the corresponding requirement of the responder according to the attribute of the input device and then executes the preset change, so that a user can control various changes in the three-dimensional graphic rendering engine in real time, and the information interaction between the three-dimensional graphic rendering engine and the external device is realized. The invention also discloses an information interaction device and system of the three-dimensional graphic rendering engine and a computer readable storage medium used by the same, and the technical effects can be realized.

Description

Information interaction method, device and system of three-dimensional graphic rendering engine
Technical Field
The present invention relates to the field of three-dimensional technologies, and in particular, to an information interaction method, apparatus, and system for a three-dimensional graphics rendering engine, and a computer-readable storage medium used in the method.
Background
Three-dimensional games on computers are now taking an increasingly important place in people's daily entertainment, and these game scenes are realistic and engaging. Similarly, three-dimensional simulation demonstration training software is increasingly popularized in industries such as real estate, clothing, furniture, daily department, exhibitions, training and the like, the three-dimensional simulation software can create a very vivid environment and meet various demonstration or training requirements, so that experienced users can be personally on the scene, and the three-dimensional game or simulation demonstration training software needs to use a rendering technology of three-dimensional graphics.
The three-dimensional graphic rendering engine in the prior art generally does not have the capability of interacting with external equipment, can only simulate dynamic performance by using pre-designed fixed changes, cannot control the starting and ending time, cannot be participated in by a user, and has poor user experience.
Therefore, how to realize the information interaction between the three-dimensional graphics rendering engine and the external device, so that the user can control various changes in the three-dimensional graphics rendering engine in real time is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an information interaction method, device and system of a three-dimensional graphic rendering engine and a computer readable storage medium used by the same, which realize information interaction between the three-dimensional graphic rendering engine and external equipment and enable a user to control various changes in the three-dimensional graphic rendering engine in real time.
In order to achieve the above object, an embodiment of the present invention provides an information interaction method for a three-dimensional graphics rendering engine, including:
the engine receives an input event sent by the external equipment;
the engine sends the input event to a responder so that the responder can execute preset change according to the input event.
Wherein the engine sending the input event to a responder so that the responder performs a preset change according to the input event comprises:
the engine sends the input event to all responders;
and the all responders judge whether the input event needs to respond or not according to the attribute of the input event, and if so, execute preset change.
Wherein the engine sending the input event to a responder so that the responder performs a preset change according to the input event comprises:
the engine queries an execution responder corresponding to the input event according to the attribute of the input event and sends the input event to the execution responder;
the execution responder executes preset changes according to the input events.
In order to achieve the above object, an embodiment of the present invention provides an information interaction apparatus for a three-dimensional graphics rendering engine, including:
the receiving module is used for receiving an input event sent by external equipment;
and the sending module is used for sending the input event to a responder so that the responder can execute preset change according to the input event.
Wherein, the sending module specifically comprises:
a sending unit, configured to send the input event to all responders by the engine;
and the judging unit is used for judging whether the input event needs to be responded or not by the responders according to the attribute of the input event, and if so, executing preset change.
Wherein, the sending module specifically comprises:
the query unit is used for the engine to query the execution responder corresponding to the input event according to the attribute of the input event and send the input event to the execution responder;
and the execution unit is used for executing preset change by the execution responder according to the input event.
In order to achieve the above object, an embodiment of the present invention provides an information interaction system for a three-dimensional graphics rendering engine, including an engine and a responder;
the engine is used for receiving an input event sent by an external device and sending the input event to the responder;
the responder is used for executing preset change according to the input event.
To achieve the above object, an embodiment of the present invention provides a computer-readable storage medium, where an information interaction program is stored on the computer-readable storage medium, and the information interaction program, when executed, implements any one of the information interaction methods described above.
According to the scheme, the information interaction method of the three-dimensional graphic rendering engine provided by the embodiment of the invention comprises the following steps: receiving an input event sent by an external device; and sending the input event to a corresponding responder according to the attribute of the input event so that the responder can execute preset change according to the input event. Therefore, according to the information interaction method of the three-dimensional graphic rendering engine provided by the embodiment of the invention, when the input event triggered by the external device is sensed, the input event is sent to the corresponding responder, and the responder judges that the input event meets the corresponding requirement of the responder according to the attribute of the input device and then executes the preset change, so that a user can control various changes in the three-dimensional graphic rendering engine in real time, and the information interaction between the three-dimensional graphic rendering engine and the external device is realized. The invention also discloses an information interaction device and system of the three-dimensional graphic rendering engine and a computer readable storage medium used by the same, and the technical effects can be realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of an information interaction method of a three-dimensional graphics rendering engine according to an embodiment of the present invention;
FIG. 2 is a flowchart of an information interaction method of a three-dimensional graphics rendering engine according to another embodiment of the present disclosure;
FIG. 3 is a flowchart of an information interaction method of a three-dimensional graphics rendering engine according to an embodiment of the present invention;
FIG. 4 is a block diagram of an information interaction apparatus of a three-dimensional graphics rendering engine according to an embodiment of the present invention;
fig. 5 is a structural diagram of an information interaction system of a three-dimensional graphics rendering engine according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses an information interaction method of a three-dimensional graphic rendering engine, which realizes the information interaction between the three-dimensional graphic rendering engine and external equipment and enables a user to control various changes in the three-dimensional graphic rendering engine in real time.
Referring to fig. 1, a flowchart of an information interaction method of a three-dimensional graphics rendering engine disclosed in the embodiment of the present invention is shown in fig. 1, and includes:
s101: the engine receives an input event sent by the external equipment;
the input of the external device is defined as an input event, and is divided into a keyboard event and a mouse event according to the difference of the external device. In a specific implementation, each key on the keyboard and the left key, the middle key, the right key and the scroll wheel of the mouse can be respectively assigned with a unique integer as the attribute of the input event. Different states may be defined for each input event, for example, 0 indicates no pressing, 1 indicates pressing, when a keyboard event is generated externally, a key value is 9, and a state is 1, where a key value of 9 corresponds to a space key, indicating that the space key is pressed.
When the external device generates an input event, the three-dimensional graphic rendering engine is informed, and the engine receives the input event sent by the external device.
S102: the engine sends the input event to a responder so that the responder can execute preset change according to the input event.
Defining an internal structure for feeding back aiming at the input event of the external equipment as a responder, transmitting the input event to the responder when the engine receives the input event transmitted by the external equipment, and completing corresponding various changes when the responder receives the input event.
According to the information interaction method of the three-dimensional graphic rendering engine, when the input event triggered by the external equipment is sensed, the input event is sent to the corresponding responder, the responder judges that the input event meets the corresponding requirement of the responder according to the attribute of the input equipment and then executes the preset change, so that a user can control various changes in the three-dimensional graphic rendering engine in real time, and the information interaction between the three-dimensional graphic rendering engine and the external equipment is realized.
The embodiment of the invention discloses an information interaction method of a three-dimensional graphic rendering engine, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 2, a flowchart of another information interaction method for a three-dimensional graphics rendering engine according to an embodiment of the present invention is shown in fig. 2, and includes:
s201: the engine receives an input event sent by the external equipment;
s221: the engine sends the input event to all responders;
in a specific implementation, the engine receives the input event sent by the external device, and the input event can be directly sent to all responders in the system without distinguishing the type of the input event.
S222: and the all responders judge whether the input event needs to respond or not according to the attribute of the input event, and if so, execute preset change.
In the specific implementation, the event is described by two attributes of the type and the state of the event, all responders in the system judge whether the input event needs to respond or not according to the attribute of the input event, if so, the preset change is executed, if not, no change is executed, and the operation is ended. Events generated by external devices can be responded by a plurality of responders at the same time, and one responder can also respond to a plurality of different events.
For example, there is a responder Q in the system for the pressing of a keyboard key "H" to perform an operation of changing the camera position to the origin position in the three-dimensional graphics rendering engine.
When the current peripheral keyboard 'K' key is pressed down, an input event that the keyboard key 'K' key is pressed down is generated, the three-dimensional graphic rendering engine acquires the input event and sends the input event to all responders in the system, after the responders Q receive the input event, judgment is carried out according to the attribute of the input event, and if the judgment result does not meet the response requirement of the responders Q, no change is executed, and the operation is finished.
The method comprises the steps that an H key of a current peripheral keyboard is pressed down, an input event that the H key of the keyboard is pressed down is generated, a three-dimensional graphic rendering engine acquires the input event and sends the input event to all responders in a system, a responder Q receives the input event and then judges according to the attribute of the input event, the judgment result meets the response requirement of the responder Q, the preset change that the position of a camera is changed to the position of an original point is executed, a user obtains a response, and the interaction between the three-dimensional graphic rendering engine and external equipment is completed.
The embodiment of the invention discloses an information interaction method of a three-dimensional graphic rendering engine, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 3, a flowchart of an information interaction method for a three-dimensional graphics rendering engine according to another embodiment of the present invention is shown in fig. 3, and includes:
s301: the engine receives an input event sent by the external equipment;
s321: the engine queries an execution responder corresponding to the input event according to the attribute of the input event and sends the input event to the execution responder;
in specific implementation, the engine receives an input event sent by the external device, can judge a responder for executing the input event according to the attribute of the input event, and directly sends the input event to the responder, so that the step that each responder in the system needs to judge whether the input event meets the requirement is omitted, and the speed of the engine responding to the operation of the external device is increased.
S322: the execution responder executes preset changes according to the input events.
The following introduces an information interaction device of a three-dimensional graphics rendering engine according to an embodiment of the present invention, and an information interaction device of a three-dimensional graphics rendering engine described below and an information interaction method of a three-dimensional graphics rendering engine described above may refer to each other.
Referring to fig. 4, a structure diagram of an information interaction apparatus of a three-dimensional graphics rendering engine according to an embodiment of the present invention is shown in fig. 4, and includes:
a receiving module 401, configured to receive an input event sent by an external device;
a sending module 402, configured to send the input event to a responder, so that the responder executes a preset change according to the input event.
According to the information interaction device of the three-dimensional graphic rendering engine, when the input event triggered by the external equipment is sensed, the input event is sent to the corresponding responder, the responder judges that the input event meets the corresponding requirement of the responder according to the attribute of the input equipment and then executes the preset change, so that a user can control various changes in the three-dimensional graphic rendering engine in real time, and the information interaction between the three-dimensional graphic rendering engine and the external equipment is realized.
On the basis of the foregoing embodiment, as a preferred implementation, the sending module specifically includes:
a sending unit, configured to send the input event to all responders by the engine;
and the judging unit is used for judging whether the input event needs to be responded or not by the responders according to the attribute of the input event, and if so, executing preset change.
On the basis of the foregoing embodiment, as a preferred implementation, the sending module specifically includes:
the query unit is used for the engine to query the execution responder corresponding to the input event according to the attribute of the input event and send the input event to the execution responder;
and the execution unit is used for executing preset change by the execution responder according to the input event.
The information interaction system of the three-dimensional graphics rendering engine provided by the embodiment of the invention is introduced below, and the information interaction system of the three-dimensional graphics rendering engine described below and the information interaction method of the three-dimensional graphics rendering engine described above can be referred to each other.
Referring to fig. 5, a structure diagram of an information interaction system of a three-dimensional graphics rendering engine according to an embodiment of the present invention is shown in fig. 5, and includes an engine and a responder;
the engine is used for receiving an input event sent by an external device and sending the input event to the responder;
the responder is used for executing preset change according to the input event.
According to the information interaction system of the three-dimensional graphic rendering engine, provided by the embodiment of the invention, when the input event triggered by the external equipment is sensed, the input event is sent to the corresponding responder, and the responder executes the preset change after judging that the input event meets the corresponding requirement of the responder according to the attribute of the input equipment, so that a user can control various changes in the three-dimensional graphic rendering engine in real time, and the information interaction between the three-dimensional graphic rendering engine and the external equipment is realized.
The embodiment of the present invention further provides a computer-readable storage medium, where an information interaction program is stored on the computer-readable storage medium, and the information interaction program, when executed, may implement the steps provided in the above embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (5)

1. An information interaction method of a three-dimensional graphic rendering engine is characterized by comprising the following steps:
the engine receives an input event sent by the external equipment;
the engine sends the input event to a responder, so that the responder executes preset change according to the input event;
wherein the engine sending the input event to a responder so that the responder performs a preset change according to the input event comprises:
the engine queries an execution responder corresponding to the input event according to the attribute of the input event and sends the input event to the execution responder; wherein, the corresponding relationship between the input event and the execution responder is as follows: one input event corresponds to a plurality of execution responders, or a plurality of input events correspond to one execution responder;
the execution responder executes preset changes according to the input events.
2. The information interaction method of claim 1, wherein the engine sends the input event to a responder, so that the responder performs preset changes according to the input event comprises:
the engine sends the input event to all responders;
and the all responders judge whether the input event needs to respond or not according to the attribute of the input event, and if so, execute preset change.
3. An information interaction apparatus of a three-dimensional graphic rendering engine, comprising:
the receiving module is used for receiving an input event sent by external equipment;
the sending module is used for sending the input event to a responder so that the responder can execute preset change according to the input event;
wherein, the sending module specifically comprises:
the query unit is used for the engine to query the execution responder corresponding to the input event according to the attribute of the input event and send the input event to the execution responder; wherein, the corresponding relationship between the input event and the execution responder is as follows: one input event corresponds to a plurality of execution responders, or a plurality of input events correspond to one execution responder;
and the execution unit is used for executing preset change by the execution responder according to the input event.
4. The information interaction device according to claim 3, wherein the sending module specifically comprises:
a sending unit, configured to send the input event to all responders by the engine;
and the judging unit is used for judging whether the input event needs to be responded or not by the responders according to the attribute of the input event, and if so, executing preset change.
5. A computer-readable storage medium, wherein an information interaction program is stored on the computer-readable storage medium, and when executed, the information interaction program implements the information interaction method according to claim 1 or 2.
CN201710875655.7A 2017-09-25 2017-09-25 Information interaction method, device and system of three-dimensional graphic rendering engine Active CN107608608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710875655.7A CN107608608B (en) 2017-09-25 2017-09-25 Information interaction method, device and system of three-dimensional graphic rendering engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710875655.7A CN107608608B (en) 2017-09-25 2017-09-25 Information interaction method, device and system of three-dimensional graphic rendering engine

Publications (2)

Publication Number Publication Date
CN107608608A CN107608608A (en) 2018-01-19
CN107608608B true CN107608608B (en) 2021-01-26

Family

ID=61058324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710875655.7A Active CN107608608B (en) 2017-09-25 2017-09-25 Information interaction method, device and system of three-dimensional graphic rendering engine

Country Status (1)

Country Link
CN (1) CN107608608B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157175B (en) * 2020-01-22 2024-07-26 优酷文化科技(北京)有限公司 Special effect engine, interactive special effect generation method using same and user interaction method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838615A (en) * 2014-02-28 2014-06-04 广州华多网络科技有限公司 Strategy execution method, strategy execution device and strategy execution system
CN104423648A (en) * 2013-09-10 2015-03-18 三星电子株式会社 Method and system for inputting in electronic device
CN104808913A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Event responding method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130104073A1 (en) * 2010-06-22 2013-04-25 Ohio University Immersive video intelligence network
CN102541331B (en) * 2010-12-30 2014-09-17 福建星网视易信息系统有限公司 Multi-area sliding click responding method and system in touch display
CN102789348A (en) * 2011-05-18 2012-11-21 北京东方艾迪普科技发展有限公司 Interactive three dimensional graphic video visualization system
CN102523473B (en) * 2011-12-01 2016-08-31 南京中兴软件有限责任公司 A kind of three-dimensional interface display device, method and terminal
CN103440114B (en) * 2013-07-17 2016-09-07 中国石油天然气股份有限公司 Three-dimensional well trajectory display system based on Web framework
CN105701851B (en) * 2014-11-28 2019-02-19 星际空间(天津)科技发展有限公司 A kind of 3 d rendering engine system based on geography information
CN106909263A (en) * 2015-12-22 2017-06-30 王骁勇 The interactive display method and system of 3-D view

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423648A (en) * 2013-09-10 2015-03-18 三星电子株式会社 Method and system for inputting in electronic device
CN104808913A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Event responding method and device
CN103838615A (en) * 2014-02-28 2014-06-04 广州华多网络科技有限公司 Strategy execution method, strategy execution device and strategy execution system

Also Published As

Publication number Publication date
CN107608608A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN107045508B (en) Application program processing method and device
WO2017177766A1 (en) Virtual reality device control method and apparatus, and virtual reality device and system
US10891793B2 (en) Reality to virtual reality portal for dual presence of devices
US11227437B2 (en) Three-dimensional model constructing method, apparatus, and system
CN106485956A (en) Method and device for demonstrating functions of electronic equipment and intelligent terminal
CN105190486A (en) Display apparatus and user interface screen providing method thereof
KR20130086138A (en) Cross-platform application framework
CN111420399A (en) Virtual character reloading method, device, terminal and storage medium
CN105912232B (en) Information processing method and electronic equipment
JP2023549747A (en) Representation format for tactile objects
US20170185567A1 (en) User interface control layout method and electronic device
JP2013118612A (en) Screen capture method for mobile communication terminal
CN112190943B (en) Game display method and device, processor and electronic equipment
CN114661284A (en) Game editing method, game running method, game editing device and computer equipment
CN110704058A (en) Page rendering method and device, storage medium, processor and electronic device
CN111124668A (en) Memory release method and device, storage medium and terminal
CN107608608B (en) Information interaction method, device and system of three-dimensional graphic rendering engine
CN111158573A (en) Vehicle-mounted machine interaction method, system, medium and equipment based on picture framework
Al-Sada et al. Input forager: A user-driven interaction adaptation approach for head worn displays
CN113031846B (en) Method and device for displaying description information of task and electronic equipment
CN108345418B (en) Interactive object display method and device in online teaching
Ariffin et al. Enhancing tourism experiences via mobile augmented reality by superimposing virtual information on artefacts
US9384013B2 (en) Launch surface control
CN111880876B (en) Object processing method and related device
KR20240085130A (en) Ai-based interactive avatar-talk providing device and method

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