Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Grome Terrain Modeling with Ogre3D, UDK, and Unity3D

You're reading from  Grome Terrain Modeling with Ogre3D, UDK, and Unity3D

Product type Book
Published in Feb 2013
Publisher
ISBN-13 9781849699396
Pages 162 pages
Edition 1st Edition
Languages
Author (1):
Richard A. Hawley Richard A. Hawley
Profile icon Richard A. Hawley
Toc

Water layers


A water layer contains information about a water surface such as height level, texture, tiling, reflection, speed of waves, and so on.

Water is a simple plane object that fits the assigned zone, positioned at a height specified in the "level" parameter. By changing the "level" we can move the water plane up and down, intersecting the terrain.

Note

A plane is a 2D surface. The simplest is a quad made up of two triangles.

Sometimes in 3D engines that use water planes, ugly z-fighting artifacts are visible in areas where the ground geometry intersects the water plane, usually in the middle. This effect is more visible the higher the viewer is relative to the plane.

Terrain geometry close to the water plane is near coplanar (lying in the same plane), as a result of mathematical inaccuracies this can cause parts of the z-buffer to "fight" for dominance.

Note

The z-buffer is an offscreen area which stores the depth of each generated onscreen pixel. Almost every 3D system uses one.

Z-fighting...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime