From: GAUVIN Yves (yves.gauvin++at++sncf.fr)
Date: 09/05/2000 08:04:14
Hello,
I need to have 2D (a picture) or/and 3D object(s) without depth buffer
calculation and they must be attached to the viewpoint (or to a dcs
which is already attached to the viewpoint).
I tried to use the hud display example found on the Angus Dorbie site.
When I add a new pfChannel to the app, it crashes (I dont know exactly
where but not at the declaration, it's after the pfFrame).
With this line in the main, my app crashes, without it,it runs:
HUDchan = pfNewChan(p);
then I have:
pfAddChan(shared->pw, HUDchan);
pfChanViewport(HUDchan, 0.25f, 0.75f, 0.25f, 0.75f);
pfChanFOV(chan, 28.5f, 24.0f);
but no problems with those lines
before I have set p to pfGetPipe(0)
I have already a pfChannel which is defined by :
chan = pfNewChan(p);
pfChanScene(chan, shared->scene);
pfChanNearFar(chan, 0.1f, 5000.0f);
pfChanFOV(chan, 45.0f, 0.0f);
pfChanTravFunc(chan, PFTRAV_DRAW, DrawChannel);
Could somebody help?
Cheers,
Yves GAUVIN
FRENCH RAILROADS
This archive was generated by hypermail 2b29 : Tue Sep 05 2000 - 08:06:58 PDT