There are some calculations for various zoom/focus amounts and expected results (like showing something 100% at a certain distance). I can try to dig them up for you, but not sure how much they will make sense or apply to what you are trying to do.
Best thing to do might be to try a few different numbers for zoom, and then a few different ones for focus (changing both at the same time might confuse you). This should work OK if you are "eyeing" the scene for it to look the way you want. As well, it seems you aren't looking at the floor straight on, but at an angle, so it might take some trial and error instead of a certain magical absolute number or calculation, since your camera set up seems like an exclusive scenario. -Pete On Thu, Nov 18, 2010 at 12:06 PM, jonny <[email protected]>wrote: > Great insight Pete. > > Yes, if I change the y value to 100, the floor no longer gets > clipped. > > But I do want the camera at a height of 12. My problem is I dont > really understand quite how these focus and zoom values work in > away3d. How do I know what values to put for focus and zoom for this > to work properly? > > > On Nov 18, 3:32 pm, Peter Kapelyan <[email protected]> wrote: > > You are right, it probably is the zoom/focus. 12 on the y axis is > probably > > way too close to the ground with those defaults. If you change the Y axis > to > > 100 or 200 does the floor still get clipped? If it doesn't, then try > setting > > it back to 12 (if you need it to be 12), and then changing the zoom/focus > to > > fit. Hopefully it works for you. > > > > -Pete > > > > > > > > > > > > On Thu, Nov 18, 2010 at 9:39 AM, jonny <[email protected]> > wrote: > > > Thanks very much for the info John. > > > > > I still have a problem that is troubling me with this... > > > > > I have a camera3D object. It has a position of 0,12,0 and is looking > > > at 0,12,1 (so just looking straight down the z plane). My world, for > > > simplicity's sake is just a large plane (width and height 4096) with a > > > position of 0,0,0 and it has a grass texture applied to it. > > > > > My camera has the default focus value of 100 and the default zoom > > > value of 10. > > > > > I apply frustrum clipping like so: > > > this.frustrumClipper = new FrustumClipping(); > > > this.frustrumClipper.minZ = 0; > > > this.frustrumClipper.maxZ = 1000; > > > this.view.clipping = this.frustrumClipper; > > > > > But the result is this: > > > > >http://picasaweb.google.com/lh/photo/fIjrlwuUzgUtV3631jzJDSc8VkPW6FAE. > .. > > > > > I basically get the bottom bit of the view clipped. I dont get it? > > > Shouldnt a minZ value of 0 mean that you see everything near the > > > camera? > > > > > Could this be to do with the focus and zoom settings of the camera? I > > > am stumped, any ideas? > > > > > Thanks again! > > > > > On Nov 18, 2:00 pm, John Brookes <[email protected]> wrote: > > > > > So am I right in thinking that minZ relates to the smaller dotted > > > > > rectangle in the diagram and maxZ relates to the larger one > > > > > > yes. > > > > > > > Also, are the minZ and maxZ values relative to world co-ordinates? > so > > > > > if you move the camera around do you have to set new values for > minZ > > > > > and maxZ each time? > > > > > > > no > > > > > > The max and min Z are relative to the camera. > > > > > > Think of maxZ as distance from the camera position along the cameras > > > forward > > > > vector(what its looking at). > > > > > > So if you had your camera at 0,0,1000 looking at the origin > > > > and clipping.maxZ set at 1000, everthing beyond the origin would be > > > clipped. > > > > > > If you don't set max/minZ they are default at +-infinity > > > > -- > > ___________________ > > > > Actionscript 3.0 Flash 3D Graphics Engine > > > > HTTP://AWAY3D.COM- Hide quoted text - > > > > - Show quoted text - -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
