Search found 4 matches

by gpo
Thu 17. Mar 2011, 13:56
Forum: Bugs
Topic: BoundingBox
Replies: 4
Views: 1986

Re: BoundingBox

Ok I figured it out. I have to specify a very small step of movement to see it otherwise it would fly off the screen before you can see it double dx=(cL[0]-c[0])/1000, dy=(cL[1]-c[1])/1000, dz=(cL[2]-c[2])/1000; I still can't much explain the numbers given as min/max etc on the bounding boxes but by...
by gpo
Thu 17. Mar 2011, 12:26
Forum: Bugs
Topic: BoundingBox
Replies: 4
Views: 1986

Re: BoundingBox

I'm probably getting confused working over the same thing again and again but I would appreciate any light shed into this calculation. See the program below: - It needs also the Mirror-2.3ds file - can't seem to get through the attachment so please use another object .. Look at "transform 1" and "tr...
by gpo
Sun 13. Mar 2011, 03:59
Forum: Bugs
Topic: BoundingBox
Replies: 4
Views: 1986

BoundingBox

The BoundingBox computations are off sometimes; e.g. I have a thin rectangle 600 x 300 x (z=depth<100) and it gives me a depth in the thousands, as in the following Rectangle3D rc=BoundingBoxUtility.calculateBoundingBox(sgc); double[] c=rc.getCenter(); double[] rd=rc.getExtent(); // System.out.print...
by gpo
Sat 12. Mar 2011, 07:51
Forum: Programming Help
Topic: mirrors
Replies: 1
Views: 569

mirrors

Has anybody created a mirror surface or object? Is this what we need: chapp.setAttribute(CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.SPECULAR_EXPONENT, 22.1); chapp.setAttribute(CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.SPECULAR_COEFFICIENT, 1.0); chapp.setAttribute(CommonAttribu...