CN106952340A - The method and device of three-dimensional modeling - Google Patents

The method and device of three-dimensional modeling Download PDF

Info

Publication number
CN106952340A
CN106952340A CN201710159639.8A CN201710159639A CN106952340A CN 106952340 A CN106952340 A CN 106952340A CN 201710159639 A CN201710159639 A CN 201710159639A CN 106952340 A CN106952340 A CN 106952340A
Authority
CN
China
Prior art keywords
ship
information
dimensional
model
virtual scene
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
CN201710159639.8A
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.)
Fuling Waterway Management Office Of Yangtze River
Original Assignee
Fuling Waterway Management Office Of Yangtze River
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 Fuling Waterway Management Office Of Yangtze River filed Critical Fuling Waterway Management Office Of Yangtze River
Priority to CN201710159639.8A priority Critical patent/CN106952340A/en
Publication of CN106952340A publication Critical patent/CN106952340A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Abstract

The invention provides a kind of method and device of three-dimensional modeling, belong to virtual technology field.Its method includes obtaining ship information and river scape information, the ship information includes vessel main body structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room information and lobby information, three-dimensional modeling is carried out to ship and the river scape further according to ship information and river scape information, obtain the threedimensional model of ship and the threedimensional model of river scape, the threedimensional model of the threedimensional model of the ship and river scape is associated afterwards, obtain three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and the ship moved on Jiang Jing.The method and device modeled using the three-dimensional can realize a virtual environment true to nature, save crewman's training cost.

Description

