PDA

Click to See Complete Forum and Search --> : Direct3D 7


PsychoMark
Mar 2nd, 2001, 02:07 PM
I'm using Direct3D 7 to create 2D effects (http://www.planetsourcecode.com/xq/ASP/txtCodeId.21453/lngWId.1/qx/vb/scripts/ShowCode.htm), and succeeded in doing rotation and light effects, but I wanted to do Alphablending now.

I've read some tutorials on Multipass texture blending and stuff, but I don't know if that'll work in this case: what I want is to be able to draw a scene, and then (with preferably just one pass), draw another object (simple 4-vertex square, as it's going to be 2D) over the whole scene with for example 50% translucancy.


And another question, is it possible to combine the 3D parts with drawing normal DirectDraw surfaces (non-square)?

I want to be able to draw something like a 640x480 background behind a scene using DirectDraw (since DirectDraw can handle large surfaces easier). The background will be placed behind a scene similar to this one: http://www.planetsourcecode.com/xq/ASP/txtCodeId.21337/lngWId.1/qx/vb/scripts/ShowCode.htm

PsychoMark
Mar 5th, 2001, 07:37 AM
Ok, never mind about the surfaces, I used Texture surfaces instead and used Blt instead of BltFast, that fixed the problem.

Now only 2 questions remain:


First, can I use D3DTLVERTEX vertices together with alpha blending? If so, how?

Second, if I use D3DVERTEX vertices instead, is there any way to ignore Matrices. I want to be able to use lights too, but without settings viewports or cameras or matrices, just manually setting the X and Y coordinates of every vertex, and adding a point light.