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
Chenak
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 26th Mar 2003 23:19 Edited at: 26th Mar 2003 23:23
Do custom shaders actually work with DBpro? I keep on getting errors for some reason. Here's the shader code:



Once you start down the Dark Path, forever will it dominate your destiny...
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Mar 2003 00:40
this doesn't look like a shader to me
atleast not one you can use outside of C++

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Neophyte
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 27th Mar 2003 09:38
@Inferno

It appears you are using the RenderMan Shading Language. Your problem is that the RSL was never designed for hardware shading; it's a software shader. This means that it calculates everything on the cpu and not the gpu so it's incredibly slow. The kind of shaders that DBPRO supports are hardware shader's like HLSL or Cg(although i haven't gotten them to work yet).

Although I'm not too sure about this I think ATI is developing something to convert RenderMan Shaders into HLSL. Check out their developer's site at http://mirror.ati.com/developer/index.html. It might be there. Hope this helps.

Chenak
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 27th Mar 2003 19:45
Cheers everyone
does anyone have a sample shader so i can figure out how to make one that works . Preferably that shader DOOM3 uses to make their models look ultra realistic

Once you start down the Dark Path, forever will it dominate your destiny...
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Mar 2003 01:19
save this as a .vsh



create the shader from file, then use it on the object

all this will do is cause a water like effect from the top of the model, is pretty cool (^_^)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Mar 2003 01:22 Edited at: 28th Mar 2003 01:35
oh you'll have to setup certain variable within DBpro before being able to use this...

create most like

vec3MyVector = make vector4(0,0,0,0)
set vertex shader vector 1,c0,vec3MyVector,1

remember vertex shaders always use 4-D Vectors ... this will create a vector point which you can access in the shader with c0, i mean you can name these anything - but should oftenly keep names within 4 letters/numbers and must use atleast a single letter

gimme a lil while and i'll mock up a demo showing you this in action so you can just press compile and see it at work

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 28th Mar 2003 07:09
So, did I understand you correctly when you said in the other thread that Radeon and Quadro2 cards don't support DBPro vertex and pixel shaders like you posted above? That's great!

Login to post a reply

Server time is: 2026-07-11 14:36:38
Your offset time is: 2026-07-11 14:36:38