The method and device of three-dimensional modeling
Technical field
The present invention relates to virtual technology field, the method and device modeled in particular to a kind of three-dimensional.
Background technology
With developing rapidly for the present computer technology, the communication technology and other correlation techniques, information visuallization turns into New application development direction, the scene walkthrough technology based on virtual reality turns into the focus of current research.
Information-based, networking technology is widely applied on modern day marine vessel designs, and modern ship has had been equipped with respectively Advanced equipment is planted, the complexity and the degree more and more higher of automation of ship, operating personnel have to pass through strict training, And constantly learning various new knowledge, the operational procedure of new equipment, deck officer only grasps the ship constantly reformed as soon as possible Oceangoing ship operates driving technology, could meet the demand that shipping market drives the talent to various ships.With Technology for Modern Equipment technical merit Continuous improvement, quickly, ship assortment also becomes increasingly complex, therefore for the update of the equipment of ship, the training of crewman If from genuine cabin atmosphere, its cost is very huge, and the training time of crewman and place also can greatly be limited System.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of method and device of three-dimensional modeling, with reality An existing virtual environment true to nature, saves crewman's training cost.
In a first aspect, the embodiments of the invention provide a kind of method of three-dimensional modeling, methods described includes obtaining ship Oceangoing ship information and river scape information, the ship information include vessel main body structural information, cabin information, driver's cabin information, steering gear room letter Breath, central station of floating dock information, meeting room information and lobby information;According to the ship information and the river scape information to the ship Oceangoing ship and the river scape carry out three-dimensional modeling, obtain the threedimensional model of the ship and the threedimensional model of the Jiang Jing;By institute The threedimensional model of the threedimensional model and the Jiang Jing of stating ship is associated, and obtains three-dimensional virtual scene, the three-dimensional virtual scene The ship moved including the river scape and on the Jiang Jing.
In preferred embodiments of the present invention, the above-mentioned threedimensional model phase by the threedimensional model of the ship and the Jiang Jing Association, obtains three-dimensional virtual scene, and the three-dimensional virtual scene includes the river scape and described in being moved on the Jiang Jing Also include after ship:The image information of the ship and the image information of the Jiang Jing are obtained, described image information includes color Multimedia message and text information;The image information of image information and the Jiang Jing to the ship carries out rendering processing, obtains institute State the texture mapping of ship and the texture mapping of the Jiang Jing;By the texture mapping of the ship and the texture mapping of the Jiang Jing The three-dimensional virtual scene is loaded into, texture mapping three-dimensional virtual scene is obtained.
In preferred embodiments of the present invention, the above-mentioned threedimensional model phase by the threedimensional model of the ship and the Jiang Jing Association, obtains three-dimensional virtual scene, and the three-dimensional virtual scene includes the river scape and described in being moved on the Jiang Jing Also include after ship:Obtaining needs the equipment or part that carry out pseudo operation in the ship;To the equipment or portion Part carries out six degree of freedom modeling, obtains movable virtual unit or virtual component.
In preferred embodiments of the present invention, the above-mentioned threedimensional model phase by the threedimensional model of the ship and the Jiang Jing Association, obtains three-dimensional virtual scene, and the three-dimensional virtual scene includes the river scape and described in being moved on the Jiang Jing Also include after ship:Obtain redundant polygons and backfacing polygon in the three-dimensional virtual scene;Delete the described superfluous of acquisition Remaining polygon and backfacing polygon replace polygon according to Triangulation Algorithm with triangle.
In preferred embodiments of the present invention, the above-mentioned threedimensional model phase by the threedimensional model of the ship and the Jiang Jing Association, obtains three-dimensional virtual scene, and the three-dimensional virtual scene includes the river scape and described in being moved on the Jiang Jing Also include after ship:Obtain the threedimensional model of the different fine degrees of same object in the three-dimensional virtual scene, it is described not Threedimensional model with fine degree includes naive model and complex model;According to hierarchical model, when building from viewpoint farther out When, the naive model is called, when building is nearer from viewpoint, the complex model is called.
Second aspect, the embodiment of the present invention additionally provides a kind of device of three-dimensional modeling, and described device includes:First Data obtaining module, for obtaining ship information and river scape information, the ship information, which includes vessel main body structural information, cabin, to be believed Breath, driver's cabin information, steering gear room information, central station of floating dock information, meeting room information and lobby information;First model creation mould Block, for carrying out three-dimensional modeling to the ship and the river scape according to the ship information and the river scape information, is obtained To the threedimensional model and the threedimensional model of the Jiang Jing of the ship;Model association module, for by the three-dimensional mould of the ship Type and the threedimensional model of the Jiang Jing are associated, obtain three-dimensional virtual scene, the three-dimensional virtual scene include the Jiang Jing with And the ship moved on the Jiang Jing.
In preferred embodiments of the present invention, said apparatus also includes image collection module, for obtaining the ship The image information of image information and the Jiang Jing, described image information includes color information and text information;Texture acquirement module, For carrying out rendering processing to the image information of the ship image information and the Jiang Jing, obtain the ship texture mapping with The texture mapping of the Jiang Jing;Texture load-on module, for by the texture mapping of the texture mapping of the ship and the Jiang Jing Virtual light tender is loaded into, is more met the virtual light tender of real-world object.
In preferred embodiments of the present invention, said apparatus also includes the second data obtaining module, for obtaining the ship The equipment or part of progress pseudo operation are needed in oceangoing ship;Second model creation module, for entering to the equipment or part Row six degree of freedom is modeled, and obtains movable virtual unit or virtual component.
In preferred embodiments of the present invention, said apparatus also includes the 3rd data obtaining module, for obtaining described three Tie up redundant polygons and backfacing polygon in virtual scene;Removing module, for deleting the redundant polygons and the back of the body that obtain Face polygon replaces polygon according to Triangulation Algorithm with triangle.
In preferred embodiments of the present invention, said apparatus also includes the 4th data obtaining module, for obtaining described three The threedimensional model of the different fine degrees of same object in virtual scene is tieed up, the threedimensional model of the different fine degrees includes letter Single model and complex model;Model calling module, for according to hierarchical model, when building from viewpoint farther out when, call institute Naive model is stated, when building is nearer from viewpoint, the complex model is called.
Compared with prior art, the method and device for the three-dimensional modeling that various embodiments of the present invention are proposed is first by obtaining Ship information and river scape information are taken, the ship information includes vessel main body structural information, cabin information, driver's cabin information, steering gear room Information, central station of floating dock information, meeting room information and lobby information, further according to ship information and river scape information to ship and described River scape carries out three-dimensional modeling, the threedimensional model of ship and the threedimensional model of river scape is obtained, afterwards by the three-dimensional mould of the ship The threedimensional model of type and river scape is associated, and obtains three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and described The ship moved on Jiang Jing.This method and device can realize a virtual environment true to nature, save crewman's training cost.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore is not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows the structured flowchart of electronic equipment provided in an embodiment of the present invention;
Fig. 2 shows the flow chart of the method for the three-dimensional modeling that first embodiment of the invention is provided;
Fig. 3 shows the flow chart of the method for the three-dimensional modeling that second embodiment of the invention is provided;
Fig. 4 shows the flow chart of the method for the three-dimensional modeling that third embodiment of the invention is provided;
Fig. 5 shows the flow chart of the method for the three-dimensional modeling that fourth embodiment of the invention is provided;
Fig. 6 shows the flow chart of the method for the three-dimensional modeling that fifth embodiment of the invention is provided;
Fig. 7 shows the structured flowchart of the device for the three-dimensional modeling that sixth embodiment of the invention is provided.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing.Meanwhile, the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
As shown in figure 1, being the block diagram of electronic equipment 100.The electronic equipment 100 includes:Three-dimensional is modeled Device, memory 110, storage control 120, processor 130, Peripheral Interface 140, input-output unit 150, audio unit 160th, display unit 170.
The memory 110, storage control 120, processor 130, Peripheral Interface 140, input-output unit 150, sound Frequency unit 160 and each element of display unit 170 are directly or indirectly electrically connected with each other, with realize data transmission or Interaction.It is electrically connected with for example, these elements can be realized by one or more communication bus or signal wire each other.Described three The device of dimension Dummy modeling can be stored in the memory including at least one in the form of software or firmware (firmware) Or it is solidificated in the software function module in the operating system of the client device (operating system, OS).The place Reason device 130 is used to perform the executable module stored in memory 110, such as it is soft that the device that described three-dimensional is modeled includes Part functional module or computer program.
Wherein, memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 110 is used for storage program, and the processor 130 performs described program after execute instruction is received, foregoing The method performed by server that the stream process that embodiment of the present invention any embodiment is disclosed is defined can apply to processor 130 In, or realized by processor 130.
Processor 130 is probably a kind of IC chip, the disposal ability with signal.Above-mentioned processor 130 can To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), application specific integrated circuit (ASIC), It is ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hard Part component.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor Can be microprocessor or the processor can also be any conventional processor etc..
Various input/output devices are coupled to processor 130 and memory 110 by the Peripheral Interface 140.At some In embodiment, Peripheral Interface 140, processor 130 and storage control 120 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
Input-output unit 150 is used to be supplied to user input data to realize interacting for user and electronic equipment 100.It is described Input-output unit 150 may be, but not limited to, mouse and keyboard etc..
Audio unit 160 provides a user COBBAIF, and it may include one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display unit 170 provides an interactive interface (such as user interface) between electronic equipment 100 and user Or referred to for display image data to user.In the present embodiment, the display unit 170 can be liquid crystal display or touch Control display.If touch control display, it can be touched for the capacitance type touch control screen or resistance-type of support single-point and multi-point touch operation Control screen etc..Support that single-point and multi-point touch operation refer to that touch control display can sense on the touch control display one or many The touch control operation produced simultaneously at individual position, and transfer to processor 130 to be calculated and handled the touch control operation that this is sensed.
First embodiment
Fig. 2 is refer to, Fig. 2 is the flow chart of the method for the three-dimensional modeling that first embodiment of the invention is provided.Below It will be described in detail for the flow shown in Fig. 2, methods described includes:
Step S110:Ship information and river scape information are obtained, the ship information, which includes vessel main body structural information, cabin, to be believed Breath, driver's cabin information, steering gear room information, central station of floating dock information, meeting room information and lobby information.
In the present embodiment, to ship information and the information of river scape is acquired, wherein, the ship information includes shipowner Body structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room information and lobby letter Breath.As a kind of mode, the ship information and the bulk that river scape information is ship and river scape, equipment profile and ship With the relative position relation of river scape etc., wherein, can be using 3-D scanning technology to real ship for the acquisition of information Be scanned with river scape or ship and river scape CAD diagram paper etc., provide data for follow-up modeling.
Step S120:The ship and the river scape are carried out according to the ship information and the river scape information three-dimensional empty Proposed mould, obtains the threedimensional model of the ship and the threedimensional model of the Jiang Jing.
As a kind of mode, three-dimensional is carried out to the ship and river scape according to the ship information of acquisition and river scape information Modeling, in the present embodiment, work is modeled using Creator, wherein, Creator is that a technical grade three-dimensional modeling is soft Part, its powerful modeling function can provide modeling and instrument for numerous different types of pictcure generators, for example, polygon Shape modeling, Vector Modeling, model deformation instrument and random distribution instrument etc., wherein, it is right in the embodiment of the present embodiment In the model that scene is larger, it can be modeled from Creator, for the less model of scene, such as instrument in ship, Handle etc., then can be modeled from 3DMax, then imported and integrated in Creator scenes.Carry out through the above way Modeling, obtains the threedimensional model of the ship and the threedimensional model of the Jiang Jing.
Step S130:The threedimensional model of the threedimensional model of the ship and the Jiang Jing is associated, three-dimensional is obtained Scene, the three-dimensional virtual scene includes the river scape and the ship moved on the Jiang Jing.
In the present embodiment, by the way that the threedimensional model of ship to be associated with to Jiang Jing threedimensional model, virtual three dimensional field is obtained Scape, wherein, the virtual scene includes river scape and the ship moved on Jiang Jing, and the three-dimensional virtual scene can use user During ship, virtual world can be not only felt, can also feel movement of the ship in Jiang Jingzhong, help to improve user's body Test.
The method of three-dimensional modeling provided in an embodiment of the present invention, should first by obtaining ship information and river scape information Ship information includes vessel main body structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room letter Breath and lobby information, carry out three-dimensional modeling to ship and the river scape further according to ship information and river scape information, obtain It is afterwards that the threedimensional model of the ship is related to the threedimensional model of river scape to the threedimensional model and the threedimensional model of river scape of ship Connection, obtains three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and the ship moved on the Jiang Jing.The party Method and device can realize a virtual environment true to nature, save crewman's training cost.
Second embodiment
Fig. 3 is refer to, Fig. 3 is a kind of flow chart for three-dimensional modeling method that second embodiment of the invention is provided. On the basis of first embodiment, the present embodiment is also additionally arranged step S210, step S220 and step after step s 130 S230, so that the virtual scene that first embodiment is obtained has more real effect.It will be carried out below for the flow shown in Fig. 3 Elaborate, methods described includes:
Step S210:The image information of the ship and the image information of the Jiang Jing are obtained, described image information includes Color information and text information.
As a kind of mode, after three-dimensional virtual scene is obtained, the image information of the ship and the image letter of river scape are obtained Breath, wherein, the image information includes color information and text information, to obtain the texture mapping of ship and the texture mapping of river scape Prepare.
Step S220:The image information of image information and the Jiang Jing to the ship carries out rendering processing, obtains institute State the texture mapping of ship and the texture mapping of the Jiang Jing.
In order to more be met real scene, it is necessary to which the threedimensional model of the threedimensional model and river scape to ship carries out texture Textures, in an embodiment of the present embodiment, the image information of image information and river scape to the ship of acquisition carries out wash with watercolours Dye processing, to obtain the texture mapping of ship and the texture mapping of river scape, further strengthens the perception of virtual scene, helps to carry High user's impression.
Step S230:The texture mapping of the texture mapping of the ship and the Jiang Jing is loaded into the virtual three dimensional field Scape, obtains texture mapping three-dimensional virtual scene.
In the present embodiment, obtained after the texture mapping of ship and the texture mapping of river scape, by the texture mapping of ship It is loaded into the texture mapping of river scape in three-dimensional virtual scene, obtains texture mapping three-dimensional virtual scene, wherein, pasted by texture Figure, can effectively reduce polygon quantity during Creator modelings, it is possible to achieve the simplification of model.
The method of three-dimensional modeling provided in an embodiment of the present invention, should first by obtaining ship information and river scape information Ship information includes vessel main body structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room letter Breath and lobby information, carry out three-dimensional modeling to ship and the river scape further according to ship information and river scape information, obtain It is afterwards that the threedimensional model of the ship is related to the threedimensional model of river scape to the threedimensional model and the threedimensional model of river scape of ship Connection, obtains three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and the ship moved on the Jiang Jing, finally Texture mapping, so as to get three-dimensional virtual scene fidelity improve.This method and device can realize a virtual ring true to nature Border, saves crewman's training cost.
3rd embodiment
Fig. 4 is refer to, Fig. 4 is a kind of flow chart for three-dimensional modeling method that third embodiment of the invention is provided. On the basis of first embodiment, the present embodiment is also additionally arranged step S310 and step S320 after step s 130, so that first Part in the virtual scene that embodiment is obtained has movement effects.It will be described in detail below for the flow shown in Fig. 4, Methods described includes:
Step S310:Obtaining needs the equipment or part that carry out pseudo operation in the ship.
In the present embodiment, obtain after three dimensional virtual models, obtain the equipment for needing to carry out pseudo operation in dummy model Or part, for example, rotating disk, handle etc..
Step S320:Six degree of freedom modeling is carried out to the equipment or part, movable virtual unit or void is obtained Intend part.
Wherein, obtained needing after the equipment or part that carry out pseudo operation, six are carried out to the equipment or part The free degree is modeled, wherein, six degree of freedom refers to that object has six-freedom degree in space, i.e., along tri- rectangular axes of X, Y, Z The one-movement-freedom-degree in direction and the free degree of rotation around these three reference axis, after being modeled by six degree of freedom, obtain movable Virtual unit or virtual component.
The method of three-dimensional modeling provided in an embodiment of the present invention, should first by obtaining ship information and river scape information Ship information includes vessel main body structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room letter Breath and lobby information, carry out three-dimensional modeling to ship and the river scape further according to ship information and river scape information, obtain It is afterwards that the threedimensional model of the ship is related to the threedimensional model of river scape to the threedimensional model and the threedimensional model of river scape of ship Connection, obtains three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and the ship moved on the Jiang Jing, finally By carrying out six degree of freedom modeling to equipment or part, movement effects are made it have.This method and device can realize one it is true to nature Virtual environment, save crewman training cost.
Fourth embodiment
Fig. 5 is refer to, Fig. 5 is a kind of flow chart for three-dimensional modeling method that fourth embodiment of the invention is provided. On the basis of first embodiment, the present embodiment is also additionally arranged step S410 and step S420 after step s 130, so that first The virtual scene that embodiment is obtained is more smooth.It will be described in detail below for the flow shown in Fig. 5, methods described includes:
Step S410:Obtain redundant polygons and backfacing polygon in the three-dimensional virtual scene.
In the present embodiment, what the redundant polygons referred to will not to be revealed all the time during real-time simulation is polygon Shape, during modeling, has the polygon of bulk redundancy, the interior details of such as model, the polygon blocked by other polygons, two Faying face of individual model etc., these polygons are not had any effect in system operation, it is necessary to they be deleted in time, acquisition Redundant polygons and backfacing polygon in the three-dimensional virtual scene.
Step S420:Delete the redundant polygons obtained and backfacing polygon or according to Triangulation Algorithm triangle Instead of polygon.
It is used as a kind of mode, it is possible to use Creator is carried out outside directly polygonal deletion, can also utilize Creator The VSimplify plug-in units of offer carry out Optimized model.Wherein, it is to utilize Triangulation Algorithm, and polygon is replaced using triangle. All non-triangular can be converted triangularity in processing procedure, while number of triangles total in model is reduced, and not Visual effect can be influenceed.This method has greatly accelerated generation and the display speed of image, realizes the optimization to dummy model.
The method of three-dimensional modeling provided in an embodiment of the present invention, should first by obtaining ship information and river scape information Ship information includes vessel main body structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room letter Breath and lobby information, carry out three-dimensional modeling to ship and the river scape further according to ship information and river scape information, obtain It is afterwards that the threedimensional model of the ship is related to the threedimensional model of river scape to the threedimensional model and the threedimensional model of river scape of ship Connection, obtains three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and the ship moved on the Jiang Jing, finally Make virtual scene more smooth by deleting redundant polygons and backfacing polygon.This method and device can realize a void true to nature Near-ring border, saves crewman's training cost.
5th embodiment
Fig. 6 is refer to, Fig. 6 is a kind of flow chart for three-dimensional modeling method that fifth embodiment of the invention is provided. On the basis of first embodiment, the present embodiment is also additionally arranged step S510 and step S520 after step s 130, so that first The virtual scene that embodiment is obtained is more smooth.It will be described in detail below for the flow shown in Fig. 6, methods described includes:
Step S510:The threedimensional model of the different fine degrees of same object in the three-dimensional virtual scene is obtained, it is described The threedimensional model of different fine degrees includes naive model and complex model.
In the present embodiment, can be according to specific how far and different organoleptic requirements when setting up three-dimensional virtual scene The threedimensional model of different fine degrees is set up to same object, the threedimensional model is obtained, the threedimensional model include naive model and Complex model, as a kind of mode, naive model fine degree is lower, and complex model, fine degree is higher.
Step S520:According to hierarchical model, when building from viewpoint farther out when, call the naive model, work as building When thing is nearer from viewpoint, the complex model is called.
Wherein, when view distance object is nearer, more details can be showed.The polygonal Model of Version of maximum quantity Referred to as maximum LOD, be viewpoint shift to model it is nearest when produce.When viewpoint is more and more remote from model, many details are no longer needed Will, so smaller LOD just switches, when building from viewpoint it is distant when, call relatively simple model, when When nearer from view distance, relative complex model is called, so processing neither influences the effect of three-dimensional artificial, can reduced again The data volume of whole scene.
The method of three-dimensional modeling provided in an embodiment of the present invention, should first by obtaining ship information and river scape information Ship information includes vessel main body structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room letter Breath and lobby information, carry out three-dimensional modeling to ship and the river scape further according to ship information and river scape information, obtain It is afterwards that the threedimensional model of the ship is related to the threedimensional model of river scape to the threedimensional model and the threedimensional model of river scape of ship Connection, obtains three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and the ship moved on the Jiang Jing, finally Make virtual scene more smooth by calling the model of different fine degrees.This method and device can realize one it is true to nature virtual Environment, saves crewman's training cost.
Sixth embodiment
Fig. 7 is refer to, Fig. 7 is a kind of structural frames of the device for three-dimensional modeling that sixth embodiment of the invention is provided Figure.The structured flowchart shown in Fig. 7 will be illustrated below, the device 200 of shown device three-dimensional modeling includes:First letter Cease acquisition module 210, the first model creation module 220 and model association module 230.Wherein:
First information acquisition module 210, for obtaining ship information and river scape information, the ship information includes vessel main body Structural information, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room information and lobby information;
First model creation module 220, for according to the ship information and the river scape information to the ship and institute State river scape and carry out three-dimensional modeling, obtain the threedimensional model of the ship and the threedimensional model of the Jiang Jing;
Model association module 230, for the threedimensional model of the threedimensional model of the ship and the Jiang Jing to be associated, is obtained To three-dimensional virtual scene, the three-dimensional virtual scene includes the river scape and the ship moved on the Jiang Jing.
On this basis, the present embodiment also includes:Image collection module, image information and institute for obtaining the ship Jiang Jing image information is stated, described image information includes color information and text information;Texture acquirement module, for the ship Oceangoing ship image information and the image information of the Jiang Jing carry out rendering processing, obtain the ship texture mapping and the line of the Jiang Jing Manage textures;Texture load-on module, for the texture mapping of the texture mapping of the ship and the Jiang Jing to be loaded into virtual boat Ship is marked, is more met the virtual light tender of real-world object.Second data obtaining module, for obtain needed in the ship into The equipment or part of row pseudo operation;Second model creation module, for carrying out six degree of freedom to the equipment or part Modeling, obtains movable virtual unit or virtual component.3rd data obtaining module, for obtaining the three-dimensional virtual scene Middle redundant polygons and backfacing polygon;Removing module, for delete obtain the redundant polygons and backfacing polygon or Polygon is replaced with triangle according to Triangulation Algorithm.4th data obtaining module, for obtaining in the three-dimensional virtual scene The threedimensional model of the different fine degrees of same object, the threedimensional model of the different fine degrees includes naive model and complexity Model;Model calling module, for according to hierarchical model, when building from viewpoint farther out when, call the naive model, when When building is nearer from viewpoint, the complex model is called.
The process of the respective function of each Implement of Function Module for the device 200 that the present embodiment is modeled to three-dimensional, is referred to Above-mentioned Fig. 1 is to the content described in embodiment illustrated in fig. 6, and here is omitted.
In summary, the method and device for the three-dimensional modeling that the embodiment of the present invention is proposed, by first by obtaining Ship information and river scape information, the ship information include vessel main body structural information, cabin information, driver's cabin information, steering gear room letter Breath, central station of floating dock information, meeting room information and lobby information, further according to ship information and river scape information to ship and the river Scape carries out three-dimensional modeling, the threedimensional model of ship and the threedimensional model of river scape is obtained, afterwards by the threedimensional model of the ship It is associated with the threedimensional model of river scape, obtains three-dimensional virtual scene, wherein, three-dimensional virtual scene includes river scape and in the river The ship moved on scape.This method and device can realize a virtual environment true to nature, save crewman's training cost.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show according to the device of multiple embodiments of the present invention, the architectural framework in the cards of method and computer program product, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part a, part for the module, program segment or code is used to realize holding for defined logic function comprising one or more Row instruction.It should also be noted that in some implementations as replacement, the function of being marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, can use the special base for performing defined function or action Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized using in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are make it that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation there is any this reality The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including Other key elements being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, article or equipment in also there is other identical element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of method of three-dimensional modeling, it is characterised in that methods described includes:
Ship information and river scape information are obtained, the ship information includes vessel main body structural information, cabin information, driver's cabin letter Breath, steering gear room information, central station of floating dock information, meeting room information and lobby information;
Three-dimensional modeling is carried out to the ship and the river scape according to the ship information and the river scape information, institute is obtained State the threedimensional model of ship and the threedimensional model of the Jiang Jing;
The threedimensional model of the threedimensional model of the ship and the Jiang Jing is associated, three-dimensional virtual scene, the three-dimensional is obtained Virtual scene includes the river scape and the ship moved on the Jiang Jing.
2. the method for three-dimensional modeling according to claim 1, it is characterised in that the three-dimensional mould by the ship Type and the threedimensional model of the Jiang Jing are associated, obtain three-dimensional virtual scene, the three-dimensional virtual scene include the Jiang Jing with And also include after the ship moved on the Jiang Jing:
The image information of the ship and the image information of the Jiang Jing are obtained, described image information includes color information and word Information;
The image information of image information and the Jiang Jing to the ship carries out rendering processing, obtains the texture patch of the ship The texture mapping of figure and the Jiang Jing;
The texture mapping of the texture mapping of the ship and the Jiang Jing is loaded into the three-dimensional virtual scene, texture patch is obtained Figure three-dimensional virtual scene.
3. the method for three-dimensional modeling according to claim 1, it is characterised in that the three-dimensional mould by the ship Type and the threedimensional model of the Jiang Jing are associated, obtain three-dimensional virtual scene, the three-dimensional virtual scene include the Jiang Jing with And also include after the ship moved on the Jiang Jing:
Obtaining needs the equipment or part that carry out pseudo operation in the ship;
Six degree of freedom modeling is carried out to the equipment or part, movable virtual unit or virtual component is obtained.
4. the method for three-dimensional modeling according to claim 1, it is characterised in that the three-dimensional mould by the ship Type and the threedimensional model of the Jiang Jing are associated, obtain three-dimensional virtual scene, the three-dimensional virtual scene include the Jiang Jing with And also include after the ship moved on the Jiang Jing:
Obtain redundant polygons and backfacing polygon in the three-dimensional virtual scene;
Delete the redundant polygons obtained and backfacing polygon or polygon is replaced with triangle according to Triangulation Algorithm.
5. the method for three-dimensional modeling according to claim 1, it is characterised in that the three-dimensional mould by the ship Type and the threedimensional model of the Jiang Jing are associated, obtain three-dimensional virtual scene, the three-dimensional virtual scene include the Jiang Jing with And also include after the ship moved on the Jiang Jing:
The threedimensional model of the different fine degrees of same object in the three-dimensional virtual scene is obtained, the different fine degrees Threedimensional model includes naive model and complex model;
According to hierarchical model, when building from viewpoint farther out when, the naive model is called, when building is nearer from viewpoint When, call the complex model.
6. a kind of device of three-dimensional modeling, it is characterised in that described device includes:
First information acquisition module, for obtaining ship information and river scape information, the ship information is believed including vessel main body structure Breath, cabin information, driver's cabin information, steering gear room information, central station of floating dock information, meeting room information and lobby information;
First model creation module, for according to the ship information and the river scape information to the ship and the Jiang Jingjin Row three-dimensional is modeled, and obtains the threedimensional model of the ship and the threedimensional model of the Jiang Jing;
Model association module, for the threedimensional model of the threedimensional model of the ship and the Jiang Jing to be associated, obtains three-dimensional Virtual scene, the three-dimensional virtual scene includes the river scape and the ship moved on the Jiang Jing.
7. the device of three-dimensional modeling according to claim 6, it is characterised in that described device also includes:
Image collection module, for obtaining the image information of the ship and the image information of the Jiang Jing, described image information Including color information and text information;
Texture acquirement module, carries out rendering processing for the image information to the ship image information and the Jiang Jing, obtains The texture mapping of the ship texture mapping and the Jiang Jing;
Texture load-on module, for the texture mapping of the texture mapping of the ship and the Jiang Jing to be loaded into virtual navigation mark Ship, is more met the virtual light tender of real-world object.
8. the device of three-dimensional modeling according to claim 6, it is characterised in that described device also includes:
Second data obtaining module, the equipment or part that carry out pseudo operation are needed for obtaining in the ship;
Second model creation module, for carrying out six degree of freedom modeling to the equipment or part, obtains movable virtual Equipment or virtual component.
9. the device of three-dimensional modeling according to claim 6, it is characterised in that described device also includes:
3rd data obtaining module, for obtaining redundant polygons and backfacing polygon in the three-dimensional virtual scene;
Removing module, for deleting the redundant polygons obtained and backfacing polygon or according to Triangulation Algorithm triangle Instead of polygon.
10. the device of three-dimensional modeling according to claim 6, it is characterised in that described device also includes:
4th data obtaining module, the three-dimensional mould for obtaining the different fine degrees of same object in the three-dimensional virtual scene Type, the threedimensional model of the different fine degrees includes naive model and complex model;
Model calling module, for according to hierarchical model, when building from viewpoint farther out when, call the naive model, when When building is nearer from viewpoint, the complex model is called.
CN201710159639.8A 2017-03-14 2017-03-14 The method and device of three-dimensional modeling Pending CN106952340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710159639.8A CN106952340A (en) 2017-03-14 2017-03-14 The method and device of three-dimensional modeling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710159639.8A CN106952340A (en) 2017-03-14 2017-03-14 The method and device of three-dimensional modeling

