1 registered members (TipmyPip),
18,633
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: HLSL Normal mapping for PS_1_4!! (works GREAT
[Re: Rhuarc]
#35120
10/27/04 19:10
10/27/04 19:10
|
Joined: Jun 2003
Posts: 1,017 Germany
Thomas_Nitschke
Senior Developer
|
Senior Developer
Joined: Jun 2003
Posts: 1,017
Germany
|
If it is, I assume it is not possible to adapt this shader to ps 1.3 so geforce 4ti users like me could use it?  Anyway, looks nice. I appreciate your contribution very much!
Formerly known as The Matrix - ICQ 170408644
I've been here for much longer than most people think. So where's my "Expert" status?
|
|
|
Re: HLSL Normal mapping for PS_1_4!! (works GREAT
[Re: LogantheHogan]
#35124
10/28/04 09:04
10/28/04 09:04
|
Joined: Jul 2004
Posts: 262
Otsego
Member
|
Member
Joined: Jul 2004
Posts: 262
|
In Antwort auf:
my model that has normal maps applied is very, very dark
My models are very dark, too. It seems they are light up from only one direction and the rest is nearly black. Does only the sunlighting work with these normal maps?
|
|
|
Re: HLSL Normal mapping for PS_1_4!! (works GREAT
[Re: Thomas_Nitschke]
#35126
11/10/04 05:17
11/10/04 05:17
|
Joined: Dec 2003
Posts: 1,097 Maryland, USA
Steempipe
Serious User
|
Serious User
Joined: Dec 2003
Posts: 1,097
Maryland, USA
|
Quote:
If it is, I assume it is not possible to adapt this shader to ps 1.3 so geforce 4ti users like me could use it? 
Anyway, looks nice. I appreciate your contribution very much!
It is possible...
To convert to ps.1.3... The first thing to do is pass the base_map thru the vertexshader with it's own TEXCOORD (for example, TexCoord1). Then in the pixelshader you will need to sample it using the TexCoord that you output it as from the vertexshader.
The texture reads in ps.1.3 (and below?) need seperate Texcoords.
I was able to make those changes and compile it for 1.3 and get the same effect as compiled for ps 1.4.
Also, I was successful on converting it to ASM, both the vertex and pixelshader, which can help troubleshooting a little.
|
|
|
|