pfLPointState callbacks...

New Message Reply Date view Thread view Subject view Author view

From: Guy Prémont (gpremont++at++silicon-worlds.fr)
Date: 11/29/2000 02:12:38


Hi,

I'm setting up a star database. The obvious choice is to use points with
a pfLPointState. So far, it work fine. The points change size according
to the distance to camera and they blend in a foggy mist when far away.

However, I'd the stars to scale according their distances to camera AND
to their absolute magnitudes (their intrinsic brightness). I've tried to
implement it with a callback but it is never called! I don't use texture
simplification and I don't wont a separate process.

My setup looks like this:
  pfLPointState *lps = new(pfGetSharedArena()) pfLPointState;
  lps->setMode(PFLPS_FOG_MODE, PFLPS_FOG_MODE_OFF);
  lps->setMode(PFLPS_SIZE_MODE, PFLPS_SIZE_MODE_ON);
  lps->setMode(PFLPS_TRANSP_MODE, PFLPS_TRANSP_MODE_ALPHA);
  lps->setMode(PFLPS_DIR_MODE, PF_OFF);

  // Setup the callback for size computation
  lps->setMode(PFLPS_CALLBACK_MODE, PFLPS_CALLBACK_MODE_POST);
               // PFLPS_CALLBACK_MODE_PRE doesn't work too
  lps->setRasterFunc(ColStar_rasterCB, lps);

and the callback itself has the following signatude:
  void ColStar_rasterCB(pfRasterData *rasterData);

Is this a bug? Or is it something wrong with the settings?

Thanks for any input!
Guy Prémont

-- 
===================================================
               Silicon Worlds S.A.  
    12, rue de Chatillon    75014 Paris  France
Tel: +33 (01) 53.90.11.13 Fax: +33 (01) 53.90.11.12


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 29 2000 - 02:16:05 PST

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