sgt_pinky
Well-known member
Ok, I have had this problem since I started. I am rendering polys, and then lines over the top.
On lower quality gfx cards, which dont 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 dont support SlopeScaleDepthBias, this was producing horrible effects! (Shouldnt 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 dont support SlopeScaleDepthBias, I have really really crappy lines (see attached image).
Interestingly, I initially had the following line in my code:
Code:
dRender.RenderState.SlopeScaleDepthBias = 0
render lines
dRender.RenderState.SlopeScaleDepthBias = 1
render polys
But on cards that dont support SlopeScaleDepthBias, this was producing horrible effects! (Shouldnt it have no effect?). I changed the lines to:
Code:
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
Last edited by a moderator: