CN111198720A - Method for realizing webpage three-dimensional online game - Google Patents

Method for realizing webpage three-dimensional online game Download PDF

Info

Publication number
CN111198720A
CN111198720A CN201811274999.3A CN201811274999A CN111198720A CN 111198720 A CN111198720 A CN 111198720A CN 201811274999 A CN201811274999 A CN 201811274999A CN 111198720 A CN111198720 A CN 111198720A
Authority
CN
China
Prior art keywords
dimensional
browser
game
game content
flash plug
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.)
Withdrawn
Application number
CN201811274999.3A
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.)
Macheng Zhichuang Network Technology Co Ltd
Original Assignee
Macheng Zhichuang Network 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 Macheng Zhichuang Network Technology Co Ltd filed Critical Macheng Zhichuang Network Technology Co Ltd
Priority to CN201811274999.3A priority Critical patent/CN111198720A/en
Publication of CN111198720A publication Critical patent/CN111198720A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44557Code layout in executable memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention provides a method for realizing a webpage three-dimensional online game, which comprises the following steps: downloading the executable game content from the server to a local computer through a browser, and handing the executable game content to a Flash plug-in for analysis; the analyzed executable software codes are injected into AS3runtime to operate; loading and analyzing the three-dimensional resource; the three-dimensional resources are sent to a CPU for operation, and the operation result is intermediate data of final rendering; and combining the intermediate data into three-dimensional game content through the display card channel of the Flash plug-in, and displaying the three-dimensional game content in a rendering window of the browser. The invention has the following beneficial effects: the method can enable the three-dimensional game to directly run in the Flash Player environment of the browser, really realizes playing the game by opening the webpage, does not need to download and install a huge client, and has the advantages of small load, convenient use, greatly reduced popularization cost and large user penetration.

Description

