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 / Loading a shader to a matrix?

Author
Message
game master 07
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Maryland
Posted: 26th Apr 2007 05:50
Can you load a shader file onto a matrix? I have looked all over the forums and have found nothing on this. What I want to do is have a water shader on the matrix water effect. Here is the link to the effect im talking about http://forum.thegamecreators.com/?m=forum_view&t=103714&b=6
Can someone mabey give me a sample code with the fresnal water shader on the matrix water effect? I am having a very hard time figuring out how to this. Any help would be extremely appreciated.

gm07
game master 07
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Maryland
Posted: 26th Apr 2007 18:18
Can someone please help me! I would really like to know how to add a shader to a matrix!!

gm07
game master 07
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Maryland
Posted: 27th Apr 2007 01:46
28 views and still no help! I am begging you people for help here! Please please help me!

gm07
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Apr 2007 03:56
I'm no expert with shaders and DBPRo, but to the best of my knowledge, a shader can only be applied to an object - not a matrix.

So, you need to create a plain object and position it on your matrix correctly - then apply the shader to it.

TDK_Man

game master 07
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Maryland
Posted: 27th Apr 2007 05:43
I did that to. But it just comes out black!

gm07
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Apr 2007 19:18
Does your GFX card support the shader you are using?

TDK_Man

game master 07
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Maryland
Posted: 27th Apr 2007 19:23 Edited at: 27th Apr 2007 19:26
I am pretty sure. I have a GeForce 7900. I have also run the ultimate shader pack and they work perfect. Also here is my code that i tried to use for doing the shader.


gm07
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Apr 2007 19:39
Yes, the 7900 should be OK.

I've not got any of the files you have, but just a thought from looking at your snippet...

You are using:

xrotate object 55,270

You're not flipping the plain upside down and looking at the bottom of it are you?

Does it do the same with:

xrotate object 55,90

TDK_Man

game master 07
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Maryland
Posted: 27th Apr 2007 22:26 Edited at: 27th Apr 2007 22:33
Ok I kinda fixed my problem on my own. I also used a different water shader I found. But what i need help now is how to make the water bobble up ad down. You know like waves and such here is my code.


gm07
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Apr 2007 02:04
Quote: "Ok I kinda fixed my problem on my own."


OK - so what was it you did - for the benefit of others who might have the same problem in the future?

I take it that the 90 degrees rotation instead of 270 didn't fix it?

TDK_Man

game master 07
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Maryland
Posted: 28th Apr 2007 05:22 Edited at: 28th Apr 2007 05:26
I added these commands.

I also tried a different water shader to . I am not sure why but different shaders seem to respond differently to different commands.

gm07

Login to post a reply

Server time is: 2024-11-25 19:33:25
Your offset time is: 2024-11-25 19:33:25