Re: When is it safe to access paged geometry?

New Message Reply Date view Thread view Subject view Author view

Yair Kurzion (yair++at++polygon.engr.sgi.com)
Mon, 6 Dec 1999 15:12:01 -0800 (PST)


> My application pages in geometry with the OpenFlight
> loader. This geometry sometimes contains Switch nodes
> that I'd like to make use of right away. What can I
> use as a good indication that these new nodes are safe
> to access?
>
> Simply checking to see if they exist isn't good enough.
> This is too soon - it gives me a nasty bus error.

I suppose your newly-paged geometry gets added as a child of some node.
Testing for an increase in the number of children of this node in the APP
should indicate that the new subtree is ready.

If you don't add a child but replace an old child with the new child, you can
test that the child pointer changed.

> Also, has anyone had success with getting real values
> with pfGetSwitchVal (or pfSwitchVal for that matter)?
> I get a zero regardless of which child is activated.
> I can live without it, but it does seem a little
> strange that there is no apparent update.

Odd. Where exactly does it happen ? Only after paging geometry ?
Do you have a short sample program to demonstrate the problem ?

-yair

-- 
\_________  \_____  \__    \__  \_____         Yair Kurzion
\_________  \_____   \__   \__  \_____         yair++at++sgi.com
       \__     \__   \____\__      \__   http://reality.sgi.com/yair
       \__          \__  \__                Work: (650) 933-6502
       \__          \__   \__               Home: (408) 226-9771
       \__          \__    \__             

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Dec 06 1999 - 15:12:04 PST

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