Summary of the invention
The purpose of this invention is to provide a kind of method for processing 3 D images of Internet of things, it is so that the convenience of the demonstration of 3 D images of Internet of things increases, and interactivity strengthens.
For realizing purpose of the present invention, the invention provides a kind of method for processing 3 D images of Internet of things, may further comprise the steps:
Step S100 arranges to generate and play up according to Internet of Things planning entity and annexation and obtains Internet of Things 3D model database;
Step S200 utilizes the mouse track grasping means to process animation effect content and the animation operation control action that obtains the various Internet of Things 3D models in this Internet of Things 3D model database;
Step S300, in the Computer display platform, according to this scenes of internet of things, from Internet of Things 3D model database, read corresponding this 3D rendering model, with the animation effect content among the step S200 and animation operation control action, continue mutual 3 D images of Internet of things and show.
More preferably, described step S100 may further comprise the steps:
Step S110: utilize 3Dmax according to Internet of Things planning entity and annexation the various Internet of Things 3D models of generation to be set;
Step S120: the OBJ formatted file of then in 3Dmax, deriving these various Internet of Things 3D models, in Expression Blend, import again the OBJ formatted file of these various Internet of Things 3D models, to the color of various Internet of Things 3D model surfaces, material, texture, the attributes such as transparency are processed;
Step S130, the various Internet of Things 3D models after step S120 processed import among the Model Visual 3D to be played up, and exports after will predefinedly having the 3D model interaction binding of interrelated relation, obtains this various Internet of Things 3D model databases.
More preferably, described step S200 may further comprise the steps:
Step S210 according to the Internet of Things cyberrelationship, utilizes the mouse track grasping means to process the animation effect content that obtains 3D rendering in the various Internet of Things 3D models;
Step S220, utilize the mouse track grasping means by the creation-time line, arrange the key frame that starts object, recorded key frame, the front is set to the time, the mouse that use between the key frame of back upspring the event control animation direction, time-out, continuation, amplify, dwindle, obtain the animation operation control action of the 3D rendering in the described Internet of Things.
More preferably, among the described step S210, utilize the mouse track grasping means that the animation effect content of 3D rendering in the various Internet of Things 3D models is set, may further comprise the steps:
Step S211 by the system function POINT () of mouse, when pressing mouse, calculates X-axis, Y-axis and the Z axis coordinate of the 3D rendering demonstration of Internet of Things 3D model, as the 3D rendering demonstration starting point of Internet of Things 3D model; When unclamping mouse, calculate X-axis, Y-axis and the Z axis coordinate of the 3D rendering demonstration of Internet of Things 3D model, as the 3D rendering demonstration terminal point of Internet of Things 3D model;
Step S212 changes according to coordinate X-axis, Y-axis and Z axis, and the action route of calculative determination 3D model is judged the operating angle that obtains the 3D model by this action route being carried out branch again;
Step S213 reads different Internet of Things 3D models from these various Internet of Things 3D models, according to the action circuit of the 3D rendering of determining and the animation effect content that operating angle obtains this Internet of Things 3D model.
More preferably, described step S220 comprises the steps:
Step S221 creates mouse track crawl storyboard () function event, and the Behavior control animation that adds a ControlStoryBoardAct ion class begins, stops, suspending and recovers;
When having the mouse-click event to occur, whether the state of judging the 3D rendering animation is starting state;
If starting state not then returns; If starting state then starts the 3D rendering animation, enter step S222;
Step S222 is starting state if judge the state of 3D rendering animation, then judges whether to need to suspend action;
Step S223 if do not need to suspend action, then continues current action by function Storys.Resume (); If need to suspend, then calling system function Storys.Pause () suspends current action;
Step S224, according to mouse pulley system function PreviewMouseWheel (), and the event of the mouse roller increment size change by mouse functions MouseWheelEventArgs () report mouse device provides data, processes the big or small control action that obtains Internet of Things 3D model.
More preferably, among the described step S224, process the big or small control action that obtains Internet of Things 3D model, comprise the following steps:
Step S2241, increase and decrease amplitude, 3D model maximal value, the minimum value of default 3D model size;
Step S2242, according to mouse pulley system function PreviewMouseWheel () and mouse functions MouseWheelEventArgs () report, when mouse roller slides backward, judge that whether the current sizes values of 3D model is greater than minimum value, if greater than minimum value, then reduce with the increase and decrease amplitude of determining; Otherwise, keep current sizes values constant;
Step S2243, according to mouse pulley system function PreviewMouseWheel () and mouse functions MouseWheelEventArgs () report, when mouse pulley during to front slide, judge that whether the current sizes values of 3D model is less than maximal value, if less than maximal value, then increase with the increase and decrease amplitude of determining; Otherwise, keep current sizes values constant.
More preferably, described step S 300 may further comprise the steps:
Step S310 carries out initialization according to the settings of display page global space to global space, and user window pattern, user's space are arranged;
Step S320 according to scenes of internet of things, reads corresponding 3D rendering model from Internet of Things 3D model database, all kinds of parameters of model object are carried out initialization according to setting value, and the generating run pointer also is assigned to corresponding 3D rendering model with pointer;
Step S330 judges whether whether the platform pointer is empty, namely read the 3D rendering model and set up the operation pointer; If be empty, then finish to return; If be not empty, then forward step S340 to;
Step 340 according to scenes of internet of things, with the animation effect content among the step S200 and animation operation control action, generates lasting mutual 3 D images of Internet of things display interface;
Step 350, it is complete to judge whether the 3D model pointer of this scenes of internet of things and interface generate, and if so, then enters step S360; Otherwise, return step S320;
Step S360, in display page, the crawl mouse action according to the movement locus of mouse, reads corresponding pointer and interface, continues mutual 3 D images of Internet of things and shows.
3D models show method in the Internet of things system of the present invention, remedy deficiency of the prior art, greatly make things convenient for the foundation in the VRML world, and the Internet of Things realization is that all things links to each other in the world, move all things in the world to virtual world, both have good convenience and interaction in conjunction with the life requirement and the Internet of Things growth requirement that are very easy to people, so that the convenience of the demonstration of 3 D images of Internet of things increases, interactivity strengthens.
Embodiment
For the purpose, technical scheme and the advantage that make method for processing 3 D images of Internet of things of the present invention is clearer, below in conjunction with concrete drawings and the specific embodiments, method for processing 3 D images of Internet of things of the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Method for processing 3 D images of Internet of things below in conjunction with the accompanying drawing detailed description embodiment of the invention as shown in Figure 1, comprises the steps:
Step S100 arranges to generate and play up according to Internet of Things planning entity and annexation and obtains Internet of Things 3D model database;
As a kind of embodiment, in the embodiment of the invention, at first utilize 3Dmax according to Internet of Things planning entity and annexation the various Internet of Things 3D models of generation to be set;
Then in 3Dmax, derive the OBJ formatted file of these various Internet of Things 3D models, and then in Expression Blend, import the OBJ formatted file of these various Internet of Things 3D models;
Should various Internet of Things 3D model OBJ formatted files import among the ModelVisual 3D and play up and obtain Internet of Things 3D model database thereafter.
Step S200 utilizes the mouse track grasping means to process animation effect content and the animation operation control action that obtains the various Internet of Things 3D models in this Internet of Things 3D model database;
Step S300, in the Computer display platform, according to this scenes of internet of things, from Internet of Things 3D model database, read corresponding this 3D rendering model, with the animation effect content among the step S200 and animation operation control action, continue mutual 3 D images of Internet of things and show.
The below further describes each step process of embodiment of the invention method for processing 3 D images of Internet of things:
Arrange to generate and play up according to Internet of Things planning entity and annexation among the step S100 and obtain Internet of Things 3D model database, comprise the steps:
Step S110: utilize 3Dmax according to Internet of Things planning entity and annexation the various Internet of Things 3D models of generation to be set;
Step S120: the OBJ formatted file of then in 3Dmax, deriving these various Internet of Things 3D models, in Expression Blend, import again the OBJ formatted file of these various Internet of Things 3D models, to the color of various Internet of Things 3D model surfaces, material, texture, the attributes such as transparency are processed;
Expression Blend is a Full Featured professional design instrument, is used for creating abundant, the complicated application interface based on the Microsoft windows platform.In Expression Blend, can draw shape, path and control at art designing's plate, then revise its outward appearance and behavior, thus design application intuitively, it can import image, video and sound.It can also import and change three dimensional object in the application program based on Windows.
Step S130, various Internet of Things 3D models after the step S120 processing are imported among the ModelVi sual 3D, the attributes such as the material of 3D model surface, texture, color, transparency are played up, and with the predefined rear output of 3D model interaction binding with interrelated relation, obtain this various Internet of Things 3D model databases.
Use the 3D among the ModeVisual 3D to play up, various Internet of Things 3D models after the step S120 processing are imported among the ModelVisual 3D, the attributes such as the material of 3D model surface, texture, color, transparency are played up, and with the predefined rear output of 3D model interaction binding with interrelated relation, obtain this various Internet of Things 3D model databases.
Step S200 utilizes the mouse track grasping means to process animation effect content and the animation operation control action that obtains the various Internet of Things 3D models in this Internet of Things 3D model database;
Particularly, described step S200 comprises the steps:
Step S210 according to the Internet of Things cyberrelationship, utilizes the mouse track grasping means to process the animation effect content that obtains 3D rendering in the various Internet of Things 3D models;
Preferably, described 3D rendering animation effect content includes but not limited to 3D model rotation direction, rotational angle, displacement etc.
Particularly, among the described step S210, utilize the mouse track grasping means that the animation effect content of 3D rendering in the various Internet of Things 3D models is set, may further comprise the steps:
Step S211 by the system function POINT () of mouse, when pressing mouse, calculates X-axis, Y-axis and Z axis (pulley) coordinate of the 3D rendering demonstration of Internet of Things 3D model, as the 3D rendering demonstration starting point of Internet of Things 3D model; When unclamping mouse, calculate X-axis, Y-axis and the Z axis coordinate of the 3D rendering demonstration of Internet of Things 3D model, as the 3D rendering demonstration terminal point of Internet of Things 3D model;
Step S212 changes according to coordinate X-axis, Y-axis and Z axis, and the action route of calculative determination 3D model is judged the operating angle that obtains the 3D model by this action route being carried out branch again;
Step S213 reads different Internet of Things 3D models from these various Internet of Things 3D models, according to the action circuit of the 3D rendering of determining and the animation effect content that operating angle obtains this Internet of Things 3D model.
Step S220, utilize the mouse track grasping means by the creation-time line, arrange the key frame that starts object, recorded key frame, the front is set to the time, the mouse that use between the key frame of back upspring the event control animation direction, time-out, continuation, amplify, dwindle, obtain the animation operation control action of the 3D rendering in the described Internet of Things.
The action of described 3D rendering comprises: the amplification of the start time of animation, stand-by time, time-out, continuation, image, dwindle etc.
As a kind of embodiment, in the embodiment of the invention, described step S220 comprises the steps:
Step S221 creates mouse track crawl storyboard () function event, and the Behavior control animation that adds a ControlStoryBoardAct ion class begins, stops, suspending and recovers.
When having the mouse-click event to occur, whether the state of judging the 3D rendering animation is starting state;
If starting state not then returns; If starting state then starts the 3D rendering animation, enter step S222;
Step S222 is starting state if judge the state of 3D rendering animation, then judges whether to need to suspend action;
Step S223 if do not need to suspend action, then continues current action by function Storys.Resume (); If need to suspend, then calling system function Storys.Pause () suspends current action.
Step S224, according to mouse pulley system function PreviewMouseWheel (), and the event of the mouse roller increment size change by mouse functions MouseWheelEventArgs () report mouse device provides data, processes the big or small control action that obtains Internet of Things 3D model.
Preferably, among the described step S224, process the big or small control action that obtains Internet of Things 3D model, comprise the following steps:
Step S2241, increase and decrease amplitude, 3D model maximal value, the minimum value of default 3D model size;
Step S2242, according to mouse pulley system function PreviewMouseWheel () and mouse functions MouseWheelEventArgs () report, when mouse roller slides backward, judge that whether the current sizes values of 3D model is greater than minimum value, if greater than minimum value, then reduce with the increase and decrease amplitude of determining; Otherwise, keep current sizes values constant;
Step S2243, according to mouse pulley system function PreviewMouseWheel () and mouse functions MouseWheelEventArgs () report, when mouse pulley during to front slide, judge that whether the current sizes values of 3D model is less than maximal value, if less than maximal value, then increase with the increase and decrease amplitude of determining; Otherwise, keep current sizes values constant.
Step S300, in the Computer display platform, according to this scenes of internet of things, from Internet of Things 3D model database, read corresponding this 3D rendering model, with the animation effect content among the step S200 and animation operation control action, continue mutual 3 D images of Internet of things and show.
Particularly, step S300 comprises the steps:
Step S310 carries out initialization according to the settings of display page global space to global space, and user window pattern, user's space are arranged.
Step S320 according to scenes of internet of things, reads corresponding 3D rendering model from Internet of Things 3D model database, all kinds of parameters of model object are carried out initialization according to setting value, and the generating run pointer also is assigned to corresponding 3D rendering model with pointer.
Step S330 judges whether whether the platform pointer is empty, namely read the 3D rendering model and set up the operation pointer; If be empty, then finish to return; If be not empty, then forward step S340 to.
Step 340 according to scenes of internet of things, with the animation effect content among the step S200 and animation operation control action, generates lasting mutual 3 D images of Internet of things display interface.
As a kind of embodiment, described lasting mutual 3 D images of Internet of things display interface can be: insertforeUI (string uixml, Point point), animation effect content and animation operation control action generate lasting mutual 3 D images of Internet of things.
Step 350, it is complete to judge whether the 3D model pointer of this scenes of internet of things and interface generate, and if so, then enters step S360; Otherwise, return step S320;
Step S360, in display page, the crawl mouse action according to the movement locus of mouse, reads corresponding pointer and interface, continues mutual 3 D images of Internet of things and shows.
3D models show method in the Internet of things system of the embodiment of the invention, remedy the deficiencies in the prior art, greatly make things convenient for the foundation in the VRML world, and the Internet of Things realization is that all things links to each other in the world, move all things in the world to virtual world, both are in conjunction with the life requirement and the Internet of Things growth requirement that are very easy to people.
Should be noted that at last that obviously those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these revise and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification.