CN108470371A - Local processing method, device, processor and the terminal of threedimensional model - Google Patents

Local processing method, device, processor and the terminal of threedimensional model Download PDF

Info

Publication number
CN108470371A
CN108470371A CN201810254407.5A CN201810254407A CN108470371A CN 108470371 A CN108470371 A CN 108470371A CN 201810254407 A CN201810254407 A CN 201810254407A CN 108470371 A CN108470371 A CN 108470371A
Authority
CN
China
Prior art keywords
vertex
model
identifier information
partial model
partial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810254407.5A
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810254407.5A priority Critical patent/CN108470371A/en
Publication of CN108470371A publication Critical patent/CN108470371A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data

Landscapes

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

Abstract

The invention discloses a kind of local processing method of threedimensional model, device, processor and terminals.This method includes:First identifier information is parsed from the attribute information on each vertex of threedimensional model to be rendered, wherein, first identifier information is used to identify the partial model that each vertex is belonged in carrying out threedimensional model to be rendered multiple partial models that whole piecemeal is handled;Multiple vertex corresponding with partial model to be concealed are determined according to the second identifier information of partial model to be concealed and the first identifier information on each vertex;Hide multiple vertex corresponding with partial model to be concealed.The present invention solves the technical issues of three dimentional graph display provided in the relevant technologies is difficult to realize carry out hiding part or crash handling to the three-dimensional static model generated offline.

Description

