Xonotic Forums
Parallax/Offsetmapping help. - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Editing and Concept Art (https://forums.xonotic.org/forumdisplay.php?fid=11)
+--- Thread: Parallax/Offsetmapping help. (/showthread.php?tid=4292)



Parallax/Offsetmapping help. - kristus - 07-10-2013

I'm trying to figure out how offsetmapping works in DP/Xonotic. One map in Xonotic (Newtonian Nightmare) got a very pronounced Parallax effect on the floors. But when I tried to emulate this effect using my own textures it didn't seem to work. Is it using the normalmap (coupled with shaderparams) to create the effect or does it use something else?


RE: Parallax/Offsetmapping help. - Maddin - 07-10-2013

It´s using the alpha channel of the normalmap. Fully transparent in the normalmap means deep and opaque means high.

The easiest way to do this is creating a heightmap of your texture where black is the deepest point and white the highest. Then use this heightmap as a layer mask in Photoshop / GIMP so that it will make the black areas of the heightmap transparent in the normalmap.


RE: Parallax/Offsetmapping help. - kristus - 07-11-2013

Ah, thank you. That makes sense.