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

Topographic Phong Shader



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!


18.02.15 [01:29 UTC] by mediadog | 1255 downloads
TopoShader v1

DiMiX 22/02/2015 - 01:20

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


~18h ago

fleg: This Tuesday, Cologne: exhibition opening of "interwoven", textile disinformation patterns created with vvvv. https://fleg.de/news/exhibition-interwoven

~14d ago

manuelgonzalvez: Assimp nodes all broken afted Win Update w/exception "COM object that has been separated from its underlying RCW(...)"

~14d ago

manuelgonzalvez: @levi thanks would love to! anyway managed to get something similar working based on forum search and anthokio's patches.

~15d ago

levi: @ravasquez thanks. 31.2 x86 verrion worked. @manuelgonzalvez i have a dx11 projectTexture if u a want.

~16d ago

manuelgonzalvez: Anyone has a dx11 port of "projectedTexture" dx9 fx for projection mapping?

~16d ago

manuelgonzalvez: Anyone has a dx11 port of "projectedTexture" dx9 fx for projection mapping?

~17d ago

ravazquez: @levi not sure bout the ImagePack, but I believe VL.OpenCV should give you the same tools and should work with beta just fine

~17d ago

levi: anyone knows of a VVVVpacks.image that works for elliot's projector calibration patches?x64,dx11. always crashes v4 on solve.

~24d ago

Lorenz: VJing with GIFS: https://lorenzpotthast.de/gifjockey/ A fun little side project, that I first prototyped in v4 and now turned web-based ;)

~1mth ago

schlonzo: finally fixed in 4.8 nice1