CN117221509A - Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine - Google Patents

Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine Download PDF

Info

Publication number
CN117221509A
CN117221509A CN202311237764.8A CN202311237764A CN117221509A CN 117221509 A CN117221509 A CN 117221509A CN 202311237764 A CN202311237764 A CN 202311237764A CN 117221509 A CN117221509 A CN 117221509A
Authority
CN
China
Prior art keywords
eye position
simulation flow
left eye
video
position simulation
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
CN202311237764.8A
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.)
Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
Original Assignee
Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
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 Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC filed Critical Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
Priority to CN202311237764.8A priority Critical patent/CN117221509A/en
Publication of CN117221509A publication Critical patent/CN117221509A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application belongs to the field of digital support platform design and development in the general basic field of aircraft design technology, and particularly relates to a three-dimensional image creation method for automatically converting a three-dimensional viewpoint of a digital prototype, which is used for completing the assembly of the digital prototype and the editing work of a simulation flow, and storing the simulation flow as a left eye position simulation flow, wherein the left eye position simulation flow comprises the steps of recording the observation eye position and the observation angle of the digital prototype by using viewpoints; shifting the observation eye position in the left eye position simulation flow to the right by a specified distance through calculating the horizontal shift through a three-dimensional viewpoint conversion algorithm, generating a right eye position simulation flow and storing; respectively compiling a flow video of the left eye position simulation flow and a flow video of the right eye position simulation flow, and respectively generating the left eye position simulation flow video and the right eye position simulation flow video through non-real-time rendering calculation; and processing the left eye position simulation flow video and the right eye position simulation flow video through stereo playing software, and then synchronously playing the left eye position simulation flow video and the right eye position simulation flow video to form a stereo demonstration effect.

