Gordon Tomlinson (gordon++at++paradigmsim.com)
Fri, 23 Apr 1999 08:18:38 -0500
To control the Draw order you need to use
pfDrawBins, you create these for your channels
then tell you pfGeoSets which bin they belong in
and you can sort these bins etc
Have a look at
pfGetChanFreeBin(pfChannel* chan)
pfChanBinSort(pfChannel *chan, int bin, int sortType,int *sortOrders);
pfChanBinOrder(pfChannel *chan, int bin, int order);
pfDrawBin(int bin);
pfGSetDrawBin(pfGeoSet *gset, short bin);
pfGSetDrawOrder(pfGeoSet * gset, unsigned int order);
These should point you in the right direction
Gordon.
> Choi, Changrak wrote:
>
> Dear performers.
>
> I want to specify drawing order at pf level.
> For example,
> I make 3 geodes and attach them to scene graph.
>
> pfGeode *geode[3];
> pfScene *scene = new pfScene;
>
> for(int i = 0; i < 3; i++)
> {
> geode[i] = new pfGeode;
> .... // add GSet etc
> scene->addChild(geode[i]);
> }
>
> In this case, all geode drawing orders depend on distances from eye point to geodes' bounding box.
> When I want that always geode[0] draws last time, how can I program?
>
> Sorry to short English,
>
> Thanks..
>
> -----------------------------------------------------
> ÃÖâ¶ô (Choi, Changrak)
> http://galaxy.channeli.net/maitte/
> ¼¿ï½Ã ¿µµîÆ÷±¸ ¿©Àǵµµ¿ 18 Çѱ¹¹æ¼Û°ø»ç
--
Regards
Gordon.
Gordon Tomlinson | Multigen - Paradigm Inc Vega Software Engineer | Suite 400, 14900 Landmark Blvd Email: gordon++at++paradigmsim.com | Dallas, Texas 75240, USA Tel: 972 960 2301 | Fax: 972 960 2303 ______________________________________________________________
'Smoke me a kipper skipper, I'll be back for breakfast' ______________________________________________________________
640K of ram should enough for anybody. Bill Gates 1981
There is no reason anyone would want a computer in their home (Ken Olson, president of Digital Equip Corp 1977 ) ______________________________________________________________
This archive was generated by hypermail 2.0b2 on Fri Apr 23 1999 - 06:04:44 PDT