Method for realizing webpage three-dimensional online game
Technical Field
The invention relates to the technical field of three-dimensional game realization, in particular to a method for realizing a webpage three-dimensional online game.
Background
Most of the existing three-dimensional games (such as multiplayer online first-person shooting games) in the market at present need to download and install huge clients with the size of 2G-8G to run, so that the three-dimensional games are very inconvenient to use and high in popularization cost. Until now, there has been no three-dimensional game on the global market that can be run directly within a browser web page.
The difficulty in directly running a three-dimensional game on a browser webpage is as follows:
1. the web page is operated as content or data by a browser, and the browser does not directly support functions such as three-dimensional operations that need to be completed by a video card, but the three-dimensional game is realized based on these three-dimensional operations.
2. Although the central processing unit can also complete the corresponding three-dimensional operation and other works, the real-time interactive three-dimensional online game cannot be supported due to low working efficiency.
3. The plug-in of the browser can be developed to realize the three-dimensional operation function in the browser, but the function of directly running the game by opening a webpage is lost because the plug-in needs to be run and installed.
4. Although the Flash plug-in which is a necessary plug-in for the browser provides a channel for operating the video card in a new version, because the Flash plug-in is an extension of browser software, the provided interface is very primitive and original, so that the achievable functions are greatly limited, and the realization of some basic functions is very difficult due to the problem of low working efficiency.
Disclosure of Invention
The invention provides a method for realizing a webpage version three-dimensional online game, which solves the problem that the three-dimensional online game cannot be directly operated in a browser webpage in the prior art.
The technical scheme of the invention is realized as follows:
a method for realizing a webpage three-dimensional online game comprises the following steps:
(1) Downloading the executable game content from the server to the local computer through the browser;
(2) Delivering the downloaded executable game content to a Flash plug-in running in a local computer for analysis;
(3) The Flash plug-in component injects the executable software codes obtained by analysis into AS3runtime for operation;
(4) The executable software code loads and analyzes the three-dimensional resource;
(5) The executable software code transmits the three-dimensional resource obtained by analysis to a CPU for operation, and the operation result is intermediate data of final rendering;
(6) And the executable software code combines the intermediate data into three-dimensional game content through the display card channel of the Flash plug-in and displays the three-dimensional game content in a rendering window of the browser.
The Flash plug-in is a Flash plug-in with a version of more than 11.0.
The browser is an IE browser or a 360 browser.
The CPU is an Intel core 2 quad-core central processing unit.
The model of the display card is HD 7870.
The invention has the beneficial effects that: the method can enable the three-dimensional game to directly run in the Flash Player environment of the browser, really realizes playing the game by opening the webpage, does not need to download and install a huge client, and has the advantages of small load, convenient use, greatly reduced popularization cost and large user penetration.
By using the display card interface of the Flash plug-in as a channel for operating the display card, a large number of functions are independently developed, the method which is realized by using the unconventional interfaces for customizing various common three-dimensional processing functions is adopted, the efficiency is optimized, the difficulty is overcome, and the real-time interaction requirement can be met. Aiming at some functions which cannot be realized by completely using the interface, the display card is in circuitous cooperation with the CPU by combining the processing capacity of the CPU, and the processing result similar to that of the client game is achieved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to 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.
Examples
A method for realizing a webpage three-dimensional online game comprises the following steps:
(1) Downloading the executable game content from the server to the local computer through the browser;
(2) Delivering the downloaded executable game content to a Flash plug-in running in a local computer for analysis;
(3) The Flash plug-in component injects the executable software codes obtained by analysis into AS3runtime for operation;
(4) Loading and analyzing the three-dimensional resource by the executable software code;
(5) The executable software code transmits the three-dimensional resource obtained by analysis to a CPU for operation, and the operation result is intermediate data of final rendering;
(6) And the executable software code combines the intermediate data into three-dimensional game content through a display card channel of the Flash plug-in and displays the three-dimensional game content in a rendering window of the browser.
The Flash plug-in is a Flash plug-in with a version of more than 11.0.
The browser is an IE browser or a 360 browser.
The CPU is an Intel core 2 quad-core CPU.
The display card is HD 7870.
The engine of the game is based on Adobe Action script3.0, and provides core functions of instant rendering, map segmentation, Level of Details, state data packet sending and receiving, Ray Tracing, physical collision and the like for the MMO-FPS game. The description of the individual core functions is as follows:
a real-time rendering module: the method provides the client rendering speed of 60 frames per second at most and supports million-order polygon operations in a visual range.
Dividing a map: the scene is divided into mutually independent squares, so that the optimization on the operation is realized, and the optimal operation and rendering efficiency is provided.
Level of Details: the accuracy of the chartlet and the model is intelligently changed according to the distance of an object, the loads of a CPU and a display card are reduced as far as possible in a visual range, and higher operation efficiency is realized.
And (3) sending and receiving the status data packet: based on the packet sending logic of the TCP/IP protocol, the behavior of the client is sent to the server at a certain frequency, the server receives the state packets of each client and then carries out the operation of game logic, physical logic and three-dimensional logic, and then the operation result is transmitted to each client. In order to ensure smooth operation experience of the client, the client and the server can intelligently adjust the optimal packet sending frequency to realize delay of 30 milliseconds.
Ray Tracing: and projecting the target object according to a certain point in the three-dimensional coordinates. During the period, physical logics such as collision, blocking and the like are calculated so as to realize bullet logic calculation of shooting games.
In conclusion, the method of the invention can enable the three-dimensional game to directly run in the FlashPlayer environment of the browser, really realize that the game can be played by opening the webpage without downloading and installing a huge client, has small loading capacity, convenient use, greatly reduced popularization cost and large user penetration.
The invention independently develops a large number of functions by using the display card interface of the Flash plug-in as a channel for operating the display card, customizes various common three-dimensional processing functions by using the unconventional interfaces, optimizes efficiency, overcomes difficulties and ensures that the method can meet the requirement of real-time interaction. Aiming at some functions which cannot be realized by completely using the interface, the display card is in circuitous cooperation with the CPU by combining the processing capacity of the CPU, and the processing result similar to that of the client game is achieved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (5)