Publications (1)

Publication Number Publication Date
CN106952340A true CN106952340A (en) 2017-07-14

Family

ID=59472046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710159639.8A Pending CN106952340A (en) 2017-03-14 2017-03-14 The method and device of three-dimensional modeling

Country Status (1)

Country Link
CN (1) CN106952340A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107705636A (en) * 2017-07-28 2018-02-16 武汉理工大学 A kind of ship experiment teaching system based on augmented reality
CN111265879A (en) * 2020-01-19 2020-06-12 百度在线网络技术(北京)有限公司 Virtual image generation method, device, equipment and storage medium
CN111462233A (en) * 2020-03-20 2020-07-28 武汉理工大学 Recovery data processing method and system for ship cab and storage medium
CN111951404A (en) * 2020-07-24 2020-11-17 广东交通职业技术学院 Ship control method, system, device and storage medium
CN113158335A (en) * 2021-04-07 2021-07-23 广东交通职业技术学院 Ship electric control cylinder oil injection visualization method, system and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663921A (en) * 2012-03-20 2012-09-12 镇江科大船苑计算机网络工程有限公司 Multi-channel and multi-screen three dimensional immersion simulation system of ship steering and operation
CN204706215U (en) * 2015-03-20 2015-10-14 中国人民解放军镇江船艇学院 Rudder system operation training simulator
CN105241457A (en) * 2015-08-10 2016-01-13 武汉理工大学 Establishing method of three-dimensional aided navigation system for ship handling
CN105718643A (en) * 2016-01-19 2016-06-29 武汉理工大学 Optimization view angle based ship production design drawing-inspection device implementation method
CN106157354A (en) * 2015-05-06 2016-11-23 腾讯科技(深圳)有限公司 A kind of three-dimensional scenic changing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663921A (en) * 2012-03-20 2012-09-12 镇江科大船苑计算机网络工程有限公司 Multi-channel and multi-screen three dimensional immersion simulation system of ship steering and operation
CN204706215U (en) * 2015-03-20 2015-10-14 中国人民解放军镇江船艇学院 Rudder system operation training simulator
CN106157354A (en) * 2015-05-06 2016-11-23 腾讯科技(深圳)有限公司 A kind of three-dimensional scenic changing method and system
CN105241457A (en) * 2015-08-10 2016-01-13 武汉理工大学 Establishing method of three-dimensional aided navigation system for ship handling
CN105718643A (en) * 2016-01-19 2016-06-29 武汉理工大学 Optimization view angle based ship production design drawing-inspection device implementation method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
尚前明 等: "船舶虚拟机舱视景建模与驱动的实现方法", 《武汉理工大学学报(交通科学与工程版)》 *
杨卫: "航标船管系三维建模研究", 《中国水运》 *
王杰: "基于VR技术的虚拟战场实时漫游和红外仿真研究", 《中国优秀硕士学位论文全文数据库(工程科技II辑)》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107705636A (en) * 2017-07-28 2018-02-16 武汉理工大学 A kind of ship experiment teaching system based on augmented reality
CN111265879A (en) * 2020-01-19 2020-06-12 百度在线网络技术(北京)有限公司 Virtual image generation method, device, equipment and storage medium
CN111265879B (en) * 2020-01-19 2023-08-08 百度在线网络技术(北京)有限公司 Avatar generation method, apparatus, device and storage medium
CN111462233A (en) * 2020-03-20 2020-07-28 武汉理工大学 Recovery data processing method and system for ship cab and storage medium
CN111462233B (en) * 2020-03-20 2024-02-13 武汉理工大学 Method, system and storage medium for processing restored data of ship cab
CN111951404A (en) * 2020-07-24 2020-11-17 广东交通职业技术学院 Ship control method, system, device and storage medium
CN113158335A (en) * 2021-04-07 2021-07-23 广东交通职业技术学院 Ship electric control cylinder oil injection visualization method, system and device and storage medium

