Re: z-buffer and pfuSmoke

New Message Reply Date view Thread view Subject view Author view

Alejandro Saez (cano++at++krusty.engr.sgi.com)
Fri, 15 Jan 1999 11:15:23 -0600


On Jan 15, 11:55am, David RAPIDEL wrote:
> Subject: z-buffer and pfuSmoke
> Hi pfAll,
>
> I came across a z-buffer problem :
> I have setup (at the far of my FOV) a set of polygon to map clouds
> background. I also use pfuSmoke utilities to simulate explosions. The
> problem is that the smoke of the explosion is behind the clouds.
>
> The code looks like :
>
> pfSetVec3(vec, 100.0f, 100.0f, 100.0f);
> pfuSmokeOrigin (pState->explosion, vec, 20.0f);
>
> and my far is about 6000;
>
> The z-buffer value of the smoke don't seems to be taken in account.
>
> Thank you for any help,
>
> David
>
This is just a suggestion, since I don't know how smoke is implemented, but I
guess some sort of transparency must be involved, and that can be a problem on
some platform/modes. I can't exactly remember (it should be on the archives)
but some gfx can only draw transparencies correctly when the objects are back
to front ordered. Again, just a suggestion, not really savy about it.

-- 
------------------------------------------------------------------------
Alejandro Saez
Software Engineer
Silicon Chile S.A.
                                        Avda. Santa Maria 2560
E-mail: asaez++at++silicon.cl              	Providencia
Phone:  +56 (2) 203 3371 Ext. 107 		Santiago
Fax:    +56 (2) 203 3370                Chile
------------------------------------------------------------------------

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Jan 15 1999 - 06:18:46 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.