Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Landscape Splatting Sample  (Read 1361 times)
sciophyte
Customers
Community Member
*****
Posts: 245


« on: April 12, 2010, 09:25:12 PM »

This sample shows how to autosplat textures based on the normal.y value of the landscape.  It also includes using tvPath to splat roads as well.




Controls are listed on the screen when run, basic usage is to put a heightmap into the media\map\maps\ directory, in this sample named landscape-hm.bmp, it will generate 4 alpha maps sa1.bmp to sa4.bmp on load (if sa*.bmp doesn't already exist), sa5.bmp will be generated when you draw and apply a road.

Sorry for the dull textures, I didn't want to release a bunch of unattributable images i found on google, so i've included some images I took last summer, so all images are original and are free for anyone to use for whatever (they are quick tiling jobs, sorry).

texture scale and the landscape normal ranges checked, etc. are geared towards this particular landscape, mileage will vary from heightmap to heightmap so you may need to tweak some values.

you can download here (VB.NET): www.pipedreamgames.com/downloads/LandscapeSplatting.rar
« Last Edit: April 13, 2010, 12:19:37 PM by sciophyte » Logged
AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #1 on: April 12, 2010, 11:45:27 PM »

Nice work man.  Cheesy
Logged

-...-

sciophyte
Customers
Community Member
*****
Posts: 245


« Reply #2 on: April 13, 2010, 12:18:57 PM »

thanks Arius.

Wish I had a better eye for presentation though, my stuff always looks hobo.
Logged
Lenn
Customers
Community Member
*****
Posts: 876

+/-


« Reply #3 on: April 13, 2010, 12:29:44 PM »

Nice! Smiley Hopefully, it will answer a lot of quesitons people often have about landscape splatting.
Logged

TV3D 6.5 Community Docs - Read, use and please contribute!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks