A kind of task creating method and its system based on VR operations
Technical field
The embodiment of the present invention belongs to data communication technology field, more particularly to a kind of task creating method operated based on VR
And its system.
Background technology
With the development of Display Technique, 3D (Dimensions) stereoscopic display is widely used.3D three-dimensional displays
It is that it is different from general by holographic technique, shadow casting technique, glasses tracer technique and the stereoscopic imaging technology based on plane being made
The characteristics of maximum of logical display is exactly that " can reduce true reappearance ".Its invention is undoubtedly that the revolution of 3D technology is opened again
End, the living standard of the mankind is improved by great.It the visual impact of picture can be performed to it is ultimate attainment, strengthen target audience to production
The attention rate of product and brand, realizes that advertisement delivery effect is maximized.Z Space are a brand-new 3D display screens, by California
Infinite Z companies develop, and can track the rotation for the specific glasses that user is worn, the 3D figures that adjustment user sees in real time
Picture;And the action of the induction pen carried is tracked, captured, any object in software can be operated.At present, to Z
Mostly it is to directly invoke SDK (Software Development Kit), but directly invoke SDK to Z when Space is developed
Various problems occur when Space is developed, such as development process Program design and use are cumbersome, and data configuration interface is not
Close friend, and data configuration process complicated and time consumption is longer, while being also not easy to the use of programmer, is reused in disparity items
Rate is low.
The content of the invention
For problems of the prior art, the embodiments of the invention provide a kind of a kind of soft being operated based on VR for task
Generation method and its system, it is intended to solve to carry out what is in ZSpace task development processes occurred using prior art, data configuration
Process complicated interface shows unfriendly, and institute's development task is the problem of utilization rate is low in disparity items.
There is provided a kind of task creating method operated based on VR, the task generation for first aspect of the embodiment of the present invention
Method includes:
Import framework;
Menu item is generated according to the framework of importing;
Menu item triggering command is received, according to the newly-increased interface of menu item triggering command generation one, while calling described
Task included in menu item triggering command;
The task is sent to the newly-increased interface, after the task configuration parameter, the task is shown.The present invention
The second aspect of embodiment is included there is provided a kind of task generation system operated based on VR, the task generation system:
Framework import unit, for importing framework;
Menu item generation unit, for generating menu item according to the framework of importing;
Task call unit, for receiving menu item triggering command, is increased newly according to menu item triggering command generation one
Interface, while calling the task included in the menu item triggering command;
Task display unit, for sending the task to the newly-increased interface, after the task configuration parameter, shows
Show the task.
In embodiments of the present invention, according to the framework of importing, menu item is generated, after menu item triggering command is received,
Task according to included in instruction generates corresponding newly-increased interface, while calling the task to newly-increased interface, configuration task
It has been shown that, operated for user by the newly-increased interface after corresponding parameter.Because the menu item set in the frame is being received
To during enabled instruction, newly-increased interface can be generated according to being included in instruction for task, unified in newly-increased interface ginseng can be configured
Number, it is to avoid data are excessively disperseed, beneficial to maintenance;It it also avoid time-consuming configuration process simultaneously.Further, since using the frame
During frame, it can also be needed to configure arbitrary parameter behind the newly-increased interface of generation according to task, then by increasing interface display newly, add it
Utilization rate in disparity items.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the application process for software development kit that first embodiment of the invention is provided;
Fig. 2 is a kind of structure chart of the application system for software development kit that second embodiment of the invention is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In the embodiment of the present invention, framework is first directed to, menu item is generated, when receiving menu item enabled instruction, according to
The newly-increased interface of task generation one included in instruction, while task included in call instruction, is configured according to the task
After required parameter, the task is shown by the newly-increased interface, operated for user.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart of the application process for software development kit that first embodiment of the invention is provided, and is described in detail
It is as follows:
Step S11, imports framework;
In the prior art, when being developed to Z space, SDK is typically directly called, but application SDK carries out 3D tasks
During exploitation, often occur that task data configuration interface is unfriendly, develop program recycling rate of waterused in disparity items low
Problem.A framework is first directed in the task creating method operated based on VR that the present embodiment is proposed.Included in the framework
ZspaceSDK, Zspace framework scripted code, resource etc..
Step S12, menu item is generated according to the framework of importing;
Preferably, it is described to be included according to the framework of importing generation menu item:
Newly-increased task is searched, the menu function registered in advance in the framework is called according to lookup result;
Menu item is generated according to the menu function.
Specifically, in 3D task development processes are carried out to Zspace, import after framework, can search and in storage system
Newly-increased task, according to the newly-increased task found, calls menu function registered in advance in the frame, performs the menu function
After generate menu item.Comprising global Display panel menu in the menu item, script resource addition menu and precast body menu
Deng, wherein:Global data window is included in global Display panel menu, for configuring global data and can be debugged in subsequent dynamic
Middle observation 3D display windows;Script resource addition menu is used for according to programmer's needs, configuration is added in logical code, now
Programmer need to only set manipulation object, behavior and trigger condition in configuration.And it is any available for 3D manipulation objects
, it can be accorded with and determined according to operated object mark.The operated object mark symbol can include:Manipulate identifier, behavior identifier
And trigger condition.Preferably, the manipulation identifier includes:Name, label, object, layer;The behavior identifier includes:Move
Animal body, rotating object, mobile plus rotating object, scaling around object, is clicked on, acquiescence is global;The trigger condition includes:
Some button in a button can be set to trigger.
Step S13, receives menu item triggering command, increases interface newly according to menu item triggering command generation one, simultaneously
Call the task included in the menu item triggering command.The task can be realized by certain mode under 3D environment
A series of complete actions etc..
Preferably, the reception menu item triggering command, increases interface newly, together according to menu item triggering command generation one
When call task included in the menu item triggering command, specifically include:
The global Display panel menu received in menu item triggering command, the menu item refers to according to menu item triggering
The newly-increased interface of order generation one;
Meanwhile, task corresponding with the menu item triggering command in global data base is searched, the task is called.
Specifically, receive after menu item triggering command, the global Display panel menu in the menu item can generate one
Newly-increased interface, the newly-increased interface is used for the follow-up task to being included in the menu item triggering command and shown;In generation
While newly-increased panel, according to the global data base pre-set in the menu item triggering command search framework, call described
The task corresponding with the menu item triggering command in global data base.
Alternatively, the task corresponding with the menu item triggering command in global data base is searched, calls the task
Also include before:
Trigger condition is registered to each task included in global data base, according to being triggered for the trigger condition
Situation monitors the task.
The trigger condition registered in advance in the task that global data place is included, can perform and institute when condition is triggered
The corresponding task of trigger condition is stated, the monitoring to tasks carrying situation is realized according to the situation that is triggered of the trigger condition, can
Have with the event for registering trigger condition:Operation mark changes event, chooses object change event, ray to hit object event, mouse
Mark presses event, mouse and upsprings event, mobile object event, rotating object event, object around event, scaling event, object
Mobile and rotational event and click event etc..
Step S14, sends the task to the newly-increased interface, after the task configuration parameter, and display is described to appoint
Business.
Preferably, described to send the task to the newly-increased interface, after the task configuration parameter, display is described
Task, is specifically included:
The task is sent to the newly-increased interface;
The newly-increased interface is received after the task, sends parameter configuration instruction to being pre-configured with the frame prefabricated
Body;
The precast body receives configuration parameter corresponding with the task after the parameter configuration instruction, and send configuration is joined
Task after number is to the newly-increased interface;
The newly-increased interface receives and shows the task after the configuration parameter.
Specifically, after searching and calling the task, the task is sent to the newly-increased interface, and newly-increased interface is connecing
Receive after the task, send parameter configuration and instruct in the precast body menu into menu item, the precast body menu comprising one
Precast body, the precast body, for function required during centrally stored software project development, is unique collection of the framework
In pairs as.After precast body receives the parameter configuration instruction that newly-increased interface is sent, when institute is performed to the task configuration task
The parameter needed, configures the task after parameter after send configuration parameter to newly-increased interface, the configuration is joined by newly-increased interface
Task after number is shown.When the newly-increased interface also may be implemented in the application of subsequent project, the need for specific tasks
Dynamic changes the configuration parameter of task, for example, can adjust maximal rays length, scales size, minimum zoom size, maximum contracting
Amplify small, world's rotary speed, rotationally constrained, the function setting of a button, visual angle rotary speed, visual angle translational speed, object
Layer, ray chooses object, and ray hits object, and mouse mode locks pen mode, infinite rays long patterns, self-defining operation
Pattern etc..
In first embodiment of the invention, menu item is generated according to the framework of importing, when there is newly-increased task to occur, dish is sent
Individual event enabled instruction, newly-increased interface is generated according to the menu enabled instruction, while calling newly-increased task, is matched somebody with somebody to newly-increased task
Put after parameter, the newly-increased task is shown by newly-increased interface, operated for user.It is new due to generating in the present embodiment
Increase interface, optimize parameter configuration interface, parameter that subsequently can also be as needed to configuration is modified, and realizes task parameters
Dynamic configuration, improve repeat usage.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be determined with its function and internal logic, the implementation process structure without tackling the embodiment of the present invention
Limited into any.
Embodiment two:
Fig. 2 shows a kind of structure chart of the application system for software development kit that second embodiment of the invention is provided, in order to
It is easy to explanation, illustrate only the part related to the embodiment of the present invention.The application system of software development kit includes in the present embodiment:
Framework import unit 21, menu item generation unit 22, task call unit 23, task display unit 24;Wherein:
Framework import unit 21, for importing framework;
Specifically, a framework import unit is included in the task generation system operated based on VR that the present embodiment is proposed
21, a framework is imported by framework import unit 21 first.ZspaceSDK, Zspace framework script generations are included in the framework
Code, resource etc..
Menu item generation unit 22, for generating menu item according to the framework of importing;
Preferably, the menu item generation unit 22 includes:
Menu function call module, for searching newly-increased task, calls according to lookup result and is noted in advance in the framework
The menu function of volume;
Menu item generation module, for generating menu item according to the menu function.
Specifically, in 3D task development processes are carried out to Zspace, imported by framework import unit 21 after framework,
It can search and increase task in storage system newly, according to the newly-increased task found, call menu letter registered in advance in the frame
Number, menu item is generated after performing the menu function.Comprising global Display panel menu in the menu item, the addition of script resource
Menu and precast body menu etc..
Task call unit 23 is new according to menu item triggering command generation one for receiving menu item triggering command
Increase interface, while calling the task included in the menu item triggering command;The task can be by one under 3D environment
Fixed mode realizes a series of complete actions etc..
Preferably, the task call unit 23 includes:
Newly-increased interface generation module, for receiving the global Display panel dish in menu item triggering command, the menu item
It is single to increase interface newly according to menu item triggering command generation one;
Task call module, for generating while newly-increased interface, is triggered in lookup global data base with the menu item
Corresponding task is instructed, the task is called.
Specifically, receive after menu item triggering command, the global Display panel menu in the menu item can generate one
Newly-increased interface, the newly-increased interface is used for the follow-up task to being included in the menu item triggering command and shown;In generation
While newly-increased panel, according to the global data base pre-set in the menu item triggering command search framework, call described
The task corresponding with the menu item triggering command in global data base.
Alternatively, the task call unit also includes:
Trigger condition Registering modules, for registering trigger condition to each task included in global data base, root
The task is monitored according to the situation that is triggered of the trigger condition.
The trigger condition registered in advance in the task that global data place is included, can perform and institute when condition is triggered
The corresponding task of trigger condition is stated, the monitoring to tasks carrying situation is realized according to the situation that is triggered of the trigger condition, can
Have with the event for registering trigger condition:Operation mark changes event, chooses object change event, ray to hit object event, mouse
Mark presses event, mouse and upsprings event, mobile object event, rotating object event, object around event, scaling event, object
Mobile and rotational event and click event etc..
Task display unit 24, for sending the task to the newly-increased interface, after the task configuration parameter,
Show the task.
The task display unit includes:
Task sending module, for sending the task to the newly-increased interface;
Parameter configuration module, is received after the task for the newly-increased interface, sends parameter configuration instruction in advance
The precast body of configuration in the frame;
Parameter configuration module, receives configuration after the parameter configuration instruction corresponding with the task for the precast body
Task after parameter, and send configuration parameter is to the newly-increased interface;
Task display module, receives for the newly-increased interface and shows the task after the configuration parameter.
After searching and calling the task, the task is sent to the newly-increased interface, increases interface newly receiving
State after task, send parameter configuration and instruct comprising a precast body in the precast body menu into menu item, the precast body menu,
The precast body, for function required during centrally stored software project development, is unique integrated object of the framework.
After precast body receives the parameter configuration instruction that newly-increased interface is sent, required ginseng when being performed to the task configuration task
Number, configures the task after parameter after send configuration parameter to newly-increased interface, by increasing interface newly to appointing after the configuration parameter
Business is shown.When the newly-increased interface also may be implemented in the application of subsequent project, dynamically change according to the need for specific tasks
The configuration parameter of task, for example, can adjust maximal rays length, scale size, minimum zoom size, maximum zoom size, generation
Boundary's rotary speed, rotationally constrained, the function setting of a button, visual angle rotary speed, visual angle translational speed, object layer, ray choosing
Middle object, ray hits object, and mouse mode locks pen mode, infinite rays long patterns, self-defining operation pattern etc..
In second embodiment of the invention, by framework import unit, import after framework, menu is generated according to imported framework
, when receiving menu item enabled instruction, task call unit can be according to the newly-increased boundary of menu item enabled instruction generation one
Face, meanwhile, being included in the menu item enabled instruction for task is called, is the task configuration parameter in task display unit
Afterwards, the task is shown, is operated for user.In the present embodiment due to generating newly-increased interface, parameter configuration interface is optimized,
Follow-up parameter that can also be as needed to configuration is modified, and realizes the dynamic configuration of task parameters.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and step, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually with hard
Part or software mode are performed, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can be with
Described function is realized using distinct methods to each specific application, but this realization is it is not considered that beyond this hair
Bright scope.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description
With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, be will not be repeated here.
If the function is realized using in the form of SFU software functional unit 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 to cause 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.
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.