CN107608684B - Three-dimensional game model data processing method and network game system - Google Patents

Three-dimensional game model data processing method and network game system Download PDF

Info

Publication number
CN107608684B
CN107608684B CN201710936535.3A CN201710936535A CN107608684B CN 107608684 B CN107608684 B CN 107608684B CN 201710936535 A CN201710936535 A CN 201710936535A CN 107608684 B CN107608684 B CN 107608684B
Authority
CN
China
Prior art keywords
data
file
model
dimensional game
precision
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
CN201710936535.3A
Other languages
Chinese (zh)
Other versions
CN107608684A (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.)
Shenzhen Saturn Game Network Co ltd
Original Assignee
Shenzhen Saturn Game Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Saturn Game Network Co ltd filed Critical Shenzhen Saturn Game Network Co ltd
Priority to CN201710936535.3A priority Critical patent/CN107608684B/en
Publication of CN107608684A publication Critical patent/CN107608684A/en
Application granted granted Critical
Publication of CN107608684B publication Critical patent/CN107608684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a three-dimensional game model data processing method and a network game system, wherein the method comprises the steps of analyzing a first file, splitting the first file into a second file and a third file, wherein the first file stores first three-dimensional game model data, the second file stores second three-dimensional game model data of discarding part of precision data from the first three-dimensional game model data, and the third file stores the discarded precision data; and obtaining and running the second file to generate a three-dimensional game model with reduced precision. The application can reduce the storage space occupied by the game inclusion while ensuring the quality of the model, and promote the game experience of players.

Description

Three-dimensional game model data processing method and network game system
Technical Field
The application relates to a three-dimensional network game technology.
Background
At present, games are increasingly popular, particularly most mobile phone games are manufactured by adopting a three-dimensional technology, in order to enrich game content, have excellent expressive force and better experience, developers introduce a large number of three-dimensional models and actions, but the games can be oversized in inclusion, excessively long in downloading time, occupy more disk space and are unfavorable for game popularization.
In the prior art, one solution is to make sub-packets, divide game data into a first packet and a resource packet, and install and run after the first packet is downloaded by a user, but if the user wants to continue playing, all the remaining resource packets need to be downloaded continuously, so that the actual packet downloaded by the user is still very large, and the mode can cause the user to feel objectionable. Another solution is to make a low-mode game package with a lower number of split rolls and a high-mode game package with a higher number of split rolls, both of which can be run independently, however, when a player selects the low-mode game package, the player can control the size of the low-mode game package, but the model quality is reduced due to the smaller number of split rolls, so that the player has a rough feeling, and the player always selects to download the high-mode game package later, which can occupy a larger storage space.
Disclosure of Invention
The application aims to provide a novel three-dimensional game model data processing method, which can reduce the storage space occupied by a game inclusion while ensuring the quality of a model and improve the game experience of a player.
One aspect of the present application provides a three-dimensional game model data processing method, including:
analyzing a first file, splitting the first file into a second file and a third file, wherein the first file stores first three-dimensional game model data, the second file stores second three-dimensional game model data of discarding part of precision data in the first three-dimensional game model data, and the third file stores the discarded precision data; and
and obtaining and operating the second file, and generating a three-dimensional game model with reduced precision.
Preferably, the first three-dimensional model data is single-precision type data, and the second three-dimensional game model data is half-precision type data.
Preferably, the length of the data type of the first three-dimensional model data is greater than the length of the data type of the second three-dimensional game model data, or equal to twice the length of the data type of the second three-dimensional game model data, or equal to the sum of the length of the data type of the second three-dimensional game model data and the length of the data type of the precision data.
Preferably, the method further comprises: downloading to obtain the third file when a given condition is met, and merging the precision data in the third file with the second three-dimensional game model data in the second file; and running the merged three-dimensional game model data.
Preferably, the given condition is that the user issues an instruction to download the third file.
Preferably, the first three-dimensional game model data comprises first model grid data and first model action data; the second three-dimensional game model data comprises second model network data which discards part of precision data from the first model grid data and second model action data which has the same length as the data type of the first model action data; or the second three-dimensional game model data comprises second model network data with the same length as the data type of the first model grid data and second model action data which discards part of precision data from the first model action data; or the second three-dimensional game model data comprises second model network data which discards part of precision data from the first model grid data and second model action data which discards part of precision data from the first model action data.
Preferably, before splitting the first file into the second file and the third file, the method further includes: and eliminating normal data, tangent data and/or partial action curve data in the third three-dimensional game model data stored in the fourth file to obtain the first file.
Preferably, the method further comprises: storing the rejected data in a fifth file; and downloading to obtain the fifth file, and merging the fifth file with the first file to restore the fourth file.
Another aspect of the present application provides a network game system, comprising:
a three-dimensional game model data processing server configured to parse a first file, split the first file into a second file and a third file, wherein the first file stores first three-dimensional game model data, the second file stores second three-dimensional game model data of discarding part of precision data from the first three-dimensional game model data, and the third file stores the discarded precision data; and
and the game user terminal is configured to acquire and run the second file and generate a three-dimensional game model with reduced precision.
Preferably, the game user terminal is a portable mobile device.
According to the application, the source three-dimensional game model data is split into the model file with the adjusted precision and the precision restoring file, and the player can run the whole game with higher visual quality after downloading the model file with the adjusted precision.
Drawings
FIG. 1 illustrates a network gaming system in accordance with one embodiment of the present application;
FIG. 2 illustrates a three-dimensional game model data processing method according to an embodiment of the present application; and
fig. 3 shows a three-dimensional game model data processing method according to another embodiment of the present application.
Detailed Description
The three-dimensional game model data processing method and the network game system according to the present application will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a network game system according to an embodiment of the present application includes a three-dimensional game model data processing server 10 and a game user terminal 20. The gaming user terminal 20 is preferably a portable mobile device such as a cell phone, tablet computer, palm game console, or the like. It will be appreciated that the gaming user terminal 20 may also be a desktop or notebook computer or the like. The game user terminal 20 may be connected to the three-dimensional game model data processing server 10 through a wireless or wired network.
The three-dimensional game model data processing server 10 is configured to parse a first file, split the first file into a second file and a third file, wherein the first file stores first three-dimensional game model data, the second file stores second three-dimensional game model data of discarding part of precision data from the first three-dimensional game model data, and the third file stores the discarded precision data;
the game user terminal 20 is configured to obtain and run the second file, generate a three-dimensional game model with reduced accuracy, and download the third file when a given condition is satisfied, merge accuracy data in the third file with second three-dimensional game model data in the second file, and run the merged three-dimensional game model data.
Preferably, the first three-dimensional model data is single-precision type data, and the second three-dimensional game model data is half-precision type data. The length of the data type of the first three-dimensional model data is greater than the length of the data type of the second three-dimensional game model data, or equal to twice the length of the data type of the second three-dimensional game model data, or equal to the sum of the length of the data type of the second three-dimensional game model data and the length of the data type of the precision data.
In the application, the source three-dimensional game model data is split into the model file with the adjusted precision and the precision restoring file, and the player can run the whole game with higher visual quality after only downloading the model file with the adjusted precision, and can further select to download the precision restoring file and combine the precision restoring file with the model file with the adjusted precision to obtain the high-precision model file. The number of faces of the model in the model file subjected to the adjustment accuracy is not changed as compared with the source three-dimensional game model data, but a smaller game package is obtained by reducing the accuracy of the model data. For mobile games, a model is from tens to thousands of faces, and reducing accuracy to some extent with smaller screens is essentially indistinguishable in visual appearance. Therefore, the application can reduce the storage space occupied by the game inclusion while ensuring the quality of the game model, and promote the game experience of players. According to the application, the size of the game inclusion can be reduced by 30-40% under the condition of basically not influencing visual sense by carrying out precision adjustment on the three-dimensional game model data.
Referring to fig. 2, a three-dimensional game model data processing method according to an embodiment of the present application includes:
s11, analyzing a first file, splitting the first file into a second file and a third file, wherein the first file stores first three-dimensional game model data, the second file stores second three-dimensional game model data of which part of precision data is abandoned from the first three-dimensional game model data, and the third file stores the abandoned precision data;
s12, obtaining and operating the second file, and generating a three-dimensional game model with reduced precision.
A three-dimensional game model data processing method according to another more detailed embodiment of the present application will be described with reference to fig. 3. The method is particularly suitable for, but not limited to, use in a cell phone game, including:
s21, obtaining a first file, and respectively executing SA22 and SB22. The three-dimensional game model data can be data derived from three-dimensional software and mainly comprises first model grid data and first model action data.
The first model mesh data includes vertex data, tangent data, normal data, texture data, skin data, and the like, and the first model motion data includes motion curve data and the like.
In this embodiment, the three-dimensional game model data stored in the first file may preferably be a 32-bit single-precision floating point type, and the data type has a length of 4 bytes. It will be appreciated that in further embodiments, other data types may also be employed.
SA22, analyzing the first file to obtain first model grid data in the first file.
And SA23, judging whether normal line data and tangent line data in the first model grid data are eliminated, if so, taking the vertex data, texture data, skin data and the like which remain after eliminating the normal line data and the tangent line data as second model grid data, executing SA24 by taking the second model grid data as model grid data to be analyzed, and otherwise, executing SA25 by taking the first model grid data as model grid data to be analyzed.
For mobile phone game, since the mobile phone screen is relatively small, most three-dimensional models of mobile phone games are basically indistinguishable visually even without normal data and tangential data, so that the data can be removed, and thus, the data storage space can be saved by 2 times of the vertex data.
It can be understood that, according to actual needs, only normal data or only tangent data can be removed, and when normal data and/or tangent data are removed, part or all of data in the corresponding data set can be removed.
SA24, analyzing the model mesh data to be analyzed, splitting the contained data into third model mesh data and mesh precision restoring data, wherein the third model mesh data is model mesh data which discards at least part of precision data from the model mesh data to be analyzed, the mesh precision restoring data is the discarded precision data, and then executing S25.
In this embodiment, the model mesh data to be analyzed is single-precision data, 4 bytes occupied by each unit, these model mesh data are normalized, and then the single precision is adjusted to half precision, so that the high-order precision can be discarded, so that each unit of the third model mesh data occupies 2 bytes, and the discarded high-order precision and each data in the third model mesh data are stored in the mesh precision restoring data in a one-to-one correspondence. It will be appreciated that in more embodiments, accuracy adjustment may be performed on the model mesh data to be resolved in other manners, so long as the third model mesh data can reduce the storage space occupied by the data while meeting a certain model accuracy.
SB22, analyze the first file, obtain the first model action data in the first file.
And SB23, judging whether to reject part of the motion curve data in the first model motion data, if yes, taking the motion curve data remained after the part of the motion curve is rejected as second model motion data, executing SB24 by taking the second model motion data as model motion data to be analyzed, and otherwise, executing SB25 by taking the first model motion data as model motion data to be analyzed.
Preferably, the part of the motion curve data of the first model, which does not need the motion curve scaling function, can be selected and removed.
SB24, analyzing the model action data to be analyzed, splitting the contained data into third model action data and action precision restoring data, wherein the third model action data is model action data which discards at least part of precision data from the model action data to be analyzed, the action precision restoring data is the discarded precision data, and executing S25.
In this embodiment, the model action data to be analyzed is single-precision data, 4 bytes occupied by each unit, these model action data are normalized, and then the single precision is adjusted to half precision, so that the high-order precision can be discarded, so that each unit of the third model action data occupies 2 bytes, and the discarded high-order precision and each data in the third model action data are stored in the action precision restoring data in a one-to-one correspondence. It will be appreciated that in more embodiments, other manners of adjusting the accuracy of the model motion data to be analyzed may be adopted, so long as the third model motion data can reduce the storage space occupied by the data while satisfying a certain motion accuracy.
S25, combining the third model network data and the third model action data into a second file, and combining the grid precision restoring data and the action precision restoring data into a third file. The third file may be downloaded as a resource package for the gamer as needed.
S26, the game user terminal 20 downloads and obtains a second file, and runs the second file to generate a three-dimensional game model with lower precision.
And S27, when the given condition is met, the game user terminal 20 continues to download to obtain a third file, combines the precision restoring data in the third file with the game model data in the second file, and runs the combined game model data to generate a three-dimensional game model with higher precision.
The given condition may be, for example, that the user instructs to download the third file.
Preferably, in more embodiments, the normal data and tangent data removed in the SA23 and the partial action curve data removed in the SB23 may be stored in the fourth file, and the fourth file is downloaded when a given condition is satisfied (for example, when the user issues an instruction to download the fourth file), and the game model data combined in S27 and the data of the fourth file are further combined, and then the further combined file is operated to generate the three-dimensional game model with complete precision.
In the above embodiment, the accuracy of the model network data and the model action data is adjusted, so that the lengths of the data types of the adjusted model network data and model action data are smaller than those of the model network data and model action data before adjustment. It will be appreciated that in further embodiments, only the model mesh data may be precision adjusted, or only the model action data may be precision adjusted. When the accuracy adjustment is performed on the model mesh data and/or the model action data, part of data or all data in the corresponding data set can be adjusted.
It should be noted that the present application is not limited to the above embodiments, and those skilled in the art can make other changes according to the inventive spirit of the present application, and these changes according to the inventive spirit of the present application should be included in the scope of the present application as claimed.

