Computer Graphics
9 subscribers
69 photos
7 videos
76 files
577 links
Tweets and Articles I find Interesting about ComputerGraphics,
Graphics Programming,
Math,
RayTracing
and lots of other cool stuff.

Follow Blog: https://erfan-ahmadi.github.io/

AdminTwitter: https://twitter.com/ahmadierfan999
Download Telegram
Forwarded from Feed Reader Bot
Forwarded from Feed Reader Bot
Radeon RX
Behind the new Radeon RX 5700 series is @AMD's #RDNA architecture, designed for the future of PC, console, mobile, and cloud-based gaming. Learn more about RDNA here: https://t.co/FENK8fcnuy https://t.co/uwh2jKy9db
tweet
8.5.13 Advantages and Disadvantages of Quaternions (3D Math Primer Graphics and Game Development, Second Edition)

Quaternions offer a number of advantages over other methods of representing
angular displacement:

• Smooth interpolation. The interpolation provided by slerp provides
smooth interpolation between orientations. No other representation
method provides for smooth interpolation.

• Fast concatenation and inversion of angular displacements. We can
concatenate a sequence of angular displacements into a single angular
displacement by using the quaternion cross product. The same operation
using matrices involves more scalar operations, although which
one is actually faster on a given architectures is not so clean-cut:
single instruction multiple data (SIMD) vector operations can make
very quick work of matrix multiplication. The quaternion conjugate
provides a way to compute the opposite angular displacement very
efficiently. This can be done by transposing a rotation matrix, but is
not easy with Euler angles.

• Fast conversion to and from matrix form. As we see in Section 8.7,
quaternions can be converted to and from matrix form a bit faster
than Euler angles.

• Only four numbers. Since a quaternion contains four scalar values,
it is considerably more economical than a matrix, which uses nine
numbers. (However, it still is 33% larger than Euler angles.)

These advantages do come at some cost, however. Quaternions suffer
from a few of the problems that affect matrices, only to a lesser degree:

• Slightly bigger than Euler angles. That one additional number may
not seem like much, but an extra 33% can make a difference when
large amounts of angular displacements are needed, for example, when
storing animation data. And the values inside a quaternion are not
“evenly spaced” along the [−1,+1] interval; the component values do
not interpolate smoothly, even if the orientation does. This makes quaternions more difficult to pack into a fixed-point number than
Euler angles or an exponential map.

• Can become invalid. This can happen either through bad input data,
or from accumulated floating point roundoff error. (We can address
this problem by normalizing the quaternion to ensure that it has unit
magnitude.)

• Difficult for humans to work with. Of the three representation methods,
quaternions

#Math
#GraphicsProgramming
#Quaternions
Computer Graphics
https://eater.net/quaternions
🦋🦋 Interactive way to Learn About Quaternions 🦋🦋
8.6 Comparison of Methods

Let’s review the most important discoveries from the previous sections. Table
8.1 summarizes the differences among the three representation methods.

Some situations are better suited for one orientation format or another.
The following advice should aid you in selecting the best format:

• Euler angles are easiest for humans to work with. Using Euler angles
greatly simplifies human interaction when specifying the orientation
of objects in the world. This includes direct keyboard entry of an orientation,
specifying orientations directly in the code (i.e., positioning
the camera for rendering), and examination in the debugger. This
advantage should not be underestimated. 🧠Certainly don’t sacrifice
ease of use in the name of “optimization” until you are certain that
it will make a difference.

• Matrix form must eventually be used if vector coordinate space transformations
are needed
. However, this doesn’t mean you can’t store
the orientation in another format and then generate a rotation matrix
when you need it. A common strategy is to store the “main copy” of
an orientation in Euler angle or quaternion form, but also to maintain
a matrix for rotations, recomputing this matrix any time the Euler
angles or quaternion change.

• For storage of large numbers of orientations (e.g., animation data),
Euler angles, exponential maps, and quaternions offer various tradeoffs.
In general, the components of Euler angles and exponential
maps quantize better than quaternions. It is possible to store a rotation
quaternion in only three numbers. Before discarding the fourth
component, we check its sign; if it’s negative, we negate the quaternion.
Then the discarded component can be recovered by assuming
the quaternion has unit length.

• Reliable quality interpolation can be accomplished only by using
quaternions.
Even if you are using a different form, you can always
convert to quaternions, perform the interpolation, and then convert

#Math
#Rotation
#Quaternions
Thread About Contributing to Open Source Projects and Learning at the Same time
#OpenSource
#GraphicProgramming
#Learning
Black and White photo,
Only the grids have Color
#color
#eye
Ambient Occlusion is a Lighting technique in Graphics
You can see it your games settings 😊
#Settings
#Lighting
#GraphicsTechniques
#GraphicsProgramming
#AmbientOcclusion