Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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