Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Advance terrain shader

Author
Message
OnQue Int
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 24th Mar 2009 00:05 Edited at: 24th Mar 2009 00:06
Every time I use a AT shader on my terrain it loses its texture?

It is completly black no texture at all. I recently tried greens

shader with his textures and I still get the same look. Does

anybody know why and how to get a shader like this to work?

Thanks in advance
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 24th Mar 2009 16:46
Maybe you forgot the normals calculation part of GG's sample code?

<---Spell casting battle game!
Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 25th Mar 2009 23:39
I think that the way the shaders work is that you texture the object in multiple stages with different images, and then the shader textures the object depending on certain criteria such as height or gradient.

If you don't texture the object with enough images, or get the index stages wrong, then the object will appear black.

If you posted some code then I could take a look at it and help.

OnQue Int
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 26th Mar 2009 03:34
Ok great not to good with shaders this will be a alot of help.

here is just the terrain code.

Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 28th Mar 2009 21:44
If you do a browse in the forums for AT shaders, you should get some results with people with similar problems as this.

Im sorry, I had a look at it, and havent got too much of a clue.

I only started with shaders recently, but the best person to ask would be Green Gandalf.

Sorry...

Login to post a reply

Server time is: 2024-11-25 08:36:22
Your offset time is: 2024-11-25 08:36:22