Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
FFP & DotProduct3 #176234
01/03/08 17:53
01/03/08 17:53
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline OP
Expert
xXxGuitar511  Offline OP
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Since the computer I'm using does not support shaders (VS 1.0), I'm looking into learning some FFP. I can't seem to find any good material though.

Can anyone explain to how the dotproduct3 stage works? Does it just assume a light direction? I couldn't get much out of the shader in the manual or the wiki...


Thanks for any info....


xXxGuitar511
- Programmer
Re: FFP & DotProduct3 [Re: xXxGuitar511] #176235
01/03/08 18:07
01/03/08 18:07
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
This is what the DirectX documentation says about it:
Quote:


D3DTOP_DOTPRODUCT3
Modulate the components of each argument as signed components, add their products; then replicate the sum to all color channels, including alpha. This operation is supported for color and alpha operations.
S_rgba = (Arg1_r*Arg2_r+Arg1_g*Arg2_g+Arg1_b*Arg2_b)





You can find all parameters for ColorOp if you look for this keyword: D3DTEXTUREOP

Re: FFP & DotProduct3 [Re: Slin] #176236
01/04/08 22:27
01/04/08 22:27
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
There are a couple of good articles that I had found when I was doing this. If I find them, I will edit with the links this weekend.

One I have re-found at this moment is:
http://www.two-kings.de/tutorials/dxgraphics/dxgraphics14.html

A shot I had, when I was becoming happy with how the FFP normalmapping was beginning to go.




Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | 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