Local processing method, device, processor and the terminal of threedimensional model
Technical field
The present invention relates to field of Computer Graphics, in particular to a kind of local processing method of threedimensional model, dress It sets, processor and terminal.
Background technology
It is well known that three-dimensional (3D) model in Modern computer graphics, is that one kind is formed by recording body surface, The method for realizing object in description real world.Body surface is abstracted as in Modern computer graphics and is made of point, line Stereoscopic grid.Any one object can be abstracted as a nested grid.
During using one nested grid of data representation, it is necessary first to all points of expression composition grid, and it is all Point between line.Therefore, 3D models are made of line between vertex and vertex.Each vertex includes mainly the point Position in the 3 d space.Line then indicates the correlation between vertex between vertex, and two tuples may be used (v1, v2) is described.And because two tuples belong to the concept in plane, a solid object can not be described, therefore, use A triangle or triple (v1, v2, v3) for three vertex composition describes.Further, all vertex and every three The set of the triangle of a vertex composition can be used for describing the arbitrary objects in 3d space.
The attribute on above-mentioned vertex may include not only its position (or coordinate position) in the 3 d space, and it is table that can also include Up to the required mapping coordinates of object real surface textures (its be used to indicate object table mask body material, texture coordinate), with And to be computed correctly the required vertex normal of lighting effect of the body surface in the worlds 3D (normal), vertex tangent (tangent), the mapping coordinates of the illumination pattern on vertex color (color) and vertex.Illumination pattern refers to indicate that body surface is bright Secretly change and the figure of dynamic generation.Such as:For a wooden box, textures should be a wooden texture.And work as When shining its surface using flashlight, it may appear that a hot spot.If this hot spot, which is stored as one, puts up map file, In render process, the effect that wooden box is illuminated by flashlight can be rendered by just not needing flashlight.
If it is desired to create a 3D scene, fine arts personnel can use 3D modeling tool (such as:3DS Max or project team Independently developed tool) it is pre-designed hundreds and thousands of a 3D models.Position, rotation, the size etc. of each model are not quite similar. These information can be recorded in computer documents by 3D modeling tool, normally referred to as document scene.In game process reality In operational process, by the pre-stored document scene of dynamic load, fine arts personnel can be restored in game picture and created in advance The 3D scenes built.Although the 3D scenes that fine arts personnel create generate offline, the major part provided in the relevant technologies 3D graphics engines can be realized carries out whole hide by wherein specific one or multiple 3D models.However, but cannot achieve Part is carried out to any one 3D model and hides processing.
For above-mentioned problem, currently no effective solution has been proposed.
Invention content
The present invention at least partly embodiment provides a kind of local processing method of threedimensional model, device, processor and end End, at least solve the three dimentional graph display provided in the relevant technologies be difficult to realize three-dimensional static model to generating offline into The technical issues of capable local hiding or crash handling.
According to a wherein embodiment of the invention, a kind of local processing method of threedimensional model is provided, including:
First identifier information is parsed from the attribute information on each vertex of threedimensional model to be rendered, wherein first Identification information is used in carrying out threedimensional model to be rendered multiple partial models that whole piecemeal is handled identify each The partial model that vertex is belonged to;According to the second identifier information of partial model to be concealed and the first identifier on each vertex Information determines multiple vertex corresponding with partial model to be concealed;Hide multiple tops corresponding with partial model to be concealed Point.
Optionally, the first identifier information according to the second identifier information of partial model to be concealed and each vertex is true Fixed multiple vertex corresponding with partial model to be concealed include:By the first identifier information on each vertex respectively with second identifier Information is compared, and obtains the vertex for being specific to partial model to be concealed;The vertex of partial model to be concealed will be specific to It is determined as multiple vertex corresponding with partial model to be concealed.
Optionally, according to the second identifier information of partial model to be concealed and the first identifier information on each vertex Before determining multiple vertex corresponding with partial model to be concealed, further include:In the render process of threedimensional model to be rendered In, receive the notification message for coming from Correspondent Node, wherein second identifier information is carried in notification message.
According to a wherein embodiment of the invention, the local processing method of another threedimensional model is additionally provided, including:
First identifier information is parsed from the attribute information on each vertex for the threedimensional model for waiting for collision detection, wherein First identifier information is used in multiple partial models that the threedimensional model for treating collision detection carries out that whole piecemeal is handled Identify the partial model that each vertex is belonged to;According to the second identifier information for the partial model for waiting for crash handling and each top The first identifier information of point determines multiple vertex corresponding with the partial model of crash handling is waited for;By with the part of waiting for crash handling The collision Attribute tuning on the corresponding multiple vertex of model is to non-enabled state.
Optionally, believed according to the second identifier information for the partial model for waiting for crash handling and the first identifier on each vertex Breath determines that multiple vertex corresponding with the partial model of crash handling is waited for include:By the first identifier information on each vertex respectively with Second identifier information is compared, and obtains the vertex for being specific to the partial model for waiting for crash handling;It will be specific to and wait for crash handling The vertex of partial model be determined as multiple vertex corresponding with the partial model of crash handling is waited for.
Optionally, according to the second identifier information for the partial model for waiting for crash handling and the first identifier on each vertex Before information determines multiple vertex corresponding with the partial model of crash handling is waited for, further include:It is received in response to user interface Touch control operation, chosen from the threedimensional model for wait for collision detection and wait for the partial model of crash handling.
According to a wherein embodiment of the invention, a kind of Local treatment device of threedimensional model is provided, including:
Parsing module, for parsing first identifier letter from the attribute information on each vertex of threedimensional model to be rendered Breath, wherein first identifier information is used to carry out multiple localized modes that whole piecemeal is handled to threedimensional model to be rendered The partial model that each vertex is belonged to is identified in type;Determining module, for the second identifier according to partial model to be concealed Information and the first identifier information on each vertex determine multiple vertex corresponding with partial model to be concealed;Processing module, For hiding multiple vertex corresponding with partial model to be concealed.
Optionally it is determined that module includes:Comparing unit, for marking the first identifier information on each vertex with second respectively Know information to be compared, obtains the vertex for being specific to partial model to be concealed;Determination unit, it is to be concealed for that will be specific to The vertex of partial model is determined as multiple vertex corresponding with partial model to be concealed.
Optionally, above-mentioned apparatus further includes:Receiving module, in the render process of threedimensional model to be rendered, connecing Receive the notification message for coming from Correspondent Node, wherein second identifier information is carried in notification message.
According to a wherein embodiment of the invention, the Local treatment device of another threedimensional model is provided, including:
Parsing module, for parsing the first mark from the attribute information on each vertex for the threedimensional model for waiting for collision detection Know information, wherein first identifier information is used to handle in the whole piecemeal of threedimensional model progress for treating collision detection more The partial model that each vertex is belonged to is identified in a partial model;Determining module, for according to the localized mode for waiting for crash handling The second identifier information of type and the first identifier information on each vertex determine corresponding with the partial model of crash handling is waited for more A vertex;Processing module, for by the collision Attribute tuning on multiple vertex corresponding with the partial model of crash handling is waited for non- Enabled state.
Optionally it is determined that module includes:Comparing unit, for marking the first identifier information on each vertex with second respectively Know information to be compared, obtains the vertex for being specific to the partial model for waiting for crash handling;Determination unit waits losing for that will be specific to The vertex for imitating the partial model of processing is determined as multiple vertex corresponding with the partial model of crash handling is waited for.
Optionally, above-mentioned apparatus further includes:Selection module, the touch control operation for being received in response to user interface, from It waits for choosing the partial model for waiting for crash handling in the threedimensional model of collision detection.
According to a wherein embodiment of the invention, a kind of storage medium is provided, storage medium includes the program of storage, In, equipment where controlling storage medium when program is run executes the local processing method of above-mentioned threedimensional model.
According to a wherein embodiment of the invention, a kind of processor is provided, processor is for running program, wherein program The local processing method of above-mentioned threedimensional model is executed when operation.
According to a wherein embodiment of the invention, a kind of terminal is provided, including:One or more processors, memory are shown Showing device and one or more programs, wherein one or more programs are stored in memory, and are configured as by one A or multiple processors execute, and one or more programs are used to execute the local processing method of above-mentioned threedimensional model.
In the present invention at least partly in embodiment, using parsing the from the attribute information on each vertex of threedimensional model One identification information, the first identifier information are used in carrying out multiple partial models that whole piecemeal is handled to threedimensional model The mode for identifying the partial model that each vertex is belonged to, according to the second identifier information of partial model to be concealed and each The first identifier information on vertex determines multiple vertex corresponding with partial model to be concealed and hides and part to be concealed The corresponding multiple vertex of model, a 3D model can not only be carried out whole hide by having reached, additionally it is possible to be realized a 3D Model carries out the hiding purpose in part (i.e. privileged site), to realize threedimensional model and its bounding box in enhancing scene of game Dismounting flexibility, promote the technique effect of game experiencing, and then solve the three dimentional graph display provided in the relevant technologies The technical issues of being difficult to realize carry out hiding part or crash handling to the three-dimensional static model generated offline.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the present invention wherein local processing method of the threedimensional model of an embodiment;
Fig. 2 is the flow chart according to the local processing method of another threedimensional model of a wherein embodiment of the invention;
Fig. 3 is the structure diagram according to the present invention wherein Local treatment device of the threedimensional model of an embodiment;
Fig. 4 is the structure diagram according to the present invention wherein Local treatment device of the threedimensional model of a preferred embodiment;
Fig. 5 is the structure diagram according to the Local treatment device of another threedimensional model of a wherein embodiment of the invention;
Fig. 6 is the structural frames according to the Local treatment device of another threedimensional model of a wherein preferred embodiment of the invention Figure.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
According to a wherein embodiment of the invention, a kind of embodiment of the local processing method of threedimensional model is provided, is needed Illustrate, step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions It executes, although also, logical order is shown in flow charts, and it in some cases, can be with suitable different from herein Sequence executes shown or described step.
Fig. 1 is according to the flow chart of the present invention wherein local processing method of the threedimensional model of an embodiment, such as Fig. 1 institutes Show, this method comprises the following steps:
Step S12 parses first identifier information from the attribute information on each vertex of threedimensional model to be rendered, In, first identifier information is used to carry out multiple partial models acceptance of the bid that whole piecemeal is handled to threedimensional model to be rendered Know the partial model that each vertex is belonged to;
Step S14, according to the second identifier information of partial model to be concealed and the first identifier information on each vertex Determine multiple vertex corresponding with partial model to be concealed;
Step S16 hides multiple vertex corresponding with partial model to be concealed.
Through the above steps, it may be used and parse first identifier letter from the attribute information on each vertex of threedimensional model Breath, the first identifier information are used in carrying out threedimensional model multiple partial models that whole piecemeal is handled identify each The mode for the partial model that vertex is belonged to, according to the of the second identifier information of partial model to be concealed and each vertex One identification information determines multiple vertex corresponding with partial model to be concealed and hides corresponding with partial model to be concealed Multiple vertex, 3D model can not only be carried out whole hide by having reached, additionally it is possible to be realized and be carried out a 3D model The hiding purpose in part (i.e. privileged site), to realize the dismounting spirit of threedimensional model and its bounding box in enhancing game engine Activity, the technique effect for promoting game experiencing, and then solve the three dimentional graph display provided in the relevant technologies and be difficult to realize The technical issues of hiding part or crash handling are carried out to the three-dimensional static model generated offline.
Above-mentioned attribute information can include but is not limited at least one of:Vertex color (color), tangential data (tangent) in, illumination pattern mapping coordinates.Fine arts personnel can be by above-mentioned first identifier during making 3D models offline Information is recorded in attribute information.
Optionally, in step S14, according to the first of the second identifier information of partial model to be concealed and each vertex Can also include step performed below before identification information determines multiple vertex corresponding with partial model to be concealed:
Step S13 receives the notification message for coming from Correspondent Node in the render process of threedimensional model to be rendered, Wherein, second identifier information is carried in notification message.
In view of will be responsible for processing by the graphics processor (GPU) in computer equipment in 3D model renderings to screen 's.Therefore, if it is desired to it realizes that the part (position) of 3D models hides, then needs to operate in central processing unit (CPU), i.e., it is above-mentioned Correspondent Node, on program will need identification information (the i.e. above-mentioned second identifier information) notice of hiding part (position) model To GPU.
The process for rendering 3D models is that static immutable 3D model datas are transferred to GPU by CPU, then again by GPU The process that the data received are handled.In the process, a most important step is that CPU exists the 3D models The information such as position, direction in world space are notified to GPU.For this purpose, in this step, it can be by new in an announcement message Increase and indicates which part of the model needs hiding related data.Such as:CPU notices GPU needs to hide the X office of the 3D models Portion (position) model.Meanwhile in the grid data of model being that each part (position) model is numbered, thus it can allow GPU can find the vertex of the corresponding all 3D models of corresponding X part (position) model, then as early as possible when rendering It is hidden.Specific Stealth Modus used by GPU is not specifically limited herein, such as:GPU can be by X part (portion Position) transparencies on vertex of the corresponding all 3D models of model is set as 0.
Optionally, in step S14, according to the of the second identifier information of partial model to be concealed and each vertex One identification information determines that multiple vertex corresponding with partial model to be concealed may include step performed below:
The first identifier information on each vertex is compared with second identifier information by step S141 respectively, is obtained exclusive In the vertex of partial model to be concealed;
The vertex for being specific to partial model to be concealed is determined as corresponding with partial model to be concealed by step S142 Multiple vertex.
During designing 3D models, in order to enable GPU can be searched when rendering by above-mentioned second identifier information To specific portion (position) model of model, logic partitioning processing can be executed.3D models are specifically subjected to piecemeal, and at it Record identification information in vertex attribute.Such as:One enclosure wall being made of four sides wall is logically segmented into four pieces (i.e. often Face wall is one piece), then in each vertex attribute of every face wall, record identification information.Specifically, the first face wall record identification 1 (it is 0001 that it, which is converted to tetrad), the second face wall record identification 2 (it is 0010 that it, which is converted to tetrad), Third face wall record identification 4 (it is 0100 that it, which is converted to tetrad), (it is converted to four to fourth face wall record identification 8 1000) binary number is.If encountering the vertex of two face walls boundary, the mark that can record two adjacent surfaces wall is being converted to two Progress or operation after system number, and using operation result as identification information.Such as:First face wall and the second face wall are in common edge On vertex be recorded as 0001 and 0010 or operation result 0011, i.e., identification information be 3.
In addition, when rendering each 3D models, processing is hidden if necessary to carry out part (position) to specific 3D models, then The identification information of part (position) model can be notified to GPU.It specifically, can (variable be used for by uniform variables Communication interaction between CPU and GPU holds each vertex at each vertex of each 3D models of GPU batch processings and pixel Vertex Shader code of row executes a Pixel Shader code to each pixel, and the value of the variable is kept not Become) by operating in the 3D rendering engine code on CPU, pass to the Vertex Shader program codes executed on GPU. Vertex Shader programs will be recorded in vertex color, tangential data and illumination when handling each vertex of the 3D models The identification information of part (position) model of one of figure mapping coordinates extracts.This process is a decoded in fact Journey calculates an integer value from the floating point values of color value, tangent line value or mapping coordinates.It is getting belonging to this vertex After the identification information of part (position) model, compared with the identification information by uniform variable transferrings.If passed through The identification information of uniform variable transferrings determines that multiple vertex are specific to part (position) mould corresponding to identification information of transmission Type, that is, the two is respectively converted into binary number and the result of execution or operation is 0, then needs to be hidden this vertex. Such as:Identification information by uniform variable transferrings is 4, and expression needs to be hidden processing to third face wall.And it is current The identification information on vertex is also precisely 4, and the operation result obtained after the two progress or operation is 0, then illustrates that the vertex is exclusive In third face wall, need to be hidden the vertex., whereas if the two is respectively converted into binary number and execution or operation Result be 0, then be not necessarily to this vertex is hidden.Such as:Identification information by uniform variable transferrings is 4, Expression needs to be hidden processing to third face wall.And the identification information of current vertex is 6, is obtained after the two progress or operation Operation result be not 0, then illustrate that the vertex is not specific to third face wall, but shared by two adjacent surfaces wall, be then not necessarily to pair This vertex is hidden.
In another alternative embodiment, during carrying out threedimensional model making, if some vertex is multiple localized modes Type is public, then replicates the public vertex of respective numbers, and records different identification informations, to correspond to the multiple part Model.If for example, a vertex is that two partial models are public, portion is replicated, two vertex correspond respectively to two parts Model;If a vertex is that three partial models are public, two parts are replicated, three vertex correspond respectively to three partial models. In this way in render process, the identification information of the partial model and partial model to be concealed corresponding to current vertex need to be only judged It is whether identical, as identical, it is hidden, it is normal if different to render, without considering whether as public vertex.
According to a wherein embodiment of the invention, the embodiment of the local processing method of another threedimensional model is additionally provided, Fig. 2 be according to the flow chart of the local processing method of another threedimensional model of a wherein embodiment of the invention, as shown in Fig. 2, This method comprises the following steps:
Step S22 parses first identifier letter from the attribute information on each vertex for the threedimensional model for waiting for collision detection Breath, wherein first identifier information is used to carry out multiple offices that whole piecemeal is handled in the threedimensional model for treating collision detection The partial model that each vertex is belonged to is identified in portion's model;
Step S24, according to the second identifier information for the partial model for waiting for crash handling and the first identifier on each vertex Information determines multiple vertex corresponding with the partial model of crash handling is waited for;
Step S26 enables the collision Attribute tuning on multiple vertex corresponding with the partial model of crash handling is waited for non- State.
Through the above steps, it may be used and parse first identifier letter from the attribute information on each vertex of threedimensional model Breath, the first identifier information are used in carrying out threedimensional model multiple partial models that whole piecemeal is handled identify each The mode for the partial model that vertex is belonged to, according to the second identifier information for the partial model for waiting for crash handling and each vertex First identifier information determine corresponding with the partial model of crash handling is waited for multiple vertex, by with the localized mode that waits for crash handling To non-enabled state, (i.e. crash handling makes partial model corresponding to it not to the collision Attribute tuning on the corresponding multiple vertex of type Collision detection is participated in again), can not only a 3D model be subjected to global failure processing to reach, additionally it is possible to realize one A 3D models carry out the purpose of part (i.e. privileged site) crash handling, to realize enhance in game engine threedimensional model and The dismounting flexibility of its bounding box promotes the technique effect of game experiencing, and then solves the three-dimensional provided in the relevant technologies Graphics engine is difficult to realize the technical issues of carrying out hiding part or crash handling to the three-dimensional static model generated offline.
Above-mentioned attribute information can include but is not limited at least one of:Vertex color (color), tangential data (tangent) in, illumination pattern mapping coordinates.Fine arts personnel can be by above-mentioned first identifier during making 3D models offline Information is recorded in attribute information.
Optionally, in step S24, according to the second identifier information for the partial model for waiting for crash handling and each vertex Can also include step performed below before first identifier information determines multiple vertex corresponding with the partial model of crash handling is waited for Suddenly:
Step S23 chooses from the threedimensional model for wait for collision detection and waits in response to the touch control operation that user interface receives The partial model of crash handling.
Collision body needs to depend on specific 3D models, is that 3D models indicate shape in physical world or simplifying for physical engine Formula.Such as:The collision body of one personage's 3D model can be a capsule body 3D model, and the collision body of an automobile 3D model can To be a cuboid box 3D model.The purpose for creating collision body is:Improve operational efficiency and calculating speed.Certainly, 3D models itself can be set to collision body for the calculating of physical engine.
Assuming that game player manipulation game role under scene of game using particular tool (such as:Hammer) tap house A wherein face wall (being equivalent to the above-mentioned touch control operation received in response to user interface), then for this static state three of house For dimension module, this face wall be the house whole threedimensional model in wait for the partial model of crash handling, including it is special Processing should be disabled by belonging to vertex.In addition, the bounding box in the house participates in collision detection due to needing, and due to that above-mentioned face wall It is got through, the bounding box department pattern opposite with this face wall no longer needs to participate in collision detection, therefore, this department pattern institute Including the collision attribute on exclusive vertex should be subjected to crash handling.
Optionally, in step s 24, according to the second identifier information for the partial model for waiting for crash handling and each vertex First identifier information determine that corresponding with the partial model of crash handling is waited for multiple vertex may include step performed below:
The first identifier information on each vertex is compared with second identifier information by step S241 respectively, is obtained exclusive In the vertex for the partial model for waiting for crash handling;
Step S242 will be specific to the localized mode for waiting for that the vertex of the partial model of crash handling is determined as and waits for crash handling The corresponding multiple vertex of type.
For collision body, above-mentioned similar determination method can also be used.Because of the collision body of a 3D model, In fact and a 3D grid.Only in general collision body be 3D models reduced form, vertex quantity will be less than The 3D models depended on.It therefore, equally can be by the code identification information of the part (position) belonging to each vertex on collision body To the vertex attribute information (such as:Vertex color, tangential data, illumination pattern mapping coordinates etc.) in.Then, collision inspection is being carried out When survey process, according to the identification information of part (position) model for waiting for collision detection, it can so that being specific to this waits for collision detection Part (position) model whole vertex collision attribute failure.In other words, when carrying out the ray detection of collision body, ignore Collide the vertex of attribute failure and its triangle of composition.Processing in view of collision body is completed in computer system, with 3D models Processing compare, the former can be completed by executing the program code write on CPU, and the latter need CPU and GPU it Between communicated, that is, need CPU program codes to cooperate to complete with GPU program code.Accordingly, with respect to the office of collision body Portion hides processing, and the part compared to render process hides processing, and operating process is simpler, treatment effeciency higher.
According to a wherein embodiment of the invention, a kind of embodiment of the Local treatment device of threedimensional model is provided, Fig. 3 is According to the structure diagram of the present invention wherein Local treatment device of the threedimensional model of an embodiment, as shown in figure 3, the device packet It includes:Parsing module 10, for parsing first identifier information from the attribute information on each vertex of threedimensional model to be rendered, Wherein, first identifier information is used in carrying out multiple partial models that whole piecemeal is handled to threedimensional model to be rendered Identify the partial model that each vertex is belonged to;Determining module 20, for being believed according to the second identifier of partial model to be concealed The first identifier information on breath and each vertex determines multiple vertex corresponding with partial model to be concealed;Processing module 30, For hiding multiple vertex corresponding with partial model to be concealed.
Optionally it is determined that module 20 may include:Comparing unit (not shown), for being marked the first of each vertex Know information to be compared with second identifier information respectively, obtains the vertex for being specific to partial model to be concealed;Determination unit (figure In be not shown), it is corresponding with partial model to be concealed more for being determined as on the vertex for being specific to partial model to be concealed A vertex.
Optionally, Fig. 4 is the structure according to the present invention wherein Local treatment device of the threedimensional model of a preferred embodiment Block diagram, as shown in figure 4, above-mentioned apparatus further includes:Receiving module 40 is used in the render process of threedimensional model to be rendered, Receive the notification message for coming from Correspondent Node, wherein second identifier information is carried in notification message.
According to a wherein embodiment of the invention, the embodiment of the Local treatment device of another threedimensional model is additionally provided, Fig. 5 is according to the structure diagram of the Local treatment device of another threedimensional model of a wherein embodiment of the invention, such as Fig. 5 institutes Show, which includes:Parsing module 50, for being parsed from the attribute information on each vertex for the threedimensional model for waiting for collision detection Go out first identifier information, wherein first identifier information is used to carry out whole piecemeal processing in the threedimensional model for treating collision detection The partial model that each vertex is belonged to is identified in obtained multiple partial models;Determining module 60 is waited for for basis at failure The second identifier information of the partial model of reason and the first identifier information on each vertex determine and wait for the localized mode of crash handling The corresponding multiple vertex of type;Processing module 70, for by the collision on multiple vertex corresponding with the partial model of crash handling is waited for Attribute tuning is to non-enabled state.
Optionally it is determined that module 60 may include:Comparing unit (not shown), for being marked the first of each vertex Know information to be compared with second identifier information respectively, obtains the vertex for being specific to the partial model for waiting for crash handling;It determines single First (not shown), for the part for waiting for that the vertex of the partial model of crash handling is determined as and waits for crash handling will to be specific to The corresponding multiple vertex of model.
Optionally, Fig. 6 is the Local treatment device according to another threedimensional model of a wherein preferred embodiment of the invention Structure diagram, as shown in fig. 6, above-mentioned apparatus further includes:Choose module 80, the touch-control for being received in response to user interface The partial model for waiting for crash handling is chosen in operation from the threedimensional model for wait for collision detection.
According to a wherein embodiment of the invention, a kind of storage medium is additionally provided, storage medium includes the program of storage, In, equipment where controlling storage medium when program is run executes the local processing method of above-mentioned threedimensional model.Above-mentioned storage is situated between Matter can include but is not limited to:USB flash disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disc or The various media that can store program code such as CD.
According to a wherein embodiment of the invention, a kind of processor is additionally provided, processor is for running program, wherein journey The local processing method of above-mentioned threedimensional model is executed when sort run.Above-mentioned processor can include but is not limited to:Microprocessor (MCU), the processing unit of programmable logic device (FPGA), CPU, GPU etc..
According to a wherein embodiment of the invention, a kind of terminal is additionally provided, including:One or more processors, memory, Display device and one or more program, wherein one or more programs are stored in memory, and be configured as by One or more processors execute, and one or more programs are used to execute the local processing method of above-mentioned threedimensional model.At some In embodiment, above-mentioned terminal can be smart mobile phone (such as:Android phone, iOS mobile phones etc.), tablet computer, palm PC And the terminal devices such as mobile internet device (Mobile Internet Devices, referred to as MID), PAD.Above-mentioned display Device can be the liquid crystal display (LCD) of touch-screen type, which may make user can be with user circle of terminal Face interacts.In addition, above-mentioned terminal can also include:Input/output interface (I/O interfaces), universal serial bus (USB) end Mouth, network interface, power supply and/or camera.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, Ke Yiwei A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (15)

