sgt_pinky
Regular
Ok, I have had this problem since I started. I am rendering poly's, and then lines over the top.
On lower quality gfx cards, which don't support SlopeScaleDepthBias, I have really really crappy lines (see attached image).
Interestingly, I initially had the following line in my code:
But on cards that don't support SlopeScaleDepthBias, this was producing horrible effects! (Shouldn't it have no effect?). I changed the lines to:
Solved that problem. Although it puzzles me still.
On cheap gfx cards though, I still cannot get nice lines. Has anyone managed this?
RenderState.DepthBias seems to have absolutely no effect that I have noticed on Radeon 9600 Pro, or GeFORCE4 MX.
Cheers,
Pinky
On lower quality gfx cards, which don't support SlopeScaleDepthBias, I have really really crappy lines (see attached image).
Interestingly, I initially had the following line in my code:
Visual Basic:
dRender.RenderState.SlopeScaleDepthBias = 0
'render lines
dRender.RenderState.SlopeScaleDepthBias = 1
'render poly's
But on cards that don't support SlopeScaleDepthBias, this was producing horrible effects! (Shouldn't it have no effect?). I changed the lines to:
Visual Basic:
If dRender.DeviceCaps.RasterCaps.SupportsSlopeScaleDepthBias = True Then dRender.RenderState.SlopeScaleDepthBias = 0
Solved that problem. Although it puzzles me still.
On cheap gfx cards though, I still cannot get nice lines. Has anyone managed this?
RenderState.DepthBias seems to have absolutely no effect that I have noticed on Radeon 9600 Pro, or GeFORCE4 MX.
Cheers,
Pinky
Attachments
Last edited: