471,337 Members | 1,134 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Java3D: Setting Depth of Field w/ SimpleUniverse?

Hello all.

Is it possible to set a new depth of field (View.setBackClipDistance)
when using a SimpleUniverse? I've been unable to learn a way to
extract the View being used, in order to set these values.

Once I am able to set the clip distance -- is there a way to define an
infinite depth? I'd like to zoom in and out of an environment without
limits, and with no clipping.

Thank you for any help!
Jul 17 '05 #1
1 3110
Don't know about the clipping in Java but as for the infinite depth, is it
possible? Yes and No. As far as I know you can't totally switch it off but
you can give it a very high value. It depends on the size of you're world.
But be aware! If you're using a big landscape or something with a huge depth
of view you'll most probably slow down because of that polygons that need to
be drawn.

Besides, what you're doing is not really 'zooming' I think. If you increase
/ decrease the distance between the camera and the object you're depending
on the depth of view. But you could also use the focallength of the
camera(don't know where they put that in Java but it's probably somewhere).
When changing the focallength, the camera stays at the same position but
you're view 'zooms in/out'. Never tried it but if I'm right the clipping
effect would be gone and you're not depending on the depth(unless the real
distance between the object and the cam is already too large).

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Hoagie | last post: by
2 posts views Thread by Wiseguy | last post: by
1 post views Thread by Andre Bonin | last post: by
9 posts views Thread by MStepansky | last post: by
6 posts views Thread by Kermit Piper | last post: by
reply views Thread by Flex | last post: by
2 posts views Thread by awfulman | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.