CN106170085A - A kind of without mirror solid engine exchange method - Google Patents

A kind of without mirror solid engine exchange method Download PDF

Info

Publication number
CN106170085A
CN106170085A CN201610623012.9A CN201610623012A CN106170085A CN 106170085 A CN106170085 A CN 106170085A CN 201610623012 A CN201610623012 A CN 201610623012A CN 106170085 A CN106170085 A CN 106170085A
Authority
CN
China
Prior art keywords
picture
mirror
word
stereo display
engine
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
CN201610623012.9A
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.)
Jiangsu Linyuan Dimensional Imaging Technology Co Ltd
Original Assignee
Jiangsu Linyuan Dimensional Imaging Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Linyuan Dimensional Imaging Technology Co Ltd filed Critical Jiangsu Linyuan Dimensional Imaging Technology Co Ltd
Priority to CN201610623012.9A priority Critical patent/CN106170085A/en
Publication of CN106170085A publication Critical patent/CN106170085A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/172Processing image signals image signals comprising non-image signal components, e.g. headers or format information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/243Image signal generators using stereoscopic image cameras using three or more 2D image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/30Image reproducers
    • H04N13/302Image reproducers for viewing without the aid of special glasses, i.e. using autostereoscopic displays

Abstract

The present invention provides a kind of without mirror solid engine exchange method, the method creates multiple stage stereoscopic camera according to without mirror stereo display characteristic in the scene of Unity3D engine, the material contents such as model, word and the picture that establishment demand is mutual, by writing the three-dimensional mutual of the contents such as scripted code implementation model, word and picture.Carry out sampling according to tinter Shader and fusion treatment obtains without mirror stereo composite image, stereo display and picture and text interaction response can obtained without mirror stereo display terminal by recognition method such as mouse, keyboard, gestures.

Description

