7/25/01 7:21:23 AM, Bob Dengle <[EMAIL PROTECTED]> wrote:
hello,
thanks for the reply
it eventually helped me :)
I read the section on boundingleafs carefully again and indeed :
quote from sun java3d tut ch3 par7
"One interesting application of a BoundingLeaf object places a BoundingLeaf in the
viewPlatform. This
BoundingLeaf can be used for an "always on" scheduling bounds for a Behavior, or
"always applies"
application bounds for Background or Fog. Code Fragment 3-8 presents an example
"always applies"
BoundingLeaf application used with a Background. Another example application of a
BoundingLeaf is
presented in Section 6.6.
.....
The BoundingLeaf object is set as the application bounds for the background object on
line 11. This same
BoundingLeaf can be used for other purposes in this program. For example, it can also
be used for
behaviors. Note that using the BoundingLeaf in this program as the
InfluencingBoundingLeaf of a light
would not make the light influence all objects in the virtual world."
so for all behaviors it makes sense but not for lights. They explicitly say it.
And in fact it makes sense :)
The light is always active since its boundingleaf always intersects the
activationvolume
but this doesn't say anything about the geometry I want to draw.
But I wonder then, how can you make a light light the whole scene?
So I extended the abstract Bounds class to make a bounds class that always return
true when computing intersections. But then I have problem with the copy method.
I implement it but the compiler keeps on telling that I didn't (I checked the syntax
carefully)
I believe it isn't possible yet to extend from the bounds class. It is probably not
generic enough
because i see IDs specifically for sphere polytope and box boundings.
So this approach doesn't work either. Does someone know a practical approach to this
problem?
thanks,
mattie
>Hi
>
>I think there is a misunderstanding in how the bounding leaf system works.
>When you attach the same bounding leaf to the viewplatform, lights, and
>behavior, it doesnt mean that they are all active inside that bounding leaf.
>Rather, the boundingsphere is drawn around each of the three objects.
>Behaviors and lights become active when their boundingleaf intersects the
>boundingleaf of the viewplatform. I'm guessing that you are zooming out
>beyond the influence of the lights but the behavior bounds still intersects
>the viewplatforms
>
>B.D.
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".