Similar Documents

Publication Publication Date Title
US10137646B2 (en) Preparing a polygon mesh for printing
CN106952340A (en) The method and device of three-dimensional modeling
CN108898630A (en) A kind of three-dimensional rebuilding method, device, equipment and storage medium
Kim et al. A haptic-rendering technique based on hybrid surface representation
CN108140254A (en) 3D models are generated from map datum
CN104123747B (en) Multimode touch-control three-dimensional modeling method and system
CN111167120A (en) Method and device for processing virtual model in game
JP6972135B2 (en) Devices and methods for generating dynamic virtual content in mixed reality
CN107464286B (en) Method, device, equipment and readable medium for repairing holes in three-dimensional city model
CN112530005B (en) Three-dimensional model linear structure recognition and automatic restoration method
WO2013151681A1 (en) Determining a view of an object in a three-dimensional image viewer
CN106575158A (en) Environmentally mapped virtualization mechanism
CN111514587B (en) Information processing method, device, equipment and storage medium
CN107978018A (en) Construction method, device, electronic equipment and the storage medium of solid figure model
CN111445563A (en) Image generation method and related device
Lin et al. Virtual geographic environments
CN103412973B (en) The generation method and system of three-dimensional artificial
US9483847B2 (en) System and method for rendering virtual contaminants
CN106934854A (en) Based on creator model optimization method and devices
Glueck et al. Considering multiscale scenes to elucidate problems encumbering three-dimensional intellection and navigation
CN111111154B (en) Modeling method and device for virtual game object, processor and electronic device
Venter et al. Unreal Engine 5 Character Creation, Animation, and Cinematics: Create custom 3D assets and bring them to life in Unreal Engine 5 using MetaHuman, Lumen, and Nanite
US9754408B2 (en) System and method for modeling virtual contaminants
Seo et al. A new perspective on enriching augmented reality experiences: Interacting with the real world
JP2548742B2 (en) 3D scene display device

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: 20170714

RJ01 Rejection of invention patent application after publication