A kind of without mirror solid engine exchange method
Technical field
The present invention relates to without mirror stereo display technique field, be specially a kind of without mirror solid engine exchange method.
Background technology
Unity3D is that developed by Unity Technologies allows player easily create such as 3 D video trip Play, the multi-platform comprehensive development of games instrument of the building type interaction content such as visualization, realtime three dimensional animation, be one entirely The professional game engine that face is integrated.This engine because of its powerful Cross-border congestion management characteristic, gorgeous 3D rendering effect and from Well-known outstanding by the human-computer interaction function enriched.Unity is similar to Director, Blender game engine, Virtools or Torque Game Builder etc. utilizes its editor of software that mutual pattern development environment is primary manner Device operates under Windows and Mac OS X, can issue and play to Windows, Mac, Wii, iPhone, Windows phone The platforms such as 8 and Android.Because differing greatly between platform, such as screen size, mode of operation, hardware condition etc. are no With the most all causing huge trouble to developer, and the cross-platform characteristic of Unity3D be able to save developer different platforms it Between transplanting development work, save the development time.Unity web player plug-in unit publishing web page can also be utilized to play simultaneously, Support the web page browsing of Mac and Windows.Its web player is also supported by Mac widgets.
Stereo display without mirror be without wearing any auxiliary equipment (such as 3D glasses, the helmet etc.) in the case of, pass through light beam The advanced optical technology such as lens can allow spectators obtain unprecedented " high validity " with the video film source of particular algorithm customization Visual experience, is a kind of novel image display technology.The stereo display technique without mirror of main flow be mainly based upon slit grating and Column mirror grating realizes, and slit grating is made up of printing opacity and the gratings strips being in the light, and by light is blocked effect, comes real Being spatially separating of existing different points of view image, and column mirror grating is to utilize cylindrical lens to interception of rays, makes light at sky Between deflect, thus realize the effect similar to slit grating.Stereo display technique without mirror based on Binocular Vision Principle exists The fields such as education, displaying, science, audio-visual and mobile terminal have important application.
At present, without mirror stereo display technique in order to obtain more preferable stereoeffect, great majority use several to have certain parallax Image synthesize, in different viewing location, beholder sees that two width images therein just can produce in cerebral cortex and stands Body vision, forms stereo-picture.
Present stage without mirror stereoscopic display content mainly based on without mirror stereoscopic video content, but without mirror stereoscopic video content It is limited to fabrication cycle length, cost of manufacture high, without the problem such as interactive, it is impossible to good promotes the development without mirror stereo technology. And picture and text interactive system is widely used in 2D and shows, although have good illustrative, expressivity, interactivity, but be also faced with Lack bright spot, the problems such as visual impact is not enough, it is impossible to the good development promoting picture and text interactive system.
Summary of the invention
It is an object of the invention to provide a kind of without mirror solid engine exchange method, it is possible to effectively solve without mirror stereo display The content production cycle is long, and cost of manufacture is high, without the problem such as interactive, and solves picture and text interactive system visual impact not simultaneously Foot, lacks the problems such as bright spot, greatly extension picture and text interactive system and the application without both mirror stereo display techniques, aobvious Write the development promoting both.
The present invention can be achieved through the following technical solutions:
The invention discloses a kind of without mirror solid engine exchange method, comprise the following steps:
A. the mutual word of demand and picture are created;
B. word is generated as the word picture with transparent channel;
C. the word picture by picture mutual for demand and with transparent channel imports Unity3D engine, and is adjusted by its form Whole is two dimension interface formats;
D. in Unity3D engine, create multiple Sprite spirit assembly, and by picture mutual for demand and with transparent logical The word picture in road gives different Sprite spirit assemblies;
E. scripted code is write, it is achieved picture and the interactive operation of word picture;
F. in Same Scene, set up multiple stage virtual camera, adjust camera angle, picture and word picture are shown, with Time virtual camera put according to certain structural requirement, and with each camera add render pinup picture;
G. create zero plane, write script and realize all virtual cameras and focus on zero plane;
H. calculating viewpoint sub-pixel mapping matrix, and write corresponding Shader, the pinup picture rendering every camera is adopted Sample processes, and is added by multiple anaglyphs through sampling processing, obtains final composograph;
I. create without mirror stereo display part in the scene of Unity3D engine, be respectively acquisition composograph camera and Stereo display panel without mirror, and the final image obtained is exported without mirror stereo display panel;
J. use Unity3D engine to compile above scene, be issued as the executable file of PC end;
K.PC end is connected to, without mirror stereo display terminal, be exported by PC end image without mirror stereo display terminal, and operation can perform File, obtains correct stereo display without mirror stereo display terminal;
L. carry out picture and text interactive operation without mirror stereo display terminal, obtain the picture and text interaction response of correct stereo display, it is achieved The picture and text exchange method of solid without mirror based on Unity3D engine.
Further, in b step, word is generated as the word picture with transparent channel, will in Unity3D engine Text importing out and interacts operation to it, and concrete interactive operation mode is: clicks on word photo response and hands over accordingly Action mutually.
Further, in step c, the word picture with transparent channel is imported Unity3D engine, and by its form It is adjusted to two dimension interface formats.
One of the present invention without mirror solid engine exchange method, has a following beneficial effect: standing without mirror by the present invention Body engine exchange method, can greatly extend picture and text interactive system and the application without both mirror stereo display techniques, And existing picture and text interactive system just can be able to be realized without mirror stereo display through a little amendment, thus drop to a great extent The low cost of manufacture without mirror stereoscopic display content, and abundant for picture and text interactive system interactive function freely can be transplanted to Stereo display technique without mirror, good promotes the development without mirror stereo display technique.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that technical scheme, below in conjunction with embodiment to this Bright product is described in further detail.
The invention discloses a kind of without mirror solid engine exchange method, comprise the following steps:
A. the mutual word of demand and picture are created;The friendship that core is picture and word of the picture and text exchange method of solid without mirror Interoperability, picture used here is common 2D picture.
B. word is generated as the word picture with transparent channel;In Unity3D engine by text importing the most also It is interacted operation, needs word is generated as the word picture with transparent channel.Concrete interactive operation mode is: Click on the corresponding interactive action of word photo response.
C. the word picture by picture mutual for demand and with transparent channel imports Unity3D engine, and by its lattice Formula is adjusted to two dimension interface formats;In Unity3D engine, want correct display word, need be first two-dimentional by its Format adjusting Interface formats, so can be by the background transparent of word picture so that only demonstrating literary composition in the scene of Unity3D engine Word.
D. in Unity3D engine, create multiple Sprite spirit assembly, and by picture mutual for demand and with thoroughly The word picture of bright passage gives different Sprite spirit assemblies;In the scene of Unity3D engine, to demonstrate that demand is handed over Mutual picture and word, can not directly pull into picture concerned and word in the scene of Unity3D engine, but needs Want Sprite spirit assembly as carrier, give Sprite spirit assembly to reach correct by picture concerned and word picture Display.And the corresponding picture of each of which Sprite spirit assembly, because having multiple word picture and picture to hand over Interoperability, so needing to create multiple Sprite spirit assembly as carrier.
E. associated script code is write, it is achieved picture and the interactive operation of word picture;By code realize picture and The interactive operation of word picture, it is achieved click on the alternative events that different photo response is different;
F. in Same Scene, set up multiple stage virtual camera, adjust camera angle, picture and word picture are shown, with Time virtual camera put according to certain structural requirement, and with each camera add render pinup picture;Can be by closing Removing the work office multiple stage virtual three-dimensional camera, carries out sync pulse jamming to obtain several anaglyphs to seeing to same picture and text scene The person's of seeing right and left eyes provides the most discrepant anaglyph, thus realizes stereoscopic vision.The target pinup picture of every camera adds Rendering pinup picture Render Texture, rendering pinup picture is a kind of special texture type, it is possible to operationally produce in real time and Update.Its using method is to create one new to render texture, and specifies a camera to render it, then the most permissible Use as conventional texture.
G. create zero plane, write script and realize all virtual cameras and focus on zero plane;Camera is focused on zero plane Realizing the object between zero plane and camera and present screen state, the object beyond zero plane presents the state into screen, to reach Real space multistory effect;
H. calculating viewpoint sub-pixel mapping matrix, and write corresponding Shader, the pinup picture rendering every camera is adopted Sample processes, and is added by multiple anaglyphs through sampling processing, obtains final composograph;
First, determine that RGB sub-pixel given on 2D display screen should take from the RGB component of which viewpoint, given below many The computing formula of viewpoint sub-pixel mapping matrix:
Wherein,It is the screen periods number that covers RGB sub-pixel in the horizontal direction,Seat for RGB sub-pixel Cursor position,For grating axle relative to the slanted angle of LCD display vertical axis,Represent 2D display screen left edge and light The horizontal displacement of grid cell edges point,Represent total viewpoint number, namely participate in the anaglyph quantity of synthesis.According to Above formula can calculate the gray value of each sub-pixel on 2D display screen should be taken from the corresponding coordinate position of which width anaglyph The gray value put.Then being programmed in Shader by viewpoint mapping matrix, multiple utilizing Shader to render camera render patch Figure carries out the sampling processing of sub-pixel, and is overlapped mutually by multiple anaglyphs through sampling processing, obtains final synthesis Image.Wherein, Shader is also referred to as tinter, is to operate in the program on GPU, is used for carrying out three-dimensional body at coloring Reason, shadow calculate and texture color presents.Shader has summit Shader and two kinds of fundamental types of fragment Shader, summit Shader can process and convert the vertex position of the mesh being rendered on screen, and the output result of summit Shader will Pass to next step of streamline.The grid of solid after the rasterizing of hardware, fragment Shader being on streamline Can be performed, fragment Shader can carry out various test to a fragment, and the successful fragment of final test can be written into and render In output frame, thus become a visible pixels on indicator screen.Along with the lifting of GPU hardware performance, the volume of Shader Journey mode experienced by from initial fixing rendering pipeline, to the development of rendering pipeline able to programme.Fixing rendering pipeline is to support always A kind of pattern of old video card, the Shader that it writes out illuminates based on summit, compared to lighting system pixel-by-pixel, this side Faster, but effect can be weaker for the lighting calculation speed of formula.Fixed pipelines is the geometry of standard, illumination pipeline, and it controls generation Boundary, controlling and texture blend regarding projective transformation and fixed-illumination, essentially all of video card can be properly functioning.Able to programme render pipe Summit computing in rendering pipeline and Pixel calcualting are programmed processing by line respectively.
I. create in the scene of Unity3D engine without mirror stereo display part, be respectively the camera obtaining composograph And without mirror stereo display panel, and the final image obtained is exported without mirror stereo display panel;Create new display surface Final composograph, as the carrier of composograph, is given display floater by plate, obtains without mirror three-dimensional by the new camera created Image on display floater is presented in the game window of Unity3D engine so that carrying out the debugging efforts being correlated with.
J. use Unity3D engine to compile above scene, be issued as the executable file of PC end;The nothing that will make Mirror solid picture and text interaction scenarios is issued as executable file so that obtaining correct stereoeffect without mirror stereo display terminal, Because the terminal of stereo display without mirror is different from other 2D display terminals, only that each pixel in scene is three-dimensional with without mirror The same position pixel coupling of display terminal just can obtain correct stereoeffect and show.
K.PC end is connected to, without mirror stereo display terminal, export PC end image without mirror stereo display terminal, and operation can Perform file, obtain correct stereo display without mirror stereo display terminal;The picture of PC end is exported without mirror stereo display eventually End, and on display terminal, run executable file, it is achieved program and mating completely without mirror stereo display terminal pixel, To the correct stereo display of solid without mirror.
L. carry out picture and text interactive operation without mirror stereo display terminal, obtain the picture and text interaction response of correct stereo display, Realize the picture and text exchange method of solid without mirror based on Unity3D engine.Carrying out without mirror solid picture and text without mirror stereo display terminal Interactive operation, has obtained correct picture and text interaction response and correct solid without mirror stereoeffect shows, it is achieved that based on The picture and text exchange method of solid without mirror of Unity3D engine.
The above, only presently preferred embodiments of the present invention, not the present invention is made any pro forma restriction;All The those of ordinary skill of the industry all can described in by specification and the above and implement the present invention swimmingly;But, all familiar Professional and technical personnel, in the range of without departing from technical solution of the present invention, may utilize disclosed above technology contents and makes A little change, the equivalent variations modifying and develop, be the Equivalent embodiments of the present invention;Meanwhile, all realities according to the present invention The change of any equivalent variations that above example is made by matter technology, modify and differentiation etc., all still fall within the technology of the present invention Within the protection domain of scheme.

