TSE Relief Mapping?
by Tim Betts · in Torque Game Engine Advanced · 11/02/2005 (10:37 am) · 156 replies
Hey shader junkies, so, we've had bump maps, normal maps, then parallax mapping, so what about the next challenge - relief mapping ? anyone even attempted to get this puppy working on TSE? Now I'm no shader programmer unfortunately, but it would look like that this approach (http://fabio.policarpo.nom.br/relief/index.htm) will yield far more accurate mapping than parallax mapping. Very exciting work. Any guru's willing to step up :) ?
Cheers -- Tim.
Cheers -- Tim.
#142
10/30/2007 (4:11 pm)
Thats not what puzzles me. Its the reflection of something green on the stone in up middle which looks like a reflection of the OGRE if this is what you are using as model ...
#143
10/30/2007 (4:37 pm)
I dont see any green and there is no models. Not getting what your saying really..
#144

...maybe it's just a part of the texture that has been emphasized due to the shader distortion?
10/30/2007 (4:59 pm)
I think I see what Marc means.
...maybe it's just a part of the texture that has been emphasized due to the shader distortion?
#145
10/31/2007 (7:20 am)
I think it is just distortion. That hapens if the source texture was ever jpeg'ed. You will get some collor shifting and then the shader is just distoring it in a way that sor t of magnifies it.
#146
10/31/2007 (10:59 am)
Doom 3 is relief :-)
#147
I have tried your parallax shader with dynamic light and I added a light object to the scene and it didnt effect the shadows on the shader. It seems that only the sun effects the shadows on the shader. How can I get light objects to work with the shader?
11/21/2007 (1:13 pm)
@MattI have tried your parallax shader with dynamic light and I added a light object to the scene and it didnt effect the shadows on the shader. It seems that only the sun effects the shadows on the shader. How can I get light objects to work with the shader?
#148
11/21/2007 (1:33 pm)
Could you post a screenshot to show what you're talking about?
#149

The light is in the middle but the shadows are pointed toward the sun. The shadowing on it makes no sense. When i move the elevation of the sun the shadows on the shape move but when I move the light the shadows stay the same and the shape just gets brighter like that in the picture. Any idea whats wrong?
11/21/2007 (6:16 pm)

The light is in the middle but the shadows are pointed toward the sun. The shadowing on it makes no sense. When i move the elevation of the sun the shadows on the shape move but when I move the light the shadows stay the same and the shape just gets brighter like that in the picture. Any idea whats wrong?
#150
11/21/2007 (8:08 pm)
No idea. Are you using sgLightObjects and are you sure you set up your shaders/materials correctly? Does it react to different light colors? (Try red or green for example) That's the way you'd know it's working.
#151
any progress on thiis did you guys ever get the dynamic lighting working?
12/27/2007 (11:10 am)
Bump*any progress on thiis did you guys ever get the dynamic lighting working?
#152
What's the difference between ParallaxDL and ParallaxDynamic in terms of result?
Tnx ;)
01/29/2008 (9:04 am)
@Matt : long time has passed and I forgot to ask you a thing...What's the difference between ParallaxDL and ParallaxDynamic in terms of result?
Tnx ;)
#153
01/29/2008 (6:44 pm)
ParallaxDL is the default parallax shaders, while ParallaxDynamic is the dynamic lighting parallax shaders.
#154
I'd like to ask you if you have some time to take a look at this thread...
www.garagegames.com/mg/forums/result.thread.php?qt=71600
I really can't understand what is going wrong with my material script function...
:(
01/30/2008 (5:45 am)
Ok I've understood ;)I'd like to ask you if you have some time to take a look at this thread...
www.garagegames.com/mg/forums/result.thread.php?qt=71600
I really can't understand what is going wrong with my material script function...
:(
#155
01/30/2008 (3:47 pm)
Does it compile successfully? From first glance, it looks like you might have some parsing errors there. The materials seem like they'd be setup fine, it just looks like your strings aren't setup correctly.
#156
Yes, I was supposing exactly this, in particular I have suspects that the problem is with the line
Since the normal matarial setup put $lightmap within brackets I use the escape character \ to avoid closure of my code brackets but I'm not sure this work... probably not :-\
The strange thing as said is that sometimes the material worked (few times) and sometimes not...
After that also doing the material setup in the normal way doesn't work...
After that I also tryed deleting before all the procedurally generated shaders but again doesn't work...
I will investigate and post about it in the thread
01/31/2008 (1:16 am)
Hi Matt! Thanks so much for taking a look at it...Yes, I was supposing exactly this, in particular I have suspects that the problem is with the line
...
"texture[2] = \"$lightmap\";" @
...Since the normal matarial setup put $lightmap within brackets I use the escape character \ to avoid closure of my code brackets but I'm not sure this work... probably not :-\
The strange thing as said is that sometimes the material worked (few times) and sometimes not...
After that also doing the material setup in the normal way doesn't work...
After that I also tryed deleting before all the procedurally generated shaders but again doesn't work...
I will investigate and post about it in the thread
Torque Owner Adam Beer
Ignition Games Inc.