Claims (9)

1. A three-dimensional game model data processing method, characterized by comprising:
analyzing a first file, splitting the first file into a second file and a third file, wherein the first file stores first three-dimensional game model data, the second file stores second three-dimensional game model data of which part of precision data is abandoned from the first three-dimensional game model data, and the third file stores abandoned precision data; and
obtaining and operating the second file, and generating a three-dimensional game model with reduced precision;
the length of the data type of the first three-dimensional game model data is greater than the length of the data type of the second three-dimensional game model data, or equal to twice the length of the data type of the second three-dimensional game model data, or equal to the sum of the length of the data type of the second three-dimensional game model data and the length of the data type of the precision data.
2. The method of claim 1, wherein the first three-dimensional game model data is single precision type data and the second three-dimensional game model data is half precision type data.
3. The method of any one of claims 1 to 2, further comprising:
downloading to obtain the third file when a given condition is met, and merging the precision data in the third file with the second three-dimensional game model data in the second file; and
and running the combined three-dimensional game model data.
4. A method according to claim 3, wherein the given condition is an instruction from a user to download the third file.
5. The method according to any one of claim 1 to 2, wherein,
the first three-dimensional game model data comprises first model grid data and first model action data;
the second three-dimensional game model data comprises second model network data which discards part of precision data from the first model grid data and second model action data which has the same length as the data type of the first model action data; or alternatively
The second three-dimensional game model data comprises second model network data with the same length as the data type of the first model grid data and second model action data which discards part of precision data from the first model action data; or the second three-dimensional game model data comprises second model network data which discards part of precision data from the first model grid data and second model action data which discards part of precision data from the first model action data.
6. The method of any of claims 1 to 2, further comprising, prior to splitting the first file into a second file and a third file: and eliminating normal data, tangent data and/or partial action curve data in the third three-dimensional game model data stored in the fourth file to obtain the first file.
7. The method as recited in claim 6, further comprising:
storing the rejected data in a fifth file; and
and downloading to obtain the fifth file, and merging the fifth file with the first file to restore the fourth file.
8. A network gaming system, comprising:
a three-dimensional game model data processing server configured to parse a first file, split the first file into a second file and a third file, wherein the first file stores first three-dimensional game model data, the second file stores second three-dimensional game model data of which part of precision data is discarded from the first three-dimensional game model data, and the third file stores discarded precision data; the length of the data type of the first three-dimensional game model data is greater than the length of the data type of the second three-dimensional game model data, or is equal to twice the length of the data type of the second three-dimensional game model data, or is equal to the sum of the length of the data type of the second three-dimensional game model data and the length of the data type of the precision data; and
and the game user terminal is configured to acquire and run the second file and generate a three-dimensional game model with reduced precision.
9. The system of claim 8, wherein the gaming user terminal is a portable mobile device.
CN201710936535.3A 2017-10-10 2017-10-10 Three-dimensional game model data processing method and network game system Active CN107608684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710936535.3A CN107608684B (en) 2017-10-10 2017-10-10 Three-dimensional game model data processing method and network game system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710936535.3A CN107608684B (en) 2017-10-10 2017-10-10 Three-dimensional game model data processing method and network game system

