Click here to Skip to main content
15,919,613 members
Home / Discussions / Graphics
   

Graphics

 
QuestionSetPixel() too slow? Pin
Naturality18-Aug-08 10:49
Naturality18-Aug-08 10:49 
AnswerRe: SetPixel() too slow? Pin
Matthew Butler18-Aug-08 12:35
Matthew Butler18-Aug-08 12:35 
GeneralRe: SetPixel() too slow? Pin
Naturality18-Aug-08 13:01
Naturality18-Aug-08 13:01 
GeneralRe: SetPixel() too slow? Pin
Mark Salsbery18-Aug-08 14:38
Mark Salsbery18-Aug-08 14:38 
GeneralRe: SetPixel() too slow? Pin
Naturality19-Aug-08 11:28
Naturality19-Aug-08 11:28 
Questioncan rotation be performed using translation itself? Pin
ashishsagarwal18-Aug-08 6:22
ashishsagarwal18-Aug-08 6:22 
QuestionXNA 3d model formats Pin
MikeMarq17-Aug-08 6:12
MikeMarq17-Aug-08 6:12 
QuestionDirectX9 novice help Pin
Dave_BHGF16-Aug-08 7:43
Dave_BHGF16-Aug-08 7:43 
Hi all,

I'm new to Direct3D programming, but made some simple examples.

I'm actually working on a WPF project in C#, but I'm exploring the new 3.5SP1 D3DImage imagesource to solve a performance issue.

I already have made a working example of some aplha-blended d3d projected on a WPF window, and it performs and antialiases very smooth.
The d3d code is Visual C++ , put in an unmanaged dll. I'd like to keep it that way, it's the method suggested for optimal performance.

What I want to can't be very hard - I want to draw about 200-300 rectangles on the 2D screen which size independantly of eachother. The rectangles are a simple top to bottom gradients. The rest of the rendered output is transparent.

- from here on I'd like your advice -

Do draw the rectangles, I'll use an array of four-vertices vertexarrays, stored on the d3ddevice memory. (Is that a good starting point?). I render them with trianglefan.

The rectangles get sized (scaled?) each 20 milliseconds, individually from oneanother (an array of floats is sent from the WPF app). What methods should I look for? Is it correct that matrices only apply to the whole scene, so I should do it differently?

It would be nice if I could "slow down" the sizing. For example, a rectangle goes from 0.1 to 0.9, and I want it to progress at a maximum speed of 1/500ms . Any ideas? Which part/methods of the DirectX documentation is good reading material for this?

Any help appreciated
QuestionProblem with CROSSBAR in DirectShow Pin
bhanu_850913-Aug-08 3:28
bhanu_850913-Aug-08 3:28 
AnswerRe: Problem with CROSSBAR in DirectShow Pin
Tim Craig13-Aug-08 9:27
Tim Craig13-Aug-08 9:27 
AnswerRe: Problem with CROSSBAR in DirectShow Pin
tanvon malik16-Aug-08 23:55
tanvon malik16-Aug-08 23:55 
GeneralRe: Problem with CROSSBAR in DirectShow Pin
bhanu_850922-Aug-08 3:35
bhanu_850922-Aug-08 3:35 
QuestionImage Control Pin
Dean Moe9-Aug-08 3:47
Dean Moe9-Aug-08 3:47 
AnswerRe: Image Control Pin
John_Adams22-Aug-08 9:10
John_Adams22-Aug-08 9:10 
QuestionIcon Creation Pin
The Only Nock7-Aug-08 14:31
The Only Nock7-Aug-08 14:31 
AnswerRe: Icon Creation Pin
Shog97-Aug-08 20:09
sitebuilderShog97-Aug-08 20:09 
GeneralRe: Icon Creation Pin
The Only Nock8-Aug-08 7:25
The Only Nock8-Aug-08 7:25 
GeneralRe: Icon Creation Pin
Shog98-Aug-08 7:28
sitebuilderShog98-Aug-08 7:28 
GeneralRe: Icon Creation Pin
The Only Nock8-Aug-08 8:15
The Only Nock8-Aug-08 8:15 
GeneralRe: Icon Creation Pin
Shog98-Aug-08 8:23
sitebuilderShog98-Aug-08 8:23 
GeneralRe: Icon Creation Pin
The Only Nock8-Aug-08 8:20
The Only Nock8-Aug-08 8:20 
GeneralRe: Icon Creation Pin
Shog98-Aug-08 8:24
sitebuilderShog98-Aug-08 8:24 
Questiondirectx in vs 2008 Pin
followait7-Aug-08 6:28
followait7-Aug-08 6:28 
AnswerRe: directx in vs 2008 Pin
Mark Salsbery7-Aug-08 7:43
Mark Salsbery7-Aug-08 7:43 
GeneralRe: directx in vs 2008 Pin
followait7-Aug-08 19:51
followait7-Aug-08 19:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.