» Topographic Phong Shader
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Topographic Phong Shader

effect

about

Simple shader to apply topographic-map-like shading to a mesh using world Y. Includes helper functions and plugin for generating the 1D texture and the palette used. Can be easily changed to use object space instead of world, see inside the .fx file (maybe in v2 it will be settable...).

Thanks to all for the help in the forum discussion!

download

TopoShader-v1.zip
18.02.15 [01:29 UTC] by mediadog | 1369 downloads
TopoShader v1

DiMiX 22/02/2015 - 01:20

Thanks!
how to change .fx to map it Z world?

mediadog 22/02/2015 - 22:01

@DiMiX - excellent question! Seems like there could be a way to use the texture transform to modify it, but I'd have to fool around with it. Anyone? Anyone? Bueller?

sebl 22/02/2015 - 23:10

elevation has a transform to rotate the lines' orientations.

also the lines itself are controled by the shader itself. have a look at this ddx and ddy thingy. they can also be replaced with ddx_fine and ddy_fine, but is doesn't seem to make a huge difference.

SuperflysiNZ 16/11/2015 - 09:32

Has anyone made a version of this for DX11?

SuperflysiNZ 16/11/2015 - 09:35

Just realized it's actually part of this shader, but is coming up red, and technique is empty...

anonymous user login

Shoutbox

~22h ago

joreg: Workshop on 09 05: Deepdive into the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-advanced-3d-rendering-in-vvvv-with-stride/

~24h ago

tekcor: Dear vvvv community, I am leaving my personal fundraiser here because I know many of you personally, sending love https://t.ly/iV9l_

~2d ago

joreg: Rewatch the 24th vvvvorldwide meetup here: https://www.youtube.com/live/gNszIiRAjDo?si=0RXF0pW73EUaRqGk

~2d ago

joreg: LINK - the vvvv summer camp 2024 is announced: https://visualprogramming.net/blog/2024/link-the-vvvv-summer-camp-24/

~4d ago

joreg: Tonight, May 3, vvvv meetup in Berlin or via stream: https://visualprogramming.net/blog/2024/24.-vvvv-worldwide-meetup/

~7d ago

joreg: Workshop on 02 05: Intro to the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-intro-to-the-stride-3d-engine-in-vvvv/

~8d ago

joreg: The new vvvv Show-Off-Reel is out: https://vimeo.com/930568091

~14d ago

joreg: The summer season of vvvv workshops at The NODE Institute is out: https://thenodeinstitute.org/ss24-vvvv-intermediates/