1

Closed

finish sample Primitives

description

Currently the primitives sample is:
 
  • unfinished (the different tests needs to be implemented)
  • using the XNA framework (to ensure that it is working as expected first)
Closed Sep 28, 2012 at 6:42 AM by Glatzemann
fixed in revision #18365.Problem with instanced primitives was in the shader: Starting with DX10 POSITION0 must be changed to SV_POSITION.

comments

Glatzemann wrote Dec 16, 2011 at 8:20 AM

The sample is finished but there's still a rendering error in the instanced primitives part (even in XNA version).

Glatzemann wrote Dec 27, 2011 at 5:04 AM

The XNA version of the sample is finished now. I'll start to move to ANX now and implement the missing features.

Glatzemann wrote Jan 9, 2012 at 6:35 PM

DrawUserPrimitives is implemented

Glatzemann wrote Jan 17, 2012 at 8:52 AM

DrawUserIndexedPrimitives is implemented

Glatzemann wrote Jan 19, 2012 at 4:58 AM

DrawInstancedPrimitives is implemented.

The current version of BasicEffect is not complete. It does not render like it should and needs some work to complete this sample.

Glatzemann wrote Sep 20, 2012 at 8:38 AM

Viewport problem is fixed... Four of the five viewports are rendered now. The instanced one is still missing.

There are different problems with the Draw*Primitive methods. They should be analyzed seperately because there are paging effects.

Glatzemann wrote Sep 20, 2012 at 9:55 AM

I added some options to deactivate the different test cases by key press.

DrawPrimitives and DrawUserPrimitives looks like the culling is broken.
DrawIndexedPrimitives and DrawUserIndexedPrimitives have some issues: If one is deactivated, the other one is affected.
DeawInstancedPrimitives is currently not working.

Glatzemann wrote Sep 20, 2012 at 10:23 AM

DrawIndexedPrimitives and DrawUserIndexedPrimitives are fixed now (source revision #18149).

Glatzemann wrote Sep 20, 2012 at 11:55 AM

DrawPrimitives and DrawUserPrimitives are fixed now (source revision #18152).

Glatzemann wrote Sep 21, 2012 at 12:08 PM

fixed another issue with DrawIndexedPrimitives in source revision #18165.

Remaining issue: DrawInstancedPrimitives is not working...

Glatzemann wrote Sep 22, 2012 at 7:36 AM

I've analyzed the draw instanced primitives issue. There are several problems:
  • Multiple vertex buffer instances are not working
  • Merging of Vertex declaration when using multiple vertex buffers are not working
  • Mapping of Vertex declaration to input layout not working when using multiple vertex buffers
I'm currently debugging this issues...