|
Re: Bump Mapping Shader
[Re: MASTERJUNOJET]
#22224
02/15/05 23:19
02/15/05 23:19
|
Joined: Oct 2002
Posts: 815 NY USA
Red Ocktober
Developer
|
Developer
Joined: Oct 2002
Posts: 815
NY USA
|
sure... Matt's code is in the first post of this thread Ultimate Shader Thread go there and use your browser's edit/find on this page menu option to find the third oocurance of LightRange. that thread has about all you need to implement the dx9c shaders... and this is where you'll find the code for entity as well as level geometry bump mapping implementation... good luck --Mike
|
|
|
Re: Bump Mapping Shader
[Re: Red Ocktober]
#22225
02/17/05 13:28
02/17/05 13:28
|
Joined: May 2004
Posts: 157 Earth, for the moment
MASTERJUNOJET
Member
|
Member
Joined: May 2004
Posts: 157
Earth, for the moment
|
Thanks for all your help, I finally found it, didnt fix the dark problem though
Here is what I keep getting:
As you can see the lit areas look pretty good, so all that I need is to fix the dark.
Projects:
Jet Force Gemini 2
|
|
|
Re: Bump Mapping Shader
[Re: MASTERJUNOJET]
#22226
02/28/05 05:29
02/28/05 05:29
|
Joined: Mar 2002
Posts: 7,726
old_bill
Senior Expert
|
Senior Expert
Joined: Mar 2002
Posts: 7,726
|
Has anyone converted this line to DX9: Code:
VertexShaderConstant[18]={1f,1f,1f,1f};
because i get a crash there: Malfunction W1550: Error in effect: mat_bumpmap(28): error X3000: syntax error: unexpected token 'f' > VertexShaderConstant[18]={1f,1f,1f,1f}; < Thanks for any help! old_bill
Success is walking from failure to failure with no loss of enthusiasm.
|
|
|
Re: Bump Mapping Shader
[Re: old_bill]
#22227
02/28/05 05:40
02/28/05 05:40
|
Joined: Mar 2001
Posts: 3,298 Beverly, Massachusetts
Rhuarc
Expert
|
Expert
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
|
With Dx9, the f suffix is only valid on floating point numbers (to my knowledge). Try this: VertexShaderConstant[18]={1.0f,1.0f,1.0f,1.0f}; -Rhuarc
|
|
|
Re: Bump Mapping Shader
[Re: Rhuarc]
#22228
02/28/05 05:57
02/28/05 05:57
|
Joined: Mar 2002
Posts: 7,726
old_bill
Senior Expert
|
Senior Expert
Joined: Mar 2002
Posts: 7,726
|
Fixed that problem, now the next error appears: Quote:
Malfunction W1550: Error in effect: mat_bumpmap(47): error X5326: Read of uninitialized components(*) in v0: *x/0 *y/1 *z/2 *w/3 (48): error X5326: Read of uninitialized components(*) in v0: *x/0 *y/1 *z/2 *w/3 (49): error X5326: Read of uninitialized components(*) in v3: *x/0 *y/1 *z/2 w/3 (50): error X5326: Read of uninitialized components(*) in v7: *x/0 *y/1 *z/2 *w/3 (51): error X5326: Read of uninitialized components(*) in v7: *x/0 *y/1 *z/2 *w/3 (52): error X5326: Read of uninitialized components(*) in v7: *x/0 *y/1 *z/
Thanks old_bill
Success is walking from failure to failure with no loss of enthusiasm.
|
|
|
|