1. A method for realizing a webpage three-dimensional online game is characterized by comprising the following steps:
(1) Downloading the executable game content from the server to the local computer through the browser;
(2) Delivering the downloaded executable game content to a Flash plug-in running in a local computer for analysis;
(3) The Flash plug-in component injects the executable software codes obtained by analysis into AS3runtime for operation;
(4) The executable software code loads and analyzes the three-dimensional resource;
(5) The executable software code transmits the three-dimensional resource obtained by analysis to a CPU for operation, and the operation result is intermediate data of final rendering;
(6) And the executable software code combines the intermediate data into three-dimensional game content through the display card channel of the Flash plug-in and displays the three-dimensional game content in a rendering window of the browser.
2. The method for realizing the webpage version three-dimensional online game is characterized in that the Flash plug-in is a Flash plug-in with a version of more than 11.0.
3. The method as claimed in claim 1, wherein the browser is an IE browser or 360 browser.
4. The method of claim 1, wherein said CPU is an Intel core 2 quad-core CPU.
5. The method of claim 1, wherein the display card has a model number of HD 7870.
CN201811274999.3A 2018-10-30 2018-10-30 Method for realizing webpage three-dimensional online game Withdrawn CN111198720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811274999.3A CN111198720A (en) 2018-10-30 2018-10-30 Method for realizing webpage three-dimensional online game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811274999.3A CN111198720A (en) 2018-10-30 2018-10-30 Method for realizing webpage three-dimensional online game

Publications (1)

Publication Number Publication Date
CN111198720A true CN111198720A (en) 2020-05-26

Family

ID=70745780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811274999.3A Withdrawn CN111198720A (en) 2018-10-30 2018-10-30 Method for realizing webpage three-dimensional online game

Country Status (1)

Country Link
CN (1) CN111198720A (en)

Similar Documents

Publication Publication Date Title
US11904233B2 (en) Method and apparatus for improving efficiency without increasing latency in graphics processing
US10668390B2 (en) Suspending state of cloud-based legacy applications
US9873045B2 (en) Systems and methods for a unified game experience
EP3750606A1 (en) Independent control of interactive streaming media
US20140073435A1 (en) Network game system without dynamic obstructions and processing method thereof
CN102254292A (en) Remote 3D instruction rendering system and method
US11110352B2 (en) Object moving method and apparatus, storage medium, and electronic apparatus
CN113710335A (en) Transactional memory synchronization
CN103647768A (en) Game client and realization method thereof
WO2002092177A2 (en) Method and arrangement for providing an interactive game including three-dimensional graphics
Meiländer et al. Bringing mobile online games to clouds
Okamoto et al. Load distribution by using web workers for a real-time web application
CN103927204A (en) Web-version three-dimensional online game implementing method
CN111198720A (en) Method for realizing webpage three-dimensional online game
US11813522B2 (en) Systems and methods for emulation of user input during a play of a legacy game
JP2023548922A (en) Virtual object control method, device, electronic device, and computer program
Vishnumolakala Performance evaluation of Gaming Anywhere server in a virtual environment
CN116850578A (en) Method and device for controlling virtual character in game and electronic equipment
Cai et al. Cloud Gaming
CN117205566A (en) Game control method, game control device, storage medium and apparatus
CN116474362A (en) Method and device for controlling virtual character in game and electronic equipment
Vattipally Measurement and Enhancement of Cloud-based Online Gaming Systems
CN116320645A (en) Information processing method, information processing device, storage medium, and electronic device
CN114570016A (en) Cloud game processing method, cloud game system and electronic equipment
CN116266138A (en) Method, device and equipment for optimizing delay between interactive players

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200526