Publications (2)

Publication Number Publication Date
CN107608684A CN107608684A (en) 2018-01-19
CN107608684B true CN107608684B (en) 2023-09-05

Family

ID=61068827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710936535.3A Active CN107608684B (en) 2017-10-10 2017-10-10 Three-dimensional game model data processing method and network game system

Country Status (1)

Country Link
CN (1) CN107608684B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111617472A (en) * 2020-05-27 2020-09-04 腾讯科技(深圳)有限公司 Method and related device for managing model in virtual scene
CN112612488A (en) * 2020-12-29 2021-04-06 广州市昊盟计算机科技有限公司 Android game automatic subpackaging system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626391A (en) * 2008-07-08 2010-01-13 盛大计算机(上海)有限公司 Method for processing resource of network game client
CN103186399A (en) * 2011-12-31 2013-07-03 深圳市快播科技有限公司 Method and device for downloading large-scale game pack
CN103188554A (en) * 2011-12-29 2013-07-03 盛趣信息技术(上海)有限公司 Image coding method and image coding system
CN103927204A (en) * 2014-03-27 2014-07-16 北京视宴传媒科技有限公司 Web-version three-dimensional online game implementing method
CN105378662A (en) * 2013-05-30 2016-03-02 微软技术许可有限责任公司 Bundle package generation
CN107137928A (en) * 2017-04-27 2017-09-08 杭州哲信信息技术有限公司 Real-time interactive animated three dimensional realization method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7931533B2 (en) * 2001-09-28 2011-04-26 Igt Game development architecture that decouples the game logic from the graphics logics

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626391A (en) * 2008-07-08 2010-01-13 盛大计算机(上海)有限公司 Method for processing resource of network game client
CN103188554A (en) * 2011-12-29 2013-07-03 盛趣信息技术(上海)有限公司 Image coding method and image coding system
CN103186399A (en) * 2011-12-31 2013-07-03 深圳市快播科技有限公司 Method and device for downloading large-scale game pack
CN105378662A (en) * 2013-05-30 2016-03-02 微软技术许可有限责任公司 Bundle package generation
CN103927204A (en) * 2014-03-27 2014-07-16 北京视宴传媒科技有限公司 Web-version three-dimensional online game implementing method
CN107137928A (en) * 2017-04-27 2017-09-08 杭州哲信信息技术有限公司 Real-time interactive animated three dimensional realization method and system

