Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 9,630 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
dependent texture reads in Ps1_1 #45137
05/03/05 11:51
05/03/05 11:51
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
Anyone know how the heck to do a dimple dependent read in 1_1?.. here's what im trying to do(it's for water bump mapping offsets...):

float4 bump = tex2D(BumpMap, waterCoord);
float2 offset = texCoord.xy + bump.xy * 0.1f ;
float4 reflection = tex2D(ReflectionMap, offset);

it works fine in ps 1_4 and above.. but not the lower version.. is there any way to accomplish this or soemthing like it in the lower versions.. i know you can do environmental bump mapping in lowever ps version.. it should be the same thing.

Re: dependent texture reads in Ps1_1 [Re: Matt_Aufderheide] #45138
05/03/05 13:55
05/03/05 13:55
Joined: Oct 2000
Posts: 1,543
Germany
A
Alexander Esslinger Offline
Senior Developer
Alexander Esslinger  Offline
Senior Developer
A

Joined: Oct 2000
Posts: 1,543
Germany
Ever read about the ps 1.1-1.3 limitations? Dependent texture reads are only possible with special channel combinations, and therefore cannot be altered in any way after sampling the first and before sampling the last texture.

...and because of the limitations it is also a bad idea to do the scaling in the pixel shader - just make your bumpmap darker in that case.

Re: dependent texture reads in Ps1_1 [Re: Alexander Esslinger] #45139
05/03/05 14:59
05/03/05 14:59
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
ok but im just trying to find a way to offset the UVs, as in a an environmental bump mapping shader.. since you cant do dependent reads.. how do you do it?

Re: dependent texture reads in Ps1_1 [Re: Matt_Aufderheide] #45140
05/03/05 15:19
05/03/05 15:19
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
i am a bit out of shader programming at the moment but the last time i did stuff like that i found hlsl to be quite unusable for < 1.4 pixel shaders. you have to use assembler. there are special < 1.4 instructions for some kinds of dependent reads.

btw. environment bump mapping doesn't work on geforce cards with a6. cube maps + uv-offset maps don't seem to like each other. it's possible to use an uv-offset map with normal textures (like realtime mirrors) though.

Re: dependent texture reads in Ps1_1 [Re: ventilator] #45141
05/03/05 20:53
05/03/05 20:53
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
yeah im not using a cubemap.. just a plain texture.. Does anyone have a ps_1_1 assembly coe shoader that does this kind of bumpmapping..? i cant find any of the old ones that were posted here


Moderated by  Blink, Hummel, Superku 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1