Re: [Plib-users] Pre/Post draw callbacks on ssgBranches.
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2000-09-20 18:49:37
|
Jon Anderson wrote:
> >Hence, I think you'll have to call the tesselator function for some region
> >around
> >the intersection inside both isect and hot member functions.
>
> Actually, since the terrain has a pointer to all the height field data. I
> have been just referencing that data directly, rather than trying to
> intersect the resulting mesh.
Excellent idea. That should be *really* fast too. The only 'gotcha'
is that applications can demand that you tell us which triangle was
intersected - it's vertices, etc. I guess you just have to fake it
so that you give back three terrain height posts.
> >Incidentally, I'm assuming this is something that we'd put into ssgAux rather
> >into the main scene graph API - since not everyone will want it. So we'd
> >better
> >talk about ssgaTerrain rather than ssgTerrain.
>
> Sure. This is definitely more of a auxiliary. It's a pretty simple
> implementation right now, with limited flexibility. Maybe I'll try
> implementing some things like the variance calculation function as call
> backs to allow an end programmer to customize it better.
Yes - I think that would be useful...of course you could donate it as-is
and set the bazaar loose on those improvements!
"Commit early - Commit often"
--
Steve Baker HomeEmail: <sjb...@ai...>
WorkEmail: <sj...@li...>
HomePage : http://web2.airmail.net/sjbaker1
Projects : http://plib.sourceforge.net
http://tuxaqfh.sourceforge.net
http://tuxkart.sourceforge.net
http://prettypoly.sourceforge.net
|