Also Published As

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

Similar Documents

Publication Publication Date Title
CA2814420C (en) Load balancing between general purpose processors and graphics processors
US8290920B2 (en) System and method for remote updates
CN102195935B (en) game hosting system and method
US10860303B2 (en) Selective operating system patching/updating
CN107608684B (en) Three-dimensional game model data processing method and network game system
US9680894B2 (en) Multiple virtual machine memory usage reduction system and method
US20070087830A1 (en) Multi-component gaming system
KR102110195B1 (en) Apparatus and method for providing streaming video or application program
CN106651747B (en) The method for processing resource and device of simulated object in a kind of application
CN112891926A (en) Game terminal, cloud server, cloud game control method, and storage medium
CN110975294A (en) Game fighting implementation method and terminal
CN105245558B (en) Application program running method, system and server supporting virtual online
CN112843729B (en) Operation parameter determination method and device, computer equipment and storage medium
CN111314553B (en) Volume adjusting method, device, terminal and storage medium
US8676996B2 (en) System and method for variable time scale for multi-player games
CN116774910A (en) Network data processing method, device, equipment, storage medium and program product
JP6571821B2 (en) Game program and game system
JP6826633B2 (en) Game program and game system
JP2015502781A (en) Emulator game character deletion method, apparatus and system
KR102562174B1 (en) System and method for providing cloud game service
CN109857308B (en) Method and device for operating application
Jamraj et al. Developing an emulation model towards the preservation of modern computing systems
CN116451033A (en) Data noise filtering method and device and related products
CN116415133A (en) Method and device for calculating data purity
WO2015018229A1 (en) Data processing method and device employing the same

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