About Store Forum Documentation Contact



Post Reply 
Super- vs. Multi- Sampling
Author Message
Driklyn Offline
Member

Post: #1
Super- vs. Multi- Sampling
I am currently drawing the following shapes in my test world:
  • Edges
  • OBoxes
  • Balls
  • Pyramids
  • Cones

If I enable super-sampling, all Edges and OBoxes become invisible, and all Balls, Pyramids, and Cones glow really brightly and always appear on top of meshes. The first 2 shape types are drawn inside of the main Draw() function; whereas, the last 3 shape types are drawn inside of an object's drawOutline() function. This explains why they are drawn differently.

If I enable multi-sampling, everything works as it should; however, in the header comments it says, "enabling multi-sampling for ShaderModel<=4.0 disables all depth-based effects". This does not sound good. What exactly does this disable?

I'm curious: Is there any way to make it so all shapes are drawn correctly when super-sampling is enabled, or should I just stick to using multi-sampling?
05-13-2011 06:33 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Super- vs. Multi- Sampling
you should draw Edge/OBox/pyramids and other shapes only in
void Draw()
{
Renderer(Render);

if(Renderer.rebuildDepthNeededForDebugDrawing())Renderer.rebuildDepth();

//here draw shapes
}
05-13-2011 07:50 AM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #3
RE: Super- vs. Multi- Sampling
Ah, okay. Thanks!
05-13-2011 08:57 AM
Find all posts by this user Quote this message in a reply
Post Reply