From: Tiziano DIAMANTI (t.diamanti++at++cineca.it)
Date: 10/10/2004 09:09:40
Hello everyone,
I have my code for layered fog that is perfectly
running on Windows, but unluckly won't work on Linux,
everything is just black.
I tried on 2 different graphics cards, a GForce 4 4200
and an FX 5900 with the same result.
Here is a piece of my code:
pf_VolFog = pfNewVolFog(pfGetSharedArena());
pfVolFogAddChannel(pf_VolFog, pf_chan);
pfVolFogSetVal(pf_VolFog, PFVFOG_LAYERED_MODE, PFVFOG_LINEAR);
if (pf_StereoEnabled) pfVolFogAddChannel(pf_VolFog, pf_chan_r);
pfVolFogUpdateView(pf_VolFog);
pfVolFogAddPoint(pf_VolFog, Data->ground0_el, Data->ground0_den);
pfVolFogAddPoint(pf_VolFog, Data->ground1_el, Data->ground1_den);
pfVolFogAddPoint(pf_VolFog, Data->transition0_el, Data->transition0_den);
pfVolFogAddPoint(pf_VolFog, Data->clouds0_el, Data->clouds0_den);
pfVolFogAddPoint(pf_VolFog, Data->clouds1_el, Data->clouds1_den);
pfVolFogAddPoint(pf_VolFog, Data->transition1_el, Data->transition1_den);
pfVolFogSetColor(pf_VolFog, Data->r, Data->g, Data->b);
pfApplyVolFog(pf_VolFog, pf_scene);
Then I use pfDrawVolFog(volfog, channel);
in the Draw call-back.
Thanks for any help.
Tiziano Diamanti
3D Graphics Development
Cineca
Italy
This archive was generated by hypermail 2b29 : Sun Oct 10 2004 - 09:10:33 PDT