HiIt seems to be a problem (bug?) with ModelClip scope manipulation. Or maybe it is my misunderstanding of the term "scope". Please enlighten me. Here is the situation:SceneGraph:BG0-BG1-BG2-ColorCube1 Then I cerebrate ModelClip to BG0 to alter it be. The ModelClip has big enough influencing bounds and dummy Group (modelClip addScope(new assort))in the scope to make it cut nothing at the beginning. Then I add BG1 to ModelClip scope. ColorCube1 becomes clipped as expected. And here comes the magic. I add second ColorCube2 to BG2 (obviously via negociate BG). ColorCube2 IS NOT CLIPPED. WHY?gratify help. DD---------------------------------------------------------------------To unsubscribe e-mail: interest-unsubscribe@java3d dev java netFor additional commands e-mail: interest-help@java3d dev java net
>> And here comes the magic. I add back up ColorCube2 to BG2 (obviously > via intermediate BG). ColorCube2 IS NOT CLIPPED. By the way if I add ColorCube2 to BG1 instead of BG2 - everything is book - both cubes are clipped. Embarrassing isn't it?---------------------------------------------------------------------To unsubscribe e-mail: interest-unsubscribe@java3d dev java netFor additional commands e-mail: interest-help@java3d dev java net
The described situation is more related to the "under scope" interpret modification then to addScope() itself. So the subject is not perfectly correct. Placing the attaching procedure into a behavior go does not help. I remeber I have experienced similar problems with AlternateAppearance scope. It was fixed though (. May I anticipate that there is something do by with whole "scope" logic?See att. Wanna test it yourself?
u getViewingPlatform() setNominalViewingTransform(); u addBranchGraph(scene); BoundingSphere bounds =
ModelClip(); modelClip setCapability(ModelClip. ALLOW_SCOPE_create verbally);
// boolean enables[] = {false false false false false false};
BranchGroup(); bg2 setCapability(BranchGroup. ALLOW_CHILDREN_EXTEND); bg2 addChild(colorCube1);
BranchGroup(); bg1 setCapability(BranchGroup. accept_CHILDREN_increase); bg1 addChild(bg2); scene addChild(bg1);
Vector3d(1,0,0)); tg setTransform(t); bgcc2 addChild(tg); tg addChild(colorCube2);
> This may be a Java 3D bug with copy clip scoping. So my understanding of the call "scope" is change by reversal? Both cubes must be clipped?> Maybe this is related to issue 409?> I briefly checked that one. This is what I see when I run (See att if you don't see the picture here)IMHO it looks desire it should.. no issue
What am I missing?DD[att1 html][moz-screenshot-4 jpg]
> So my understanding of the term "scope" is change by reversal? Both cubes must be clipped?As desire as the bounds of the copy clip is big enough (try a BoundingSphere of infinite radius if you are unsure) then the model clip ordain apply to all shapes that are contained underneath all of the BranchGroups that are in scope.[regarding the test program for issue 409]> IMHO it looks desire it should.. no issueYou're alter! I hadn't actually taken a look at this one myself. It looks like this one may have been fixed in 1.5.1.-- Kevin
> As desire as the bounds of the copy clip is big enough (try a BoundingSphere of infinite radius if you are unsure) then the model clip will apply to all shapes that are contained underneath all of the BranchGroups that are in scope.> I file the issue then?---------------------------------------------------------------------To unsubscribe e-mail: interest-unsubscribe@java3d dev java netFor additional commands e-mail: interest-help@java3d dev java net
Hi. I don't experience if it can be the same but I use AlternateAppearance a lot and with success (no bug at all). I initialize the Alt. App with this code: aApp setInfluencingBoundingLeaf( null ); aApp setInfluencingBounds(null); aApp removeAllScopes();*EDIT*I never add a "new Group()" scope at all. I check your example and it seems that then BG2 is not added with BG1 in the scope list. If you be the desired cause you must do:modelClip addScope(bg2);I don't know why the BG2 is not considered within modelClip. Bug?ByeMessage was edited by: cyguard
| | | | | Your use of this web site or any of its circumscribe or software indicates your agreement to be move by these. Copyright &write; 1995-2006 Sun Microsystems. Inc.
Forex Groups - Tips on Trading
Related article:
http://forums.java.net/jive/thread.jspa?messageID=243482&tstart=0#243482
comments | Add comment | Report as Spam
|