Download D3PLOT 9.3 user manual

Transcript
User manual Version 9.3, Rev. 0, September 2008
Oasys D3PLOT
5.4 Special 3D graphics driver options (OpenGL).
Most of the information in this section is included for backwards compatibility. 2D graphics are only rarely used
nowadays, and the capabilities of the 2D graphics modes in D3PLOT are no longer being developed.
5.4.0 Brief description of 3D vs. 2D graphics.
In 2D mode D3PLOT treats the display device as a dumb 2D device on which lines, polygons and text can be drawn.
All coordinates are expressed in 2D integer space, ie [x,y] only, and all calculation of hidden-surface removal, lighting,
contouring, etc must be done in software. Dynamic viewing relies on the sofware recalculating and redisplaying images
quickly.
In 3D mode much more intelligence is available in the graphics driver, and much of the effort of computing images can
be shifted from the software to the hardware. In particular:
•
•
•
Graphics coordinates exist in 3D [x,y,z] space, and the hardware does the transformation and projection onto
the 2D screen. The software only has to provide the raw coordinates for an image once, and thereafter to
change the view only a new scale, centre and rotation matrix.
The hardware can compute shading, lighting and hidden-surface removal. So, again, the software only needs
to provide raw coordinates, topology, light source data, etc, and then just ask the hardware to render it.
The hardware can provide functions, such as Z-clipping, that are not available in softwar
So 3D devices, especially those with hardware acceleration, give much faster graphics.
However there are also drawbacks to using 3D graphics: more memory is required since the full scene has to be sent to
the driver using [x,y,z] floating-point coordinates, and this can cause problems during animation when many frames
have to be stored. In addition laser plots cannot be generated by the 3D driver, so the capability to switch temporarily
back to 2D mode has to be preserved.
Therefore there are options to control aspects of 3D graphics, and also the ability to switch back and forth between 3D
and 2D modes.
5.4.1 3D Graphics, 2D Graphics- Switching between 3D and 2D
modes.
You can switch explicitly between 2D and 3D modes using the M2D and M3D buttons.
Some other graphics options also cause a switch.
On a 3D graphics driver the default mode is 3D, ie M3D, but certain graphics operations will switch the mode back to
2D. These are:
•
Switching on dithering, either of contours or shading. See Sections 4.3.6 and 4.2.3. 2D mode continues until
you switch it back explicitly.
•
Plotting with laser output turned on. 2D mode is only transient during the course of the plotting operation, it
There are other circumstances when you might also want to switch explicitly to 2D mode:
•
•
•
When producing LC line-contour plots the result in 3D mode can be a bit patchy, with contour lines
dropping in and out of view. This is a function of the Z buffering in hardware, and software (2D) images
look much better.
When using the OPACITY switch for contact surface and beam plotting. This works after a fashion when in
3D mode, but the transparent structure overlay does not use proper hidden-surface removal. The results are
better in 2D mode where more control is available in the software.
When animating large models. The amount of data stored for a 2D animation can be far less than for 3D, and
can get round memory shortage problems. (However you would do better to use the X-Windows driver in
this situation: see Section 4.4.5.4.)
Page 5.13