Re: Problems with Z-buffering
- From: "Antti Keskinen" <antti.keskinen@xxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 09:30:16 +0300
Hello !
Thank you for the new suggestions regarding alpha blending. However, these
tricks did not provide a solution either. In order to clarify the results, I
am posting links to the rendered model with ALPHATESTENABLE and
ALPHABLENDENABLE first as both disabled, then test enabled, then blend
enabled, and finally both enabled. Pictures are in respective order as
below:
http://www.tpu.fi/~t1akeski/chair_alpha_alloff.bmp
http://www.tpu.fi/~t1akeski/chair_alpha_teston.bmp
http://www.tpu.fi/~t1akeski/chair_alpha_blendon.bmp
http://www.tpu.fi/~t1akeski/chair_alpha_bothon.bmp
As you can see, even with alpha testing/blending disabled, the chair remains
transparent from the back wall. In all images, the backface culling mode is
set to CCW, as in the previous post it was discovered that changing this
option has no desired effect on the result.
With both face culling, Z-testing and alpha testing options circled through,
I myself am running quite low on options as to where this problem might
infest itself. The material has been double-checked for opaque options (set
to 1.0f in all).
Anything else I should try out ? Does anyone have a clue how the DXUT
Framework sets the rendering options ? Should I create a sample application
with it and try to see if it renders correctly (thus, resolving possible
backbuffer format etc issues) ?
In search of solution,
Antti Keskinen
-------------------
"Callum Winter" <callum@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ep2I0$DaFHA.3320@xxxxxxxxxxxxxxxxxxxxxxx
>> Unfortunately no. The culling is not the problem. In order to elaborate
> the
>> situation, I have uploaded a few bitmap images of all culling modes
>
> It may be a longshot but as there seems to be no facial difference in any
> images in different cull modes, it looks to me like you have set material
> or
> vertex transparency, and you are seeing inside floor and back face through
> the others, as the colours blend rather than stay the same as you would
> expect with a z order problem.
>
> Try setting the ALPHABLENENABLE and ALPHATESTENABLE render states to false
> before you render the object and see if it makes any difference. If it
> does,
> check the diffuse member of your material and/or vertices to make sure the
> alpha component is set to 1.0f(opaque) and not less than 1.0f. which would
> be transparent, if alpha blending is turned on.
>
> pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE);
> pDevice->SetRenderState(D3DRS_ALPHATESTENABLE, FALSE);
> pObject->Render();
>
> Hope this helps.
> Callum.
>
>
.
- Follow-Ups:
- Re: Problems with Z-buffering
- From: Timo Kruse
- Re: Problems with Z-buffering
- From: Callum Winter
- Re: Problems with Z-buffering
- References:
- Problems with Z-buffering
- From: Antti Keskinen
- Re: Problems with Z-buffering
- From: Callum Winter
- Re: Problems with Z-buffering
- From: Antti Keskinen
- Re: Problems with Z-buffering
- From: Callum Winter
- Problems with Z-buffering
- Prev by Date: Re: swapping meshes in a mesh hierarchy
- Next by Date: Re: Rendering Within Paint Message Giving Strange Results
- Previous by thread: Re: Problems with Z-buffering
- Next by thread: Re: Problems with Z-buffering
- Index(es):
Relevant Pages
|