Content of the invention
For not enough present in virtual reality technology, on virtual reality video of the present invention superposition follow visual angle picture and text and
The method of video content, proposes one kind by opening up one piece of static play area in video-see region, and according to be shown interior
The type held carries out different technical finesses and forms picture to be shown, then by opengl by this picture be rendered into one piece new
On texture, finally this texture is rendered into the static play area opening up out in above-mentioned video playback area to realize following dynamically
The method that video playback shows the effect of video attachments content, by passing through technical finesse Overlapping display dynamic by content to be displayed
The mode of the specific position of state video display area, user can either be had during viewing and enough freely plays space
Easily Video Add-On information can be obtained as traditional viewing again, and when video does not have additional information, for showing
Show that the video area of additional information shows to reach bigger realistic space effect for normal video by being recovered, significantly
Improve user's viewing experience.
The technical solution adopted for the present invention to solve the technical problems comprises the following steps:
3d modeling mapping video data step, playing module carries out 3d modeling according to setup parameter, and reads video counts frame by frame
According to being mapped on 3d model.
Calculate picture step, the view parameter according to user input calculates picture to be shown from 3d data for projection matrix
Information simultaneously calculates static state display area information.
Preferably, this step includes calculating video image information and static state display regional space information.
Preferably, calculated according to the viewing angle control information of user input the size of video area needing to play, visual angle,
The information such as the depth of field;The information such as static state display regional location and size is calculated according to setup parameter.
Render static state display region step, particular procedure is carried out according to specific requirement to information to be displayed and result rendered
To region to be shown.
Preferably, described step includes: needs for information to be displayed to be converted into a pure picture according to static state display and incites somebody to action
This picture is rendered into static state display region.
Preferably, described information to be displayed includes three kinds of situations: pure pictorial information, plain textual information and word and picture
Mixed information.
Preferably, for described pure pictorial information, need not any change.
Preferably, for described plain textual information, the first property calculation area size according to Word message, then using figure
Described Word message is converted into pictorial information by the method for piece context.
Preferably, for the mixed information of described word and picture, first typesetting is carried out to word and pictorial information, then
Viewing area size is calculated according to word and picture attribute, and then draws word and picture, finally utilize the side of picture context
This drafting information is converted into picture by method.
Preferably, the described static state display region that is rendered into refers to extract data content and then the wash with watercolours of picture using opengl
Contaminate to one piece of new data texture, finally this data texture is rendered into described static state display region.
Preferably, if no static data needs to show, destroy the described static state display area calculating and creating in picture step
Domain resource, the video information in order to this region normally shows.
Play video step, video pictures and static state display region content are shown according to result of calculation.
Preferably, video playback module requires again to render 3d model according to the control parameter receiving and static state display
Data matrix.
Preferably, will check the need for terminating video playback after each frame video playback finishes, and need to continue
Read next frame video information in the case of broadcasting and repeat playing process, stop when needing to terminate video playback parsing and destroying
Specify.
Using technique scheme, the invention has the advantages that
The present invention relates to superposition follows the picture and text at visual angle and the method for video content, by video-see on virtual reality video
One piece of static play area is opened up in region, and carries out different technical finesses according to the type of content to be displayed and form figure to be shown
Piece, then by opengl, this picture is rendered on one piece of new texture, finally this texture is rendered into above-mentioned video playback
The static play area that region opens up out is to realize following the effect that dynamic video plays display video attachments content.By inciting somebody to action
Content to be displayed through technical finesse be added to dynamic video viewing area specific position mode, allow user in the mistake of viewing
Energy easily obtains Video Add-On information as traditional viewing again can either enough spaces that freely plays in journey, and works as and regard
When there is not additional information in frequency, the video area for display additional information will be recovered and show for normal video
To reach bigger realistic space effect, substantially increase user's viewing experience.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Whole description is it is clear that described embodiment is only one embodiment of the present of invention, rather than whole embodiments.Based on this
Embodiment in invention, other realities that one of ordinary skill in the art is obtained on the premise of not making creative work
Apply example, broadly fall into the scope of protection of the invention.
The embodiment of the invention discloses the picture and text at visual angle and the method for video content are followed in superposition on virtual reality video, ginseng
As shown in Figure 1, the method includes:
Step s1: video playback module carry out 3d modeling and frame by frame reading video data render to this 3d model;
Step s2: the view parameter being given according to user calculates image information the specific local reserved particular size in picture
Static state display is made in region;
Step s3: the type according to content to be displayed carries out different technical finesses and forms picture to be shown;
Step s4: video is carried out according to the data message calculating and shows and in static state display region display certain content.
In the embodiment of the present invention, by opening up one piece of static play area in video-see region, and according to be shown interior
The type held carries out different technical finesses and forms picture to be shown, then by opengl by this picture be rendered into one piece new
On texture, finally this texture is rendered into the static play area opening up out in above-mentioned video playback area to realize following dynamically
Video playback shows the effect of video attachments content.
It can be seen that, by by content to be displayed by technical finesse be added to dynamic video viewing area specific position side
Formula, allow user can either have during viewing enough freely play space and can think that traditional viewing equally easily obtains again regard
Frequency additional information, and when video does not have additional information, the video area for display additional information will be recovered
To show to reach bigger realistic space effect for normal video, substantially increase user's viewing experience.
The embodiment of the invention discloses the picture and text at visual angle and the method for video content are followed in superposition on virtual reality video, ginseng
See Fig. 2, relatively go up an embodiment, the present embodiment has made further instruction and optimization to technical scheme.Specifically, the present embodiment
The method being superimposed the picture and text and video content following visual angle on middle virtual reality video comprises the steps of.
S1:3d modeling mapping video data:
Preferably, playing module carries out 3d modeling according to setup parameter, and described parameter is included for determining distant relationships and the depth of field
And instruct 2d pinup picture and 3d to model the 3d model spherical radius rendering, for determining the direction vector of video camera direction and being used for
Determine the vector upwards of direction of advance;
Preferably, after 3d modeling completes, video playback module will reading video data being mapped on this 3d model frame by frame.
S2: picture calculates:
Preferably, this step includes: the viewing angle control parameter according to user input calculates video image information to be shown;Regarding
The static state display region as Video Add-On presentation of information for the region of one piece of particular size, this area are opened up in the specific region of frequency display
Domain will be followed view angle switch and be covered display.
S3: render static state display region:
Preferably, step s31 is first carried out judge whether to need to carry out static state display, if desired then execution step s33, otherwise holds
Row step s32;
Preferably, step s32 is destroyed static state display region and is referred to remove the static state display region money opening up out in step s2
Source, and discharge this viewing area and show for normal video, then execution step s4;
Preferably, step s32 is used for judging whether content to be displayed is pure pictorial information, if then picture is not done with any place
Reason, otherwise, for plain textual information execution step s34, s35 process, the mixed information for word and picture executes step
Rapid s36, s37, s38, s39 process, and execution step s310 after case above is disposed;
Preferably, step s310 refers to using opengl, the pictorial information handled well be rendered on one piece of new texture, then
Execution step s311 is done and is rendered further;
Preferably, Rong in the texture rendering is being rendered into the static storage region opening up out in step s2 by step s311
On, then execution step s4 shows to video content.
Preferably, in step s4, first execution step s41 is projected according to view parameter and static state display information reconstruction 3d
Matrix, if not having static state display information, static state display region is rendered into the video information in this region again;
Preferably, after execution of step s41, playing module can execution step s42 complete to include possibility to this frame video data information
The static state display data message existing plays out;
Preferably, all execution step s43 can judge whether video playback terminates after every frame data finish, if then executing
Step s44 stops Digital video resolution and simultaneously destroys related resource, and otherwise execution step s1 reads on next frame video data repeats
Stating process step instructs video playback to terminate.
In sum, by execution step s1 carry out 3d data modeling and frame by frame reading video data be mapped to this model
On, then execution step s2 obtain the viewing angle control information parameter of user input and thus calculate video counts to be played it is believed that
Breath, simultaneously the ad-hoc location in video playback area open up one piece of static state display region for showing the letter outside current video
Breath, judges whether information content to be shown by step s31, if not existing, execution step s32 destroys step
The static state display region resource opening up out in s2, otherwise, is execution step during full Word message for information to be displayed
S34 is according to the property calculation display space size of word, and then execution step s35 will change word using the method for picture context
Information is converted into pictorial information;When content to be displayed is for the mixed information of word and picture, execution step s36 is to figure
After piece and Word message carry out typesetting, execution step s37 calculates display space size according to the particular community of word and picture,
And then execution step s38 draws to these words and pictorial information, for drawing result execution step s39 producing by institute
State result and become pure picture using the method migration of picture context, the result execution step obtaining is processed for above-mentioned various situations
Pure picture is rendered on one piece of texture newly opened up by s310 using opengl, then to this texture execution step s311 by its wash with watercolours
Contaminate the static state display region opening up out in step s2, finally step s32, s311 result execution step s41 is weighed
Newly render 3d model data matrix, and by step s42, above-mentioned rendering result is played back, finish rear execution step
S43 judges whether video playback terminates, if then execution step s44 stopping video parsing and destroys corresponding resource, otherwise holds
Row step s1 reads next frame video data and repeats above-mentioned processing procedure and terminate until video playback.By by content to be displayed
By technical finesse be added to dynamic video viewing area specific position by way of, allow the user can either during viewing
Have enough freely play space again can as traditional viewing light acquisition Video Add-On information, and when video do not exist attached
Plus when information, for display additional information video area will be recovered show for normal video bigger to reach
Realistic space effect, substantially increase user's viewing experience.
The foregoing is only illustrative, rather than be restricted.Those skilled in the art can carry out various changing to invention
Move with modification without departing from the spirit and scope of the present invention.So, if these modifications of the present invention and modification belong to the present invention
Within the scope of claim and its equivalent technologies, then the present invention is also intended to including these changes and modification.