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.

Author
Message
Eldar
20
Years of Service
User Offline
Joined: 26th Nov 2003
Location:
Posted: 30th Nov 2003 17:01
I've coded a radiosity shader and need a tiny bit of help, how do you pass an image from DB pro to the shader? Thanks.

3.1 ghz Pentium 4
Geforce FX 5800 ultra @ 535/1300
DX 9
Darkflame
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location:
Posted: 1st Dec 2003 19:07
People dont seem to like to talk about them here, i dont think anyone has actualy got them working.
At least, i have never seen any game use them.

"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard
Neophyte
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 1st Dec 2003 22:17
@Eldar

I believe that this is what you are gonna need. It will load the needed texture. Place it at the top of your shader file.

texture ATextureName
<
string File = "filename.whatever";
string TextureType = "2D";
>;

I believe you will also have to set the sampler state for it as well, but a better example and explaination of what you will need can be found under Dark Basic Software\Dark Basic\Professional\Help\examples\basic3d\fx. There are a couple shaders there aniso, bubble, and simple, all of which load an image so they should be pretty good examples to learn from.

I'm kinda pressed for time at the moment so if you need any more help or clairification just post and I'll see if I can get to it later.
Eldar
20
Years of Service
User Offline
Joined: 26th Nov 2003
Location:
Posted: 3rd Dec 2003 23:50
Thanks Neo, I already know how to sample the tex it was the other part i didn't know.

3.1 ghz Pentium 4
Geforce FX 5800 ultra @ 535/1300
DX 9
Neophyte
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 4th Dec 2003 12:10
@Eldar

"Thanks Neo"

Anytime.

Login to post a reply

Server time is: 2024-11-25 19:30:49
Your offset time is: 2024-11-25 19:30:49