Hello Craig,
[EMAIL PROTECTED] wrote:
> In this particular case, I am able to artifically create a bounding box,
> because my "water core" artificially (as in manually) occupies a 1x1x1 cube,
> centered at the origin, so I am able to use -0.5, -0.5, -0.5 and 0.5, 0.5, 0.5
> as its bounds.
>
> This object is then initialised as it enters the viewport server side (which
> unfortunately means that half way through an animation it could suddenly start
> initialising on servers that it has yet to appear).
you could set the initial bounding box to infinite size to force
initialization in the first frame and set the real bounding box at the
end of initialization.
> It also poses another slightly harder, perhaps architecturally based question.
> I am only able to allocate a bounding box because I "artifically" manipulate
> the size of the geometry, however, in the case of a piece of geometry where I
> don't know the size of the geometry until it is generated (and thus until when
> renderEnter is called), this type of server side generation would be very
> awkward. An example off the top of my head might be something like metaballs.
> As it was, initialisation didn't take place because I suspect default nodes
> probably have their 0,0,0 context as the "bounding object" on which nodes are
> culled.
For this type of generated geometry I'd suggest either a conservative
guess for the bounding box. If even that is not feasible one could test
the generated geometry inside rendeEnter against the frustum and not
render it if it's outside. Of course, the time for computing the geo is
already wasted at this point.
> I guess I am thinking out loud :)
>
> Just out of interest, if I want to make the core that I am producing available
> to the community afterwards, how would I go about doing that? It is compiled
> in the same way that other librariese in /Source/Experimental are used.
Thank you for considering to contribute it. I guess it could either
become a contrib library or moved into e.g.
System/NodeCores/Drawables/Misc and become part of the system library.
Thanks,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users