Claims (3)

1. one kind without mirror solid engine exchange method, it is characterised in that comprise the following steps:
A. the mutual word of demand and picture, are created;
B., word is generated as the word picture with transparent channel;
C. the word picture, by picture mutual for demand and with transparent channel imports Unity3D engine, and is adjusted by its form Whole is two dimension interface formats;
D., in Unity3D engine, multiple Sprite spirit assembly is created, and by picture mutual for demand and with transparent logical The word picture in road gives different Sprite spirit assemblies;
E., scripted code is write, it is achieved picture and the interactive operation of word picture;
F., in Same Scene, set up multiple stage virtual camera, adjust camera angle, picture and word picture are shown, Virtual camera is put according to certain structural requirement simultaneously, and interpolation renders pinup picture with each camera;
G., create zero plane, write script and realize all virtual cameras and focus on zero plane;
H., calculating viewpoint sub-pixel mapping matrix, and write corresponding Shader, the pinup picture rendering every camera is carried out Sampling processing, and multiple anaglyphs through sampling processing are added, obtain final composograph;
I., create without mirror stereo display part in the scene of Unity3D engine, be respectively the camera of acquisition composograph with And without mirror stereo display panel, and the final image obtained is exported without mirror stereo display panel;
J., use Unity3D engine to compile above scene, be issued as the executable file of PC end;
K., PC end be connected to, without mirror stereo display terminal, be exported by PC end image without mirror stereo display terminal, operation can be held Style of writing part, obtains correct stereo display without mirror stereo display terminal;
L., carry out picture and text interactive operation without mirror stereo display terminal, obtain the picture and text interaction response of correct stereo display, real The now picture and text exchange method of solid without mirror based on Unity3D engine.
The engine exchange method of solid without mirror the most according to claim 1, it is characterised in that: in b step, word is generated as With the word picture of transparent channel, in Unity3D engine, text importing out and is interacted operation to it, concrete Interactive operation mode is: click on the corresponding interactive action of word photo response.
3. the engine exchange method of solid without mirror described in a claim 1, it is characterised in that: in step c, will be with transparent logical The word picture in road imports Unity3D engine, and is two dimension interface formats by its Format adjusting.
CN201610623012.9A 2016-08-02 2016-08-02 A kind of without mirror solid engine exchange method Pending CN106170085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610623012.9A CN106170085A (en) 2016-08-02 2016-08-02 A kind of without mirror solid engine exchange method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610623012.9A CN106170085A (en) 2016-08-02 2016-08-02 A kind of without mirror solid engine exchange method

