Interactive 3D Graphics for Tcl/Tk Interactive 3D Graphics for Tcl/Tk
3D Engine II December 17, 2015 1 computer graphics -dpi.
-
Upload
rosaline-barker -
Category
Documents
-
view
220 -
download
2
Transcript of 3D Engine II December 17, 2015 1 computer graphics -dpi.
![Page 1: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/1.jpg)
3D Engine II
April 21, 2023 1computer graphics -dpi
![Page 2: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/2.jpg)
In this presentation
What is a 3D Engine?Well –known 3D Engine.An introduction to OpenGL Comparing 3D Engines.
April 21, 2023 2computer graphics -dpi
![Page 3: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/3.jpg)
What is a 3D Engine?
A 3d engine is a whole of structures,
functions and algorithms used to
visualize, after many calculations and
transformations, 3d objects on a 2d
screen.
April 21, 2023 3computer graphics -dpi
![Page 4: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/4.jpg)
The main sections of a 3d engine are :
1-The acquisition of the object‘s data in structures.
2-The transformations to position the objects in the world. (modeling and viewing transformations)
3-Rendering the scene on the 2d screen .
April 21, 2023 4computer graphics -dpi
![Page 5: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/5.jpg)
BACK FACE CULLING
PROJECTION TRANSFORMATION
VIEWPORT TRANSFORMATION (OpenGL has
two main buffers)
The COLOR BUFFER (that can be single or double)
The DEPTH BUFFER.
Rendering the scene on the 2d screen
April 21, 2023 5computer graphics -dpi
![Page 6: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/6.jpg)
Modeling of 3D image
PERSPECTIVELIGHTINGDEPTH OF FIELDANTI-ALIASINGFADEDBUMP MAPPINGREFLECTION MAPPINGBLUR MOTION
April 21, 2023 6computer graphics -dpi
![Page 7: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/7.jpg)
Other well- known 3D engines
Open GLDirect 3DBlenderOgre 3dSpace crystalLuxolgy modoMaxon cinemaNewtek lighwaveSoftimage XSI foundation
April 21, 2023 7computer graphics -dpi
![Page 8: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/8.jpg)
OpenGL
OpenGL is a library that lets us interface with the graphics hardware
It has a series of functions to draw points, lines and polygons, and it carries out all the calculations necessary for the illumination, shading and transformation of the vertices
It allows us to create a window independent of the platform used (Windows or Linux)
April 21, 2023 8computer graphics -dpi
![Page 9: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/9.jpg)
OpenGL
The OpenGL Architecture Review Board (ARB), was an independent consortium formed in 1992
ARB-approved OpenGL specifications and source code are available to licensed hardware platform vendors. End users, independent software vendors, and others writing code based on the OpenGL API are free from licensing requirements
High Visual Quality and PerformanceApril 21, 2023 9computer graphics -dpi
![Page 10: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/10.jpg)
OpenGL
Developer-Driven Advantages Industry standardStableReliable and portableEvolvingScalableEasy to useWell-documented
April 21, 2023 10computer graphics -dpi
![Page 11: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/11.jpg)
OpenGL
Available EverywhereArchitected for Flexibility and Differentiation:
Extensions
April 21, 2023 11computer graphics -dpi
![Page 12: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/12.jpg)
OpenGL
The structure of OpenGL program is divided into different sections: Init function: used to boot OpenGL and to init the
modeling, viewing and projection matrices Resize function: called every time the user starts the
program or changes the output-window resolution Keyboard function: called every time the user presses
a key Drawing function: clears all the buffers (color and
depth). Main Cycle: an infinite loop, which calls all our
functions every frame
April 21, 2023 12computer graphics -dpi
![Page 13: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/13.jpg)
Comparing Auto desk3ds
max 9
Auto deskMaya
complete 8.5
Blender 3D 2.45
LuxolgyModo 301
MaxonCinema4
DR 10.1
NewtekLightwave 9.3
Softimage XSI
Foundation 6.2
Annual subscription
YesYesNoneNoneNoneNoneNone
PlatformsWinWin-linuxWin-linuxWinWinWinWin-linux
TrialYesYesNoYesYesYesYes
Languages
FR EN
ENA lots but EN isbest
EN JPCZ EN FR GE IT
PL SP JP
EN JPEN JP
InterfaceCAD style, Cleanand
powerful
flexible andpowerful,
butnot
intuitive!
Fastworkflow,
can bemore
intuitive
Excellent! Clean andintuitive
A bit old, texts
interface.
Logical texts
and cleaninterface!
April 21, 2023 13computer graphics -dpi
![Page 14: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/14.jpg)
ComparingAuto desk3ds
max 9
Auto desk
Mayacomplet
e 8.5
Blender 3D 2.45
LuxolgyModo
301
MaxonCinema4
DR 10.1
NewtekLightwa
ve 9.3
Softimage XSI
Foundation 6.2
Technologies
Core
OldOldOld / Re-new
ModernOld / Re-new
Old / Re-new
Modern
Company support for
single users
Low / Good
GoodCommunities
Very good
Very good
Very good
Very good
Documentations
GoodExcellent
GoodVery good
Very good
Excellent
Very good
April 21, 2023 14computer graphics -dpi
![Page 15: 3D Engine II December 17, 2015 1 computer graphics -dpi.](https://reader035.fdocuments.us/reader035/viewer/2022062423/5697bfba1a28abf838ca04c1/html5/thumbnails/15.jpg)
ComparingAuto desk3ds
max 9
Auto deskMaya
complete 8.5
Blender 3D 2.45
LuxolgyModo 301
MaxonCinema
4DR 10.1
NewtekLightwave 9.3
Softimage XSIFoundation 6.2
Rendering
Internal,Mental
Ray
Internal,Mental
Ray
Internal
InternalInternalInternalMentalray
QualityExcellent
Excellent
GoodExcellent
Excellent
GoodExcellent
Modeling
Excellent
Very good
GoodVery good
Very good
Excellent
Excellent
Modifiers
Excellent
Very good
GoodVery good
GoodGoodVery good
April 21, 2023 15computer graphics -dpi