CN108804061A - The virtual scene display method of virtual reality system - Google Patents
The virtual scene display method of virtual reality system Download PDFInfo
- Publication number
- CN108804061A CN108804061A CN201710310764.4A CN201710310764A CN108804061A CN 108804061 A CN108804061 A CN 108804061A CN 201710310764 A CN201710310764 A CN 201710310764A CN 108804061 A CN108804061 A CN 108804061A
- Authority
- CN
- China
- Prior art keywords
- coordinate system
- virtual
- display
- model
- transformation
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000009466 transformation Effects 0.000 claims abstract description 24
- 238000009877 rendering Methods 0.000 claims description 19
- 230000000007 visual effect Effects 0.000 claims description 8
- 230000000694 effects Effects 0.000 claims description 4
- 238000005286 illumination Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000007794 visualization technique Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The virtual scene display method of virtual reality system proposed by the present invention, belong to stereo display technique field, in virtual reality system, the display of virtual scene is very important for a user, the virtual scene only shown in screen meets the true natural law, and user could be made really to experience true feeling.The display of model is needed by several conversion process, these conversion process are mainly used for threedimensional model being transformed into another coordinate system from a coordinate system.According to the display process of DirectX11, threedimensional model mainly needs by world's transformation, view transformation, projective transformation and is the viewport transform, and local coordinate, world coordinate system, view coordinate system, projected coordinate system and Viewport coordinate system are passed through in the conversion of coordinate system.
Description
Technical field
The invention belongs to the virtual scene display methods of stereo display technique field, especially virtual reality system.
Background technology
Currently, with the fast development of computer graphic image treatment technology, since three-dimensional virtual scene can be by plane
Scene picture brings good visual effect and visual experience with image, lively render real scene, to
Apparent growth trend is presented in demand to three-dimensional visualization technique, thus, how to be created that required three-dimensional scenic is got over
Come more extensive concern and research, and is widely used in various industries.
Currently, the process for creating three-dimensional virtual scene in the related technology is mainly that user uses special 3 d modeling software
Three-dimensional scenic is created, for example, 3Dmax 3 d modeling softwares, in the implementation of the present invention, it is found by the applicant that the relevant technologies
In have at least the following problems:Due to needing to make three-dimensional scenic using special 3 d modeling software, to the special of producer
Industry requires high;And flat image is drawn firstly the need of producer, production process is complicated, efficiency is low, only professional three dimensional field
Scape producer can just produce required three-dimensional scenic, i.e., the mode of establishment three-dimensional virtual scene in the related technology is more complicated,
Difficulty is big, efficiency is low.
Invention content
In view of this, the purpose of the present invention is to provide a kind of virtual scene display method of virtual reality system, with solution
The certainly above problem.
The present invention specifically adopts the following technical scheme that realization:
Step 1, model read:DirectX11 will render the image of complexity true to nature, need early period soft using three-dimensional modeling
Part establishes threedimensional model, and then the information in relation to model is read in system, and main information includes the apex coordinate of model,
Vertex is drawn and texture;
Step 2, world's transformation:After threedimensional model reading system, the coordinate value on each vertex is in local coordinate
Value, that is, the numerical value in local coordinate system, if thinking, model can correctly be shown in Virtual Space, be needed model is each
The coordinate system on vertex is transformed to by certain calculating in world coordinate system;
Step 3, view transformation:Since the position of each object and video camera is relative to world coordinates in virtual environment
For system, and the object that end user watches be it is relevant with the position of video camera, this just need object be transformed into
Video camera is in a coordinate system of origin, which is view coordinate system, and Z-direction is towards the side inside screen
To;
Step 4, the back side are rejected:When watching an object, the back side can't see, more in each of virtual environment
Side shape is also divided into front and back sides, if to the back side of polygon without rendering, can greatly improve the rendering effect of system
Rate improves rendering speed in DirectX11 by not rendering the method at the polygon back side;
Step 5, photo-irradiation treatment:If virtual environment, without illumination, can't see any object as actual environment,
So needing to add various light sources in virtual environment so that the rendering effect of virtual environment is truer, under normal circumstances can
The light source enough added mainly has:Point light source, directional light and spotlight;
Step 6 is cut:Since the visual angle of video camera is that have a certain range of, the object user beyond angular field of view is to see
Less than, so according to the visual angle situation of video camera, the region that angular field of view is exceeded in virtual scene is cropped;
Step 7, projective transformation:A cube will be transformed to depending on pyramid, the small distal end in proximal end depending on pyramid is big, is converted to vertical
After cube, proximal end will generate near big and far smaller feeling relative to being distally amplified, and meet the people in true environment and see
Examine the feeling of object;
Step 8, the viewport transform:In the coordinate system transformation to display coordinate of dummy object, in virtual environment
In image final rendering to the display of user;
Step 9, rasterization process:The process of rasterization process is to determine the process of pixel and its color in image, makes
It is completed with graphic hardware;
Step 10, screen output:The image for the virtual scene handled well before is shown in user display.
Fig. 1 is the virtual scene display method flow diagram of the present invention;
Fig. 2 is world coordinate system schematic diagram;
Fig. 3 is projective transformation schematic diagram.
Specific implementation mode
To further illustrate that each embodiment, the present invention are provided with attached drawing.These attached drawings are that the invention discloses one of content
Point, mainly to illustrate embodiment, and the associated description of specification can be coordinated to explain the operation principles of embodiment.Cooperation ginseng
These contents are examined, those of ordinary skill in the art will be understood that other possible embodiments and advantages of the present invention.In figure
Component be not necessarily to scale, and similar component symbol is conventionally used to indicate similar component.
In conjunction with the drawings and specific embodiments, the present invention is further described.
In virtual reality system, the display of virtual scene is very important for a user, is shown only in screen
The virtual scene shown meets the true natural law, and user could be made really to experience true feeling.
The virtual scene display method of virtual reality system provided in this embodiment, the multimedia created using Microsoft
Programming interface DirectX11 is needed to the model is shown on screen from three-dimensional modeling data is read as graphics rendering engine
The flow wanted is as shown in Figure 1.
The display of model is needed by several conversion process, these conversion process are mainly used for sitting threedimensional model from one
Mark system is transformed into another coordinate system.According to the display process of DirectX11, threedimensional model mainly need by the world transformation,
View transformation, projective transformation and be the viewport transform, the conversion of coordinate system is sat by local coordinate, world coordinate system, view
Mark system, projected coordinate system and Viewport coordinate system.Detailed process is as follows:
Step 1, model read:DirectX11 will render the image of complexity true to nature, need early period soft using three-dimensional modeling
Part establishes threedimensional model, and then the information in relation to model is read in system, and main information includes the apex coordinate of model,
Vertex is drawn and texture;
Step 2, world's transformation:After threedimensional model reading system, the coordinate value on each vertex is in local coordinate
Value, that is, the numerical value in local coordinate system, if thinking, model can correctly be shown in Virtual Space, be needed model is each
The coordinate system on vertex is transformed to by certain calculating in world coordinate system, and world coordinate system is that all objects are public in virtual environment
Coordinate system, as shown in Fig. 2, this conversion process converts for the world;
Step 3, view transformation:Since the position of each object and video camera is relative to world coordinates in virtual environment
For system, and the object that end user watches be it is relevant with the position of video camera, this just need object be transformed into
Video camera is in a coordinate system of origin, which is view coordinate system, its Z-direction is towards inside screen
Direction, this coordinate transformation process are known as view transformation;
Step 4, the back side are rejected:Under normal circumstances when watching an object, its back side can't see, in virtual ring
Each polygon in border is also divided into front and back sides, if can greatly be improved to the back side of polygon without rendering
The rendering efficiency of system improves rendering speed in DirectX11 by not rendering the method at the polygon back side, this
One process is known as back side rejecting;
Step 5, photo-irradiation treatment:If virtual environment, without illumination, can't see any object as actual environment,
So needing to add various light sources in virtual environment so that the rendering effect of virtual environment is truer, under normal circumstances can
The light source enough added mainly has:Point light source, directional light and spotlight;
Step 6 is cut:Since the visual angle of video camera is that have a certain range of, the object user beyond angular field of view is to see
Less than, so according to the visual angle situation of video camera, the region that angular field of view is exceeded in virtual scene is cropped, can be promoted
System-computed speed, this process are known as cutting;
Step 7, projective transformation:Since the image of final virtual environment is shown in two-dimensional screen, this just needs one
The 3-D view of scene is converted into the process of two dimensional image, that is, the process of projective transformation, the method for projective transformation has very
More, typical method is perspective projection, and the ken of video camera is considered one and regards pyramid, projective transformation in virtual scene
Process this is exactly transformed to a cubical process depending on pyramid because regarding pyramid the small distal end in proximal end it is big, be converted to vertical
After cube, proximal end will generate near big and far smaller feeling relative to being distally amplified, and meet the people in true environment and see
The feeling for examining object, as shown in Fig. 3;
Step 8, the viewport transform:In order in the image final rendering to the display of user in virtual environment, need
In the coordinate system transformation to display coordinate of dummy object, this process is known as the viewport transform;
Step 9, rasterization process:The process of rasterization process is to determine the process of pixel and its color in image, by
It is very huge in its calculation amount, it is completed under normal circumstances using graphic hardware;
Step 10, screen output:This is that the last one process of virtual scene display is also the final of virtual scene display
Purpose is shown to the image for the virtual scene handled well before in user display.
Although specifically showing and describing the present invention in conjunction with preferred embodiment, those skilled in the art should be bright
In vain, it is not departing from the spirit and scope of the present invention defined by the appended claims, it in the form and details can be right
The present invention makes a variety of changes, and is protection scope of the present invention.
Claims (1)
1. a kind of virtual scene display method of virtual reality system, which is characterized in that specific algorithm steps are as follows:
Step 1, model read:DirectX11 will render the image of complexity true to nature, need built using 3 d modeling software early period
Good threedimensional model is found, then the information in relation to model is read in system, main information includes the apex coordinate of model, vertex
Draw and texture;
Step 2, world's transformation:After threedimensional model reading system, the coordinate value on each vertex is the value in local coordinate,
Numerical value namely in local coordinate system, if thinking, model can correctly be shown in Virtual Space, be needed each vertex of model
Coordinate system transformed in world coordinate system by certain calculating;
Step 3, view transformation:Due in virtual environment the position of each object and video camera be relative to world coordinate system and
Speech, and the object that end user watches is relevant with the position of video camera, this just needs object to be transformed into image
Machine is in a coordinate system of origin, which is view coordinate system, and Z-direction is towards the direction inside screen;
Step 4, the back side are rejected:When watching an object, the back side can't see, each polygon in virtual environment
Also front and back sides are divided into, if to the back side of polygon without rendering, can greatly improve the rendering efficiency of system,
In DirectX11 rendering speed is improved by not rendering the method at the polygon back side;
Step 5, photo-irradiation treatment:If virtual environment, without illumination, can't see any object as actual environment, so
It needs to add various light sources in virtual environment so that the rendering effect of virtual environment is truer, under normal circumstances can add
The light source added mainly has:Point light source, directional light and spotlight;
Step 6 is cut:Since the visual angle of video camera is that have a certain range of, the object user beyond angular field of view is to can't see
, so according to the visual angle situation of video camera, the region that angular field of view is exceeded in virtual scene is cropped;
Step 7, projective transformation:A cube will be transformed to depending on pyramid, the small distal end in proximal end depending on pyramid is big, is converted to cube
After, proximal end will generate near big and far smaller feeling relative to being distally amplified, and meet the people in true environment and observe object
The feeling of body;
Step 8, the viewport transform:In the coordinate system transformation to display coordinate of dummy object, the image in virtual environment
In final rendering to the display of user;
Step 9, rasterization process:The process of rasterization process is to determine the process of pixel and its color in image, uses figure
Shape hardware is completed;
Step 10, screen output:The image for the virtual scene handled well before is shown in user display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710310764.4A CN108804061A (en) | 2017-05-05 | 2017-05-05 | The virtual scene display method of virtual reality system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710310764.4A CN108804061A (en) | 2017-05-05 | 2017-05-05 | The virtual scene display method of virtual reality system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108804061A true CN108804061A (en) | 2018-11-13 |
Family
ID=64054612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710310764.4A Pending CN108804061A (en) | 2017-05-05 | 2017-05-05 | The virtual scene display method of virtual reality system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108804061A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109933262A (en) * | 2019-03-08 | 2019-06-25 | 江西理工大学南昌校区 | A kind of GIF screenshotss method and device thereof |
CN111866467A (en) * | 2020-07-29 | 2020-10-30 | 浙江大华技术股份有限公司 | Method and device for determining three-dimensional coverage space of monitoring video and storage medium |
CN111932641A (en) * | 2020-09-27 | 2020-11-13 | 北京达佳互联信息技术有限公司 | Image processing method and device, electronic equipment and storage medium |
CN112396688A (en) * | 2019-08-14 | 2021-02-23 | 杭州海康威视数字技术股份有限公司 | Three-dimensional virtual scene generation method and device |
CN114742906A (en) * | 2022-06-13 | 2022-07-12 | 国网湖北省电力有限公司武汉供电公司 | MR virtual space image acquisition method |
CN114967917A (en) * | 2019-02-04 | 2022-08-30 | 托比股份公司 | Method and system for determining a current gaze direction |
CN115103134A (en) * | 2022-06-17 | 2022-09-23 | 北京中科深智科技有限公司 | LED virtual shooting cutting synthesis method |
-
2017
- 2017-05-05 CN CN201710310764.4A patent/CN108804061A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114967917A (en) * | 2019-02-04 | 2022-08-30 | 托比股份公司 | Method and system for determining a current gaze direction |
CN109933262A (en) * | 2019-03-08 | 2019-06-25 | 江西理工大学南昌校区 | A kind of GIF screenshotss method and device thereof |
CN109933262B (en) * | 2019-03-08 | 2020-12-08 | 江西理工大学南昌校区 | GIF screen capturing method and device |
CN112396688A (en) * | 2019-08-14 | 2021-02-23 | 杭州海康威视数字技术股份有限公司 | Three-dimensional virtual scene generation method and device |
CN112396688B (en) * | 2019-08-14 | 2023-09-26 | 杭州海康威视数字技术股份有限公司 | Three-dimensional virtual scene generation method and device |
CN111866467A (en) * | 2020-07-29 | 2020-10-30 | 浙江大华技术股份有限公司 | Method and device for determining three-dimensional coverage space of monitoring video and storage medium |
CN111866467B (en) * | 2020-07-29 | 2022-12-06 | 浙江大华技术股份有限公司 | Method and device for determining three-dimensional coverage space of monitoring video and storage medium |
CN111932641A (en) * | 2020-09-27 | 2020-11-13 | 北京达佳互联信息技术有限公司 | Image processing method and device, electronic equipment and storage medium |
US11610364B2 (en) | 2020-09-27 | 2023-03-21 | Beijing Dajia Internet Information Technology Co., Ltd. | Method, device, and storage medium for applying lighting to a rendered object in a scene |
CN114742906A (en) * | 2022-06-13 | 2022-07-12 | 国网湖北省电力有限公司武汉供电公司 | MR virtual space image acquisition method |
CN115103134A (en) * | 2022-06-17 | 2022-09-23 | 北京中科深智科技有限公司 | LED virtual shooting cutting synthesis method |
CN115103134B (en) * | 2022-06-17 | 2023-02-17 | 北京中科深智科技有限公司 | LED virtual shooting cutting synthesis method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108804061A (en) | The virtual scene display method of virtual reality system | |
CN112150638B (en) | Virtual object image synthesis method, device, electronic equipment and storage medium | |
KR101145260B1 (en) | Apparatus and method for mapping textures to object model | |
CN102768765B (en) | Real-time soft shadow rendering method for point light sources | |
US9202309B2 (en) | Methods and apparatus for digital stereo drawing | |
US20190026935A1 (en) | Method and system for providing virtual reality experience based on ultrasound data | |
WO2013078859A1 (en) | Three-dimensional interface display device, method and terminal | |
CA2550512A1 (en) | 3d videogame system | |
US20120229463A1 (en) | 3d image visual effect processing method | |
EP3533218B1 (en) | Simulating depth of field | |
CN111710019B (en) | Virtual paper | |
JP2009116856A (en) | Image processing unit, and image processing method | |
CN103700134A (en) | Three-dimensional vector model real-time shadow deferred shading method based on controllable texture baking | |
CN102044084A (en) | Two-dimensional plane expression method of three-dimensional graph | |
CN104063888A (en) | Pop art style drawing method based on non-photorealistic | |
CN109461197B (en) | Cloud real-time drawing optimization method based on spherical UV and re-projection | |
CN110503707A (en) | A kind of true man's motion capture real-time animation system and method | |
CN107562185B (en) | Light field display system based on head-mounted VR equipment and implementation method | |
CN104217461A (en) | A parallax mapping method based on a depth map to simulate a real-time bump effect | |
CN102693065A (en) | Method for processing visual effect of stereo image | |
US20210090322A1 (en) | Generating and Modifying Representations of Objects in an Augmented-Reality or Virtual-Reality Scene | |
CN116416386A (en) | Digital twin L5-level simulation-based high-definition rendering and restoring system | |
CN104915992A (en) | A real-time shadow volume rendering method based on femur CT images | |
CN111710044A (en) | Image processing method, apparatus and computer-readable storage medium | |
CN111243099B (en) | Method and device for processing image and method and device for displaying image in AR (augmented reality) equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181113 |
|
WD01 | Invention patent application deemed withdrawn after publication |