Relief Mapping in Irrilicht

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Viking86
Posts: 24
Joined: Tue Apr 20, 2010 2:29 pm

Relief Mapping in Irrilicht

Post by Viking86 »

I have searched the forums and didn't find any mention of it, is it possible to implement in Irrilicht?

I have fragment and vertex shader GLSL code for it and I would like to add it to a project of mine.
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

If it's done in the shader, then yes it can be done.
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

Isn't relief mapping something really similar to parallax mapping? Irrlicht supports that natively.
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

Internally, Irrlich uses a shader for parallax.
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Re: Relief Mapping in Irrilicht

Post by Virion »

Viking86 wrote:I have fragment and vertex shader GLSL code for it and I would like to add it to a project of mine.
try to check out example 10 http://irrlicht.sourceforge.net/docu/example010.html
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
Viking86
Posts: 24
Joined: Tue Apr 20, 2010 2:29 pm

Post by Viking86 »

Thank you all for your answers, and now for another question :D

I've read through the tutorial and found that the pixel/vertex shaders are relatively easy to add. However, relief mapping uses 2 textures, one of them being an ordinary texture, the other being a heightmap. From what I've read there is no material type with those characteristics.

How do I define a new material without using any pre-existing type?
Or just how to give the shader the required texture ?
vectorcorpse
Posts: 86
Joined: Thu Feb 14, 2008 7:30 pm
Location: Portugal

Post by vectorcorpse »

found this by chance
http://blenderartists.org/forum/showthread.php?t=156062
and i thinks it is interesting specially the pixel displacement getting outside the geometry looks like something between irrlicht parallax and devsh geometry shader but without messing with the geometry thus not requiring anything other than shader model 2.
the author has an example with the shader included
Post Reply