Publications (1)

Publication Number Publication Date
CN106170085A true CN106170085A (en) 2016-11-30

Family

ID=58065641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610623012.9A Pending CN106170085A (en) 2016-08-02 2016-08-02 A kind of without mirror solid engine exchange method

Country Status (1)

Country Link
CN (1) CN106170085A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986193A (en) * 2018-07-10 2018-12-11 武汉国遥新天地信息技术有限公司 It is a kind of three-dimensional text retouch side method for drafting
CN113259651A (en) * 2021-07-07 2021-08-13 江西科骏实业有限公司 Stereoscopic display method, apparatus, medium, and computer program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996367A (en) * 2006-12-28 2007-07-11 于慧 360 degree automatic analog simulation device system and method for implementing same
CN102253715A (en) * 2011-07-20 2011-11-23 康佳集团股份有限公司 Intelligent image-text human-computer interaction method and intelligent image-text human-computer interaction system of mobile terminal
KR20140079099A (en) * 2012-12-18 2014-06-26 홍병기 Mobile platform unity player
CN103957400A (en) * 2014-05-09 2014-07-30 北京乐成光视科技发展有限公司 Naked eye 3D display system based on Unity3D game engine
CN204156999U (en) * 2014-05-09 2015-02-11 北京乐成光视科技发展有限公司 A kind of bore hole 3D display system based on Unity3D game engine
CN104599319A (en) * 2014-12-26 2015-05-06 福建工程学院 Real-time generation method of 3D scene
CN105007477A (en) * 2015-07-06 2015-10-28 四川长虹电器股份有限公司 Method for realizing naked eye 3D display based on Unity3D engine
CN105282536A (en) * 2015-10-27 2016-01-27 成都斯斐德科技有限公司 Naked-eye 3D picture-text interaction method based on Unity3D engine

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996367A (en) * 2006-12-28 2007-07-11 于慧 360 degree automatic analog simulation device system and method for implementing same
CN102253715A (en) * 2011-07-20 2011-11-23 康佳集团股份有限公司 Intelligent image-text human-computer interaction method and intelligent image-text human-computer interaction system of mobile terminal
KR20140079099A (en) * 2012-12-18 2014-06-26 홍병기 Mobile platform unity player
CN103957400A (en) * 2014-05-09 2014-07-30 北京乐成光视科技发展有限公司 Naked eye 3D display system based on Unity3D game engine
CN204156999U (en) * 2014-05-09 2015-02-11 北京乐成光视科技发展有限公司 A kind of bore hole 3D display system based on Unity3D game engine
CN104599319A (en) * 2014-12-26 2015-05-06 福建工程学院 Real-time generation method of 3D scene
CN105007477A (en) * 2015-07-06 2015-10-28 四川长虹电器股份有限公司 Method for realizing naked eye 3D display based on Unity3D engine
CN105282536A (en) * 2015-10-27 2016-01-27 成都斯斐德科技有限公司 Naked-eye 3D picture-text interaction method based on Unity3D engine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986193A (en) * 2018-07-10 2018-12-11 武汉国遥新天地信息技术有限公司 It is a kind of three-dimensional text retouch side method for drafting
CN113259651A (en) * 2021-07-07 2021-08-13 江西科骏实业有限公司 Stereoscopic display method, apparatus, medium, and computer program product
CN113259651B (en) * 2021-07-07 2021-10-15 江西科骏实业有限公司 Stereoscopic display method, apparatus, medium, and computer program product

