Skip to Main Content
A Hitchhiker's Guide to Virtual Reality
book

A Hitchhiker's Guide to Virtual Reality

by Karen McMenemy, Robin Stuart Ferguson
July 2007
Beginner to intermediate content levelBeginner to intermediate
604 pages
17h 36m
English
A K Peters/CRC Press
Content preview from A Hitchhiker's Guide to Virtual Reality
i
i
i
i
i
i
i
i
7.6. Texturing 177
3. Get the Euler angles that define the direction of d. These are the head-
ing
, which lies in the range [ , ], and pitch , which lies in the
range [
2
,
2
]. Scale the range of to cover the width X
max
of the
reflection image. Scale the range of to cover the height Y
max
of the
reflection image:
X =
(
+ )
2
X
max
;
Y =
(
2
)
Y
max
.
4. Using bilinear interpolation, we may obtain a color value s from the
image in the vicinity of (X , Y ).
5. Mix s with the other sources contributing to the color seen at pixel
(i, j).
You can think of the reflection mapping process as one where the reflected
surface is located at the center of a hollow sphere with
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Developing Virtual Reality Applications

Developing Virtual Reality Applications

Alan B. Craig, William R. Sherman, Jeffrey D. Will
Virtual Reality Blueprints

Virtual Reality Blueprints

Charles Palmer, John Williamson
Step into the Metaverse

Step into the Metaverse

Mark van Rijmenam

Publisher Resources

ISBN: 9781568814773