1. a kind of local processing method of threedimensional model, which is characterized in that including:
First identifier information is parsed from the attribute information on each vertex of threedimensional model to be rendered, wherein described first Identification information is used to the threedimensional model to be rendered identify in multiple partial models that whole piecemeal is handled The partial model that each vertex is belonged to;
It is determined according to the second identifier information of partial model to be concealed and the first identifier information on each vertex and is waited for described The corresponding multiple vertex of hiding partial model;
Hide multiple vertex corresponding with the partial model to be concealed.
2. according to the method described in claim 1, it is characterized in that, according to second mark of the partial model to be concealed The first identifier information for knowing information and each vertex determines that multiple vertex corresponding with the partial model to be concealed include:
The first identifier information on each vertex is compared with the second identifier information respectively, acquisition be specific to it is described wait for it is hidden The vertex of the partial model of Tibetan;
The vertex for being specific to the partial model to be concealed is determined as corresponding multiple with the partial model to be concealed Vertex.
3. according to the method described in claim 1, it is characterized in that, according to described the second of the partial model to be concealed The first identifier information on identification information and each vertex determine corresponding with the partial model to be concealed multiple vertex it Before, further include:
In the render process of the threedimensional model to be rendered, the notification message for coming from Correspondent Node is received, wherein described The second identifier information is carried in notification message.
4. a kind of local processing method of threedimensional model, which is characterized in that including:
First identifier information is parsed from the attribute information on each vertex for the threedimensional model for waiting for collision detection, wherein described First identifier information is used to carry out multiple localized modes that whole piecemeal is handled to the threedimensional model for waiting for collision detection The partial model that each vertex is belonged to is identified in type;
According to the first identifier information determination on the second identifier information for the partial model for waiting for crash handling and each vertex and institute It states and waits for the corresponding multiple vertex of the partial model of crash handling;
By with the collision Attribute tuning for waiting for the corresponding multiple vertex of the partial model of crash handling to non-enabled state.
5. according to the method described in claim 4, it is characterized in that, according to described the of the partial model for waiting for crash handling The first identifier information on two identification informations and each vertex is determined waits for that the partial model of crash handling is corresponding multiple with described Vertex includes:
The first identifier information on each vertex is compared with the second identifier information respectively, obtains and waits losing described in being specific to Imitate the vertex of the partial model of processing;
Wait for that the vertex of the partial model of crash handling is determined as and the partial model pair for waiting for crash handling described in being specific to The multiple vertex answered.
6. according to the method described in claim 4, it is characterized in that, being waited for described in the partial model of crash handling according to Second identifier information and the first identifier information on each vertex are determined waits for that the partial model of crash handling is corresponding more with described Before a vertex, further include:
In response to the touch control operation that user interface receives, wait failing described in selection from the threedimensional model for waiting for collision detection The partial model of processing.
7. a kind of Local treatment device of threedimensional model, which is characterized in that including:
Parsing module, for parsing first identifier information from the attribute information on each vertex of threedimensional model to be rendered, Wherein, the first identifier information is used to carry out multiple offices that whole piecemeal is handled to the threedimensional model to be rendered The partial model that each vertex is belonged to is identified in portion's model;
Determining module, for according to the second identifier information of partial model to be concealed and the first identifier information on each vertex Determine multiple vertex corresponding with the partial model to be concealed;
Processing module, for hiding multiple vertex corresponding with the partial model to be concealed.
8. device according to claim 7, which is characterized in that the determining module includes:
Comparing unit is obtained for the first identifier information on each vertex to be compared with the second identifier information respectively It is specific to the vertex of the partial model to be concealed;
Determination unit, for the vertex for being specific to the partial model to be concealed to be determined as and the localized mode to be concealed The corresponding multiple vertex of type.
9. device according to claim 7, which is characterized in that described device further includes:
Receiving module, in the render process of the threedimensional model to be rendered, receiving the notice for coming from Correspondent Node Message, wherein the second identifier information is carried in the notification message.
10. a kind of Local treatment device of threedimensional model, which is characterized in that including:
Parsing module, for parsing first identifier letter from the attribute information on each vertex for the threedimensional model for waiting for collision detection Breath, wherein the first identifier information is used to handle to obtain to the whole piecemeal of threedimensional model progress for waiting for collision detection Multiple partial models in identify the partial model that each vertex is belonged to;
Determining module, for according to the second identifier information for the partial model for waiting for crash handling and the first identifier on each vertex Information is determined waits for the corresponding multiple vertex of the partial model of crash handling with described;
Processing module, for by with the collision Attribute tuning for waiting for the corresponding multiple vertex of the partial model of crash handling to non- Enabled state.
11. device according to claim 10, which is characterized in that the determining module includes:
Comparing unit is obtained for the first identifier information on each vertex to be compared with the second identifier information respectively It is specific to the vertex of the partial model for waiting for crash handling;
Determination unit described waits for that the vertex of the partial model of crash handling is determined as waiting for crash handling with described for will be specific to The corresponding multiple vertex of partial model.
12. device according to claim 10, which is characterized in that described device further includes:
Choose module, the touch control operation for being received in response to user interface, from the threedimensional model for waiting for collision detection The partial model of crash handling is waited for described in selection.
13. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require the office of the threedimensional model described in any one of 1 to 3 or 4 to 6 Portion's processing method.
14. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Profit requires the local processing method of the threedimensional model described in any one of 1 to 3 or 4 to 6.
15. a kind of terminal, which is characterized in that including:One or more processors, memory, display device and one or more A program, wherein one or more of programs are stored in the memory, and are configured as by one or more A processor executes, and one or more of programs require the three-dimensional described in any one of 1 to 3 or 4 to 6 for perform claim The local processing method of model.
CN201810254407.5A 2018-03-26 2018-03-26 Local processing method, device, processor and the terminal of threedimensional model Pending CN108470371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810254407.5A CN108470371A (en) 2018-03-26 2018-03-26 Local processing method, device, processor and the terminal of threedimensional model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810254407.5A CN108470371A (en) 2018-03-26 2018-03-26 Local processing method, device, processor and the terminal of threedimensional model