Similar Documents

Publication Publication Date Title
US20230075270A1 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
CN105282536A (en) Naked-eye 3D picture-text interaction method based on Unity3D engine
CN110415343B (en) Engineering BIM visual three-dimensional engine system
CN106504339A (en) Historical relic 3D methods of exhibiting based on virtual reality
JP5891388B2 (en) Image drawing apparatus, image drawing method, and image drawing program for drawing a stereoscopic image
Raskar et al. Table-top spatially-augmented realty: bringing physical models to life with projected imagery
CN103957400A (en) Naked eye 3D display system based on Unity3D game engine
CN204156999U (en) A kind of bore hole 3D display system based on Unity3D game engine
CN102243768B (en) Method for drawing stereo picture of three-dimensional virtual scene
CN105209960A (en) System, method, and computer program product to produce images for a near-eye light field display
CN101189643A (en) 3D image forming and displaying system
CN105007477A (en) Method for realizing naked eye 3D display based on Unity3D engine
US20080295035A1 (en) Projection of visual elements and graphical elements in a 3D UI
JP6553184B2 (en) Digital video rendering
CN105578172B (en) Bore hole 3D image display methods based on Unity3D engines
Suenaga et al. A practical implementation of free viewpoint video system for soccer games
Deng et al. Towards stereoscopic on-vehicle AR-HUD
EP4213102A1 (en) Rendering method and apparatus, and device
CN106170085A (en) A kind of without mirror solid engine exchange method
Nakamae et al. Rendering of landscapes for environmental assessment
CN105959677A (en) Naked eye 3D interaction method based on Android equipment
CN106547557A (en) A kind of multi-screen interactive exchange method based on virtual reality and bore hole 3D
CN105263015A (en) Method for controlling glasses-free 3D video display based on Android device
CN114820904A (en) Illumination-supporting pseudo-indoor rendering method, apparatus, medium, and device
CN113345113B (en) Content presentation method based on CAVE system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161130

WD01 Invention patent application deemed withdrawn after publication