galakt / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

MiniTri in Direct3D9 #376

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:

1. Install SlimDX SDK (November 2008)

2. Open Samples solution with MS Visual Studio 2008.

3. Build all projects.

4. Run MiniTri in Direct3D9 folder.  Triangle appears.

5. Add the following code after the Device.BeginScene() call in 
Application_Idle:

                float ZoomFactor = 0.5f;

                Device.SetTransform(TransformState.World, 
                    Matrix.Scaling(ZoomFactor, ZoomFactor, ZoomFactor));

6. Rebuild and run MiniTri.  The triangle appears the same size as in step 4.

Is this a bug?  It seems the triangle should appear scaled by 0.5.

Original issue reported on code.google.com by john.kek...@gmail.com on 3 Dec 2008 at 5:51

GoogleCodeExporter commented 8 years ago
The vertex format for the vertices in MiniTri specify PositionRhw, which means 
that
they are assumed by Direct3D to be already transformed and aren't messed with 
in the
pipeline. Setting transforms until you're blue in the face won't affect them.

Not a bug.

Original comment by Mike.Popoloski on 3 Dec 2008 at 10:05