Publications (1)

Publication Number Publication Date
CN108470371A true CN108470371A (en) 2018-08-31

Family

ID=63265840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810254407.5A Pending CN108470371A (en) 2018-03-26 2018-03-26 Local processing method, device, processor and the terminal of threedimensional model

Country Status (1)

Country Link
CN (1) CN108470371A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109621421A (en) * 2018-12-24 2019-04-16 网易(杭州)网络有限公司 Information processing method and device
CN109857259A (en) * 2019-02-26 2019-06-07 网易(杭州)网络有限公司 Collision body interaction control method and device, electronic equipment and storage medium
CN110491517A (en) * 2019-07-12 2019-11-22 中国人民解放军陆军军医大学 A kind of threedimensional model locally translucent display operation implementation method and device
CN110738733A (en) * 2019-10-14 2020-01-31 北京代码乾坤科技有限公司 Three-dimensional terrain model generation method, storage medium, processor and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778740A (en) * 2015-04-16 2015-07-15 成都中科合迅科技有限公司 Dam construction progress three-dimensional simulation method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778740A (en) * 2015-04-16 2015-07-15 成都中科合迅科技有限公司 Dam construction progress three-dimensional simulation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯浩 等: "三维城市规划中的三维模型三角网格自动消隐和分割技术", 《武汉大学学报(工学版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109621421A (en) * 2018-12-24 2019-04-16 网易(杭州)网络有限公司 Information processing method and device
CN109857259A (en) * 2019-02-26 2019-06-07 网易(杭州)网络有限公司 Collision body interaction control method and device, electronic equipment and storage medium
CN109857259B (en) * 2019-02-26 2022-09-30 网易(杭州)网络有限公司 Collision body interaction control method and device, electronic equipment and storage medium
CN110491517A (en) * 2019-07-12 2019-11-22 中国人民解放军陆军军医大学 A kind of threedimensional model locally translucent display operation implementation method and device
CN110738733A (en) * 2019-10-14 2020-01-31 北京代码乾坤科技有限公司 Three-dimensional terrain model generation method, storage medium, processor and electronic device
CN110738733B (en) * 2019-10-14 2023-05-16 北京代码乾坤科技有限公司 Three-dimensional terrain model generation method, storage medium, processor and electronic device

Similar Documents

Publication Publication Date Title
CN108470371A (en) Local processing method, device, processor and the terminal of threedimensional model
Wylie et al. Tetrahedral projection using vertex shaders
CN110097625B (en) Fragment shaders perform vertex shader computations
US6608627B1 (en) Rendering a two-dimensional image
CN1932885B (en) Three-dimensional image processing
CN111080780B (en) Edge processing method and device for virtual character model
CN105809728A (en) Rendering views of scene in a graphics processing unit
Nadalutti et al. Rendering of X3D content on mobile devices with OpenGL ES
CN105549929A (en) Method, Apparatus, and Computer Program Product For Improved Graphics Performance
US9177418B1 (en) System and method for converting computer aided design data into a three dimensional model
CN111047509A (en) Image special effect processing method and device and terminal
Friese et al. Using game engines for visualization in scientific applications
Martyn Realistic rendering 3D IFS fractals in real-time with graphics accelerators
Scholz et al. Real‐time isosurface extraction with view‐dependent level of detail and applications
Dyken et al. Semi‐Uniform Adaptive Patch Tessellation
Vigueras et al. Workload balancing in distributed crowd simulations: the partitioning method
Camporesi et al. Computing shortest path maps with GPU shaders
CN105335995A (en) Multi-light source global illumination rendering method and apparatus
CN115063330A (en) Hair rendering method and device, electronic equipment and storage medium
JP2014219739A (en) Image processing apparatus which processes graphics by dividing space, and image processing method
Machover et al. Interactive computer graphics
CA2308249C (en) Triangle strip length maximization
CN110458931A (en) A kind of three-dimensional modeling data processing method and relevant device based on LOD grade
DU et al. Terrain Edge Stitching Based On Least Squares Generative Adversarial Networks
KR102488073B1 (en) Graphic processing method generating object by using index table and graphic processing device performing 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180831

RJ01 Rejection of invention patent application after publication