Code Monkey home page Code Monkey logo

blender_hilllshading's Introduction

blender_hilllshading

Generate hillshading from DEM files using Blender.

It's a scripted and slightly enhanced version of Daniel Huffman's famous Blender Relief Tutorial

Try to use the main branch; develop is considered unstable and can be broken.

Dependencies

Requires:

  • Blender (not installable via pip)
  • rasterio, built with v1.3.9.

Caveats

  • This method as it is right now has issues at the seams, so for the moment it can only be applied to a single DEM file which should be bigger than your desired are of coverage.

  • The script is not 100% parametrized. Sun size and power are fixed based on my tests

  • I will try to add a scattering sky, so we get a bluish tint to the shadows, and set the Sun's color to something yellowish.

  • This hillshading method is really sensible to missing or bad data, because they look like dark, deep holes.

Samples

A couple of images of the shadows applied to my style as teaser, both using only 20 samples and x10 height scale:

Dhaulagiri:

NO-ALT

Mont Blanc/Monte Bianco:

NO-ALT

Man, I love the fact that the tail of the Giacchiaio del Miage is in shadows, but the rest is not; or how Monte Bianco/Mont Blanc's shadow reaches across the Val Vény to the base of la Tête d'Arp. But also notice the bad data close to la Mer de Glace.

blender_hilllshading's People

Contributors

styxman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.