Description

Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine
Technical Field
The application belongs to the field of digital support platform design and development in the general basic field of aircraft design technology, and particularly relates to a stereoscopic image creation method for automatically converting stereoscopic viewpoints of a digital sample machine.
Background
In order to meet the requirement of multi-channel stereoscopic demonstration of a large data volume digital prototype, the simulation flow of the digital prototype needs to be recorded in advance through non-real-time rendering calculation and stereoscopic playback is performed by using playing software. Two sets of pictures for viewing by the left eye and the right eye respectively are prepared for realizing the stereoscopic image display based on binocular vision, but the three-dimensional simulation software DELMIA of the digital prototype of French Dauchy systems company does not provide a stereoscopic image recording function, and left and right images must be synchronously generated for realizing stereoscopic playback, so that the realization difficulty is high.
For a digital prototype assembled by using a three-dimensional digital model, both left and right eye images can be directly extracted from a scene of DELMIA, and angles of the images need to simulate the eyes of a person; after the images are ready, the images need to be conveyed to the two eyes, and the images required to be watched by the left eye can only be watched by the left eye, so that the difference between the images does not need to be adjusted deliberately during conveying, and the images need to be conveyed to the two eyes according to the requirements, so that the human eyes can automatically generate stereoscopic impression corresponding to the images. The method can realize the aim of reducing the performance requirements on a computer software and hardware system during high-resolution real-time smooth multichannel three-dimensional demonstration of a large data volume digital prototype by carrying out non-real-time rendering calculation recording on the simulation flow of the digital prototype and carrying out three-dimensional playback by using playing software.
Disclosure of Invention
In order to solve the above problems, the present application provides a stereoscopic image creation method for automatically converting stereoscopic viewpoints of a digital sample machine, step S1: completing assembly of a digital prototype and editing of a simulation flow in a DELMIA software environment, and storing the simulation flow as a left eye position simulation flow, wherein the left eye position simulation flow comprises recording an observation eye position and an observation angle of the digital prototype by using viewpoints;
step S2: shifting the observation eye position in the left eye position simulation flow to the right by a specified distance through calculating the horizontal shift through a three-dimensional viewpoint conversion algorithm, generating a right eye position simulation flow and storing;
step S3: respectively compiling a left eye position simulation flow and a right eye position simulation flow, respectively generating a left eye position simulation flow video and a right eye position simulation flow video through non-real-time rendering calculation, and storing in a mode of sequential frame pictures;
step S4: and processing the left eye position simulation flow video and the right eye position simulation flow video through stereo playing software, and then synchronously playing the left eye position simulation flow video and the right eye position simulation flow video to form a stereo demonstration effect.
Preferably, the stereoscopic viewpoint conversion algorithm specifically includes:
expressing the space position of the left eye observation eye position by an Origin point; expressing a Target position observed by the left eye by a Target point;
constructing a left eye viewing direction vector with a Target point and an Origin pointExpressing the upward direction vector of the left eye viewing angle as UpX/UpY/UpZ +.>Line of sight direction vector->And an upward direction vector->Cross-multiplying to obtain a vector pointing to the right eye's point of view>
Vectors of eye points viewed by the right eye starting from the position of the left eye at which the left eye views the eye positionThe direction-designating eye position distance W to obtain the spatial position of the right-eye observation eye position.
Preferably, the eye position distance W includes:
when L is less than or equal to L1, w=w1 (L/L1);
when L1< l.ltoreq.l2, w=w1+ (W2-W1)/(L2-L1);
when L2< l.ltoreq.l3, w=w2+ (W3-W2)/(L3-L2);
when L > L3, w=w3;
l is the left eye viewing distance, L1 is the first viewing distance, L2 is the second viewing distance, L3 is the third viewing distance, W1 is the first eye distance, W2 is the second eye distance, and W3 is the third eye distance.
Preferably, l1=300 mm, w1=70 mm;
L2=5000mm,W2=100mm;
L3=30000mm,W3=500mm。
preferably, in the process of compiling the process video, the left eye position simulation process and the right eye position simulation process are consistent in the aspects of model initial state, simulation initial eye position, window size and video output parameters.
Preferably, the specific steps of the left eye position simulation flow video include:
restoring the model initial state of the digital prototype;
setting a left eye position simulation initial eye position, and synchronizing the left eye position simulation initial eye position with the initial state of the digital prototype model;
concealing irrelevant elements, setting rendering styles, adjusting video precision and window size, and setting video output parameters; video output is started.
The advantages of the application include:
a) The method solves the problem that the three-dimensional simulation software DELMIA of the digital prototype does not provide a function of recording a stereoscopic image, and can quickly create synchronous images of the left eye and the right eye for creating the stereoscopic image;
b) The three-dimensional viewpoint conversion algorithm is convenient and refined, the conversion process is concise and efficient, the occupation of system resources is small, and the operation is stable;
c) The performance requirements on a computer software and hardware system during high-resolution real-time smooth multi-channel three-dimensional demonstration of the large-data-volume digital prototype are reduced by carrying out non-real-time rendering, calculating and recording on the simulation flow of the digital prototype and carrying out three-dimensional playback by using playing software.
According to the method, three-dimensional viewpoint conversion and three-dimensional image creation of the aircraft digital prototype are performed, and analysis is performed according to test results: the eye position parameter setting method is convenient and quick, the content of the converted simulation flow is complete and correct, and the requirement of creating a stereoscopic image is met; the execution process of parameter setting and viewpoint conversion is completed in a few seconds, and the system runs stably; the stereoscopic image is normally played, and a good effect is achieved.
Drawings
FIG. 1 is a process flow diagram of a stereoscopic image creation method for automatically converting stereoscopic viewpoints of a digital camera in accordance with a preferred embodiment of the present application;
fig. 2 is a perspective view conversion schematic diagram of a preferred embodiment of the present application, in which a person represents a spatial position where a current view point is located, and a cuboid represents a target position of a digital prototype currently being observed.
Fig. 3 is a graph of eye distance versus observation distance according to a preferred embodiment of the present application, where L represents the observation distance, W represents the distance between two eyes to be set, L1, L2, L3 represent critical focal distance values for a digital prototype of a specific size, W1, W2, W3 represent critical distance values for a specific observation distance for a digital prototype of a specific size, L1 is the first observation distance, L2 is the second observation distance, L3 is the third observation distance, W1 is the first eye distance, W2 is the second eye distance, and W3 is the third eye distance.
Detailed Description
In order to make the technical solution of the present application and its advantages more clear, the technical solution of the present application will be further and completely described in detail with reference to the accompanying drawings, it being understood that the specific embodiments described herein are only some of the embodiments of the present application, which are for explanation of the present application and not for limitation of the present application. It should be noted that, for convenience of description, only the part related to the present application is shown in the drawings, and other related parts may refer to the general design, and the embodiments of the present application and the technical features of the embodiments may be combined with each other to obtain new embodiments without conflict.
Furthermore, unless defined otherwise, technical or scientific terms used in the description of the application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the application pertains. The terms "upper," "lower," "left," "right," "center," "vertical," "horizontal," "inner," "outer," and the like as used in the description of the present application are merely used for indicating relative directions or positional relationships, and do not imply that the devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and that the relative positional relationships may be changed when the absolute position of the object to be described is changed, thus not being construed as limiting the application. The terms "first," "second," "third," and the like, as used in the description of the present application, are used for descriptive purposes only and are not to be construed as indicating or implying any particular importance to the various components. The use of the terms "a," "an," or "the" and similar referents in the description of the application are not to be construed as limiting the amount absolutely, but rather as existence of at least one. As used in this description of the application, the terms "comprises," "comprising," or the like are intended to cover an element or article that appears before the term as such, but does not exclude other elements or articles from the list of elements or articles that appear after the term.
Furthermore, unless specifically stated and limited otherwise, the terms "mounted," "connected," and the like in the description of the present application are used in a broad sense, and for example, the connection may be a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can also be communicated with the inside of two elements, and the specific meaning of the two elements can be understood by a person skilled in the art according to specific situations.
As shown in fig. 2-3, a method for creating a stereoscopic image by automatically converting stereoscopic viewpoints of a digital sampling machine is provided, which solves the problem that digital prototype three-dimensional simulation software DELMIA of french dado system company does not provide a stereoscopic image recording function, and meets the requirement of multi-channel stereoscopic demonstration of a large data volume digital prototype.
The application relates to a stereoscopic image creation method for automatically converting stereoscopic viewpoints of a digital sample machine, which is characterized in that the assembly of the digital sample machine and the editing work of a simulation flow are completed in a DELMIA environment, and the current simulation flow is saved as a left eye position simulation flow;
in the current simulation flow, through an algorithm of three-dimensional viewpoint conversion, the eye positions of all digital prototype observation viewpoints in the flow are shifted right by a specified distance through calculation level, and a right eye position simulation flow is generated and stored; respectively compiling flow videos aiming at the left eye position simulation flow and the right eye position simulation flow, and generating high-precision videos of the simulation flow through non-real-time rendering calculation; and processing the two-eye simulation video through stereo playing software and then synchronously playing the two-eye simulation video to form a stereo demonstration effect. The beneficial effects are as follows: the method solves the problem that the three-dimensional simulation software DELMIA of the digital prototype does not provide a function of recording a stereoscopic image, and can create synchronous images of the left eye and the right eye for creating the stereoscopic image; the three-dimensional viewpoint conversion process is concise and efficient, the occupied system resources are small, and the operation is stable; the performance requirements on a computer software and hardware system during high-resolution real-time smooth multi-channel three-dimensional demonstration of the large-data-volume digital prototype are reduced by carrying out non-real-time rendering, calculating and recording on the simulation flow of the digital prototype and carrying out three-dimensional playback by using playing software.
One embodiment includes:
a method for creating a stereoscopic image by automatically converting stereoscopic viewpoints of a digital sample machine comprises the following steps:
(1) The digital prototype process simulation software DELMIA based on French Darcy systems achieves the digital prototype assembly and simulation flow editing work. Storing all the part files, and storing the current simulation flow as a left eye position simulation flow;
(2) In the assembly simulation process of the digital prototype of DELMIA, the viewpoint is used for recording the observation eyepoint and the observation angle of the digital prototype, and the eyepoint of the observation viewpoint of all the digital prototypes in the current simulation flow is shifted to the right by a specified distance through calculation level by an algorithm for converting the stereoscopic viewpoint, so that a right-eye position simulation flow is generated and stored. The viewpoint conversion principle is as follows:
a) In the assembly simulation process of the digital prototype of DELMIA, using the viewpoint (whether a file is provided or not and whether the number is a plurality of) to record the observation eyepoint and the observation angle of the digital prototype, and recording the eye position information of the current observation viewpoint in a specific attribute tag in each viewpoint;
b) Expressing the spatial position of the current observation eye point by an Origin point (coordinate value is Origin X/Origin Y/Origin Z), as shown in figure 2;
c) The currently observed Target position is expressed by a Target point (the coordinate value is TargetX/TargetY/TargetZ), as shown in figure 2;
d) Constructing a current observation line-of-sight direction vector by a Target point and an Origin point, as shown in fig. 2;
e) The upward direction vector of the current viewing angle is expressed as UpX/UpY/UpZ, as shown in fig. 2;
f) According to the right hand rule, the line-of-sight direction vector is cross multiplied with the upward direction vector to obtain a vector pointing to the right eye observation eye point, namely:obtaining a second observation eyepoint coordinate value shifted rightward by a specified distance, as shown in fig. 2;
g) The calculated value is used to update the original X/original Y/original Z value of the Viewpoint (right eye), so that the simulation flow is subjected to graphic calculation and rendering under the new viewing angle, as shown in FIG. 2.
(3) And respectively compiling flow videos aiming at the left eye position simulation flow and the right eye position simulation flow, generating high-precision videos of the simulation flow through non-real-time rendering calculation, and storing the created high-precision videos of the simulation flow in a mode of sequential frame pictures. In the simulation flow video compiling process, note that two-eye position simulation is consistent in the aspects of model initial state, simulation initial eye position, window size and video output parameters, so as to avoid the asynchronous setting process of left and right eye image sequences, wherein the process is as follows:
a) Firstly, restoring the initial state of the model to ensure that the demonstration result of the simulation flow is correct, and ensuring that each generated simulation video starts from the same model state. Clicking Restore Initial State button from toolbar then ensures in the pop-up "Restore Initial Condition" dialog that both "All Products and Resources" and "All Attributes" options are selected, then pressing "ok" button.
b) Setting simulation initial eye position and synchronizing with the initial state of the model. Namely: the entire scene and flow is synchronized with the first eye before the picture is output.
c) Before the picture recording is started, several settings are needed, a hidden global coordinate system (Hide World Axis), a hidden assembly constraint (Hide Assembly Constraints) and a Compass (Compass) are set to be not displayed in a graphic window, so that no redundant information exists in the captured video picture, and the video picture is ensured to be clean. And setting the current view rendering style as perspective, and determining whether to adopt a coloring display mode containing materials according to the requirement of the display effect of the digital prototype.
d) And setting the visual precision, wherein in order to ensure the quality of the recorded video picture, the visual precision is required to be set, and the parameters are all 0 to represent the highest precision.
e) The current window size (full screen or specified size) is set. Since the maximum resolution of the projector is 1920 x 1200, full screen video recording is required, so the shortcut key should be ordered for Compile Video Simulation before recording.
f) Setting video output parameters, starting video output, and designating a catalog and a file name stored in a video file during actual operation.
(4) And processing the two-eye simulation video through stereo playing software and then synchronously playing the two-eye simulation video to form a stereo demonstration effect.
The method for performing conversion calculation on the stereoscopic view point is implemented by setting an eye position parameter of a digital prototype observer (the eye position parameter is the distance between two observation eye points when performing view point conversion), wherein the eye position parameter is set by a certain relationship between the eye position distance and the observer distance, as shown in fig. 2. The eye distance is calculated according to the normal distance between eyes of an adult of about 70 mm. However, if the observation target focus point is very close to the eye point, the distance between the two eyes needs to be properly reduced; if the observation target focus point is far from the eyepoint, it is necessary to appropriately increase the distance between both eyes to increase the stereoscopic feeling of the observer. The application provides a method for setting eye position parameters, which is shown in the following table, wherein the eye position distance and the observation distance are shown in the figure 2:
TABLE 1 relationship between eye distance W and observation distance L
Viewing distance L distance between eyes W
L≤L1 W=W1*(L/L1)
L1<L≤L2 W=W1+(W2-W1)*(L-L1)/(L2-L1)
L2<L≤L3 W=W2+(W3-W2)*(L-L2)/(L3-L2)
L>L3 W=W3
For the aircraft digital prototype with the maximum length dimension of about 10m-20m, default parameters can be set as follows:
a)L1=300mm,W1=70mm;
a)L2=5000mm,W2=100mm;
b)L3=30000mm,W3=500mm。
the foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present application should be included in the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (6)

1. A method for creating a stereoscopic image by automatically converting stereoscopic viewpoints of a digital sample machine is characterized in that,
step S1: completing assembly of a digital prototype and editing of a simulation flow in a DELMIA software environment, and storing the simulation flow as a left eye position simulation flow, wherein the left eye position simulation flow comprises recording an observation eye position and an observation angle of the digital prototype by using viewpoints;
step S2: shifting the observation eye position in the left eye position simulation flow to the right by a specified distance through calculating the horizontal shift through a three-dimensional viewpoint conversion algorithm, generating a right eye position simulation flow and storing;
step S3: respectively compiling a left eye position simulation flow and a right eye position simulation flow, respectively generating a left eye position simulation flow video and a right eye position simulation flow video through non-real-time rendering calculation, and storing in a mode of sequential frame pictures;
step S4: and processing the left eye position simulation flow video and the right eye position simulation flow video through stereo playing software, and then synchronously playing the left eye position simulation flow video and the right eye position simulation flow video to form a stereo demonstration effect.
2. The stereoscopic image creation method for automatic stereoscopic viewpoint conversion for a digital sampler according to claim 1, wherein the stereoscopic viewpoint conversion algorithm specifically comprises:
expressing the space position of the left eye observation eye position by an Origin point; expressing a Target position observed by the left eye by a Target point;
constructing a left eye viewing direction vector with a Target point and an Origin pointExpressing the upward direction vector of the left eye viewing angle as UpX/UpY/UpZ +.>Line of sight direction vector->And an upward direction vector->Cross-multiplying to obtain a vector pointing to the right eye's point of view>
Vectors of eye points viewed by the right eye starting from the position of the left eye at which the left eye views the eye positionThe direction-designating eye position distance W to obtain the spatial position of the right-eye observation eye position.
3. The stereoscopic image creation method for automatically converting stereoscopic viewpoints of a digital sampler according to claim 2, wherein the eye distance W includes:
when L is less than or equal to L1, w=w1 (L/L1);
when L1< l.ltoreq.l2, w=w1+ (W2-W1)/(L2-L1);
when L2< l.ltoreq.l3, w=w2+ (W3-W2)/(L3-L2);
when L > L3, w=w3;
l is the left eye viewing distance, L1 is the first viewing distance, L2 is the second viewing distance, L3 is the third viewing distance, W1 is the first eye distance, W2 is the second eye distance, and W3 is the third eye distance.
4. A stereoscopic image creation method for automatically converting stereoscopic viewpoints of a digital camera according to claim 3,
L1=300mm,W1=70mm;
L2=5000mm,W2=100mm;
L3=30000mm,W3=500mm。
5. the stereoscopic image creation method for automatic conversion of stereoscopic viewpoints of a digital sampler according to claim 1, wherein in the process of compiling a process video, a left eye position simulation process and a right eye position simulation process are kept consistent in terms of model initial state, simulation initial eye position, window size, and video output parameters.
6. The stereoscopic image creation method for automatically converting stereoscopic viewpoints of a digital sampler according to claim 1, wherein the specific steps of the left eye position simulation flow video include:
restoring the model initial state of the digital prototype;
setting a left eye position simulation initial eye position, and synchronizing the left eye position simulation initial eye position with the initial state of the digital prototype model;
concealing irrelevant elements, setting rendering styles, adjusting video precision and window size, and setting video output parameters;
video output is started.
CN202311237764.8A 2023-09-22 2023-09-22 Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine Pending CN117221509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311237764.8A CN117221509A (en) 2023-09-22 2023-09-22 Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311237764.8A CN117221509A (en) 2023-09-22 2023-09-22 Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine

Publications (1)

Publication Number Publication Date
CN117221509A true CN117221509A (en) 2023-12-12

Family

ID=89047861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311237764.8A Pending CN117221509A (en) 2023-09-22 2023-09-22 Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine

Country Status (1)

Country Link
CN (1) CN117221509A (en)

Similar Documents

Publication Publication Date Title
JP4879326B2 (en) System and method for synthesizing a three-dimensional image
JP6309749B2 (en) Image data reproducing apparatus and image data generating apparatus
US6747610B1 (en) Stereoscopic image display apparatus capable of selectively displaying desired stereoscopic image
US20110157155A1 (en) Layer management system for choreographing stereoscopic depth
US6388666B1 (en) System and method for generating stereoscopic image data
CN110378990B (en) Augmented reality scene display method and device and storage medium
CA2605347A1 (en) 3d image generation and display system
KR20150023370A (en) Method and apparatus for fusion of images
JP2000503177A (en) Method and apparatus for converting a 2D image into a 3D image
KR20120037400A (en) Viewer-centric user interface for stereoscopic cinema
US11956408B2 (en) Information processing system, information processing method, and storage medium
Masaoka et al. Spatial distortion prediction system for stereoscopic images
US9918066B2 (en) Methods and systems for producing a magnified 3D image
CA2540538C (en) Stereoscopic imaging
KR102161437B1 (en) Apparatus for sharing contents using spatial map of augmented reality and method thereof
CN113838116A (en) Method and device for determining target view, electronic equipment and storage medium
CN116320364B (en) Virtual reality shooting method and display method based on multi-layer display
JP4781981B2 (en) Moving image generation method and system
CN117221509A (en) Stereoscopic image creation method for automatic conversion of stereoscopic view points of digital sample machine
KR20010096556A (en) 3D imaging equipment and method
CN106713893A (en) 3D stereo shooting method for mobile phone
US20210297649A1 (en) Image data output device, content creation device, content reproduction device, image data output method, content creation method, and content reproduction method
JP6454238B2 (en) Video editing apparatus, video editing method, and video editing program
JP2020005150A (en) Video recording and playback device and program
CA2252063C (en) System and method for generating stereoscopic image data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination