Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Anyone know where to lookup the 3rd parameter to SetBlendMapping

Author
Message
lwatson
17
Years of Service
User Offline
Joined: 17th Nov 2006
Location: Lincoln, RI USA
Posted: 4th Dec 2006 04:19
I am playing with the various texturing techniques that are available in DGDK.net and am looking for the rhyme and reasons on a number of supported library calls

Specifically the third parameter on the SetBlendMapping method. The documentation is a bit vague.....

Lonnie Allen Watson
rmag.blogspot.com (blog)
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 4th Dec 2006 05:24
I ended up looking at the documentation that come with DBPro, tis the same function.

Quote: "SET BLEND MAPPING ON Object Number, Image Number, Blend Mode
SET BLEND MAPPING ON Object Number, Stage Index, Image Number, TexCoordMode, Blend Mode

Texture Coord Mode:
0 - Regular UV Stage Match
1 - Sphere Mapping UV Data
2 - Cube Mapping UV Data
3 - Steal UV Data From Stage Zero
10-17 - Take UV Data From Stage Mode Value minus 10

Blend Mode:
1 - D3DTOP_DISABLE
2 - D3DTOP_SELECTARG1
3 - D3DTOP_SELECTARG2
4 - D3DTOP_MODULATE
5 - D3DTOP_MODULATE2X
6 - D3DTOP_MODULATE4X
7 - D3DTOP_ADD
8 - D3DTOP_ADDSIGNED
9 - D3DTOP_ADDSIGNED2X
10 - D3DTOP_SUBTRACT
11 - D3DTOP_ADDSMOOTH
12 - D3DTOP_BLENDDIFFUSEALPHA
13 - D3DTOP_BLENDTEXTUREALPHA
14 - D3DTOP_BLENDFACTORALPHA
15 - D3DTOP_BLENDTEXTUREALPHAPM
16 - D3DTOP_BLENDCURRENTALPHA
17 - D3DTOP_PREMODULATE
18 - D3DTOP_MODULATEALPHA_ADDCOLOR
19 - D3DTOP_MODULATECOLOR_ADDALPHA
20 - D3DTOP_MODULATEINVALPHA_ADDCOLOR
21 - D3DTOP_MODULATEINVCOLOR_ADDALPHA
22 - D3DTOP_BUMPENVMAP
23 - D3DTOP_BUMPENVMAPLUMINANCE
24 - D3DTOP_DOTPRODUCT3
25 - D3DTOP_MULTIPLYADD
26 - D3DTOP_LERP
"


And yes, there are 2 definitions in DGSK

Big whorls have little whorls which feed on their velocity,
Little whorls have lesser whorls and so on to viscosity. - Lewis F. Richardson
lwatson
17
Years of Service
User Offline
Joined: 17th Nov 2006
Location: Lincoln, RI USA
Posted: 4th Dec 2006 13:19
Thanks for the information...

I actually bought DBPro some years ago and have since lost track of the Manual that came with it. I still have the CD though but maybe I should upgrade that product as its documentation appears to be more complete than that which came with DGDK....

Lonnie Allen Watson
rmag.blogspot.com (blog)

Login to post a reply

Server time is: 2024-06-29 04:26:02
Your offset time is: 2024-06-29 04:26:02