473,673 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java3D: Setting Depth of Field w/ SimpleUniverse?

Hello all.

Is it possible to set a new depth of field (View.setBackCl ipDistance)
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 3241
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).

Greetings,
Rick
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4561
by: Hoagie | last post by:
The pain! I've looked over this a hundred times and I don't understand it! I'm new to Java3D, so hopefully someone can help me in this quick (most likely trivial error). I am drawing a QuadArray plane w/ the "stripes.gif" texture (from the tutorial) applied to it. I've drawn the plane to be 2 inches (-1,-1 to 1,1) and 1 inch (0,0 to 1,1). After creating the Shape3D object, I add it to the branch group then add that to the Simple...
2
4251
by: Wiseguy | last post by:
I'm an opengl programmer who recently started playing with java3d and the scene graph methodology takes a bit to get used to. I'm wondering if there are any OTHER comprehensive tutorials for java3d besides the one on the sun.com site. It would be nice to find something that can be downloaded and browsed offline. tanks
1
6220
by: Andre Bonin | last post by:
Hello, I have an application that uses Java3D and I would like it to make webstart-enabled. Which tags (or how do i go about) stating the dependancy of the Java3D api within my application's JLNP file? Thank you for your time.
9
2172
by: MStepansky | last post by:
Whats the difference between Javascript and Java3D? I mean can Javascript do like Java3D can? Or is Java3D on top of Javascript (the core, if thats what it is)? Then I should learn Javascript BEFORE Java3D, right? no? Worse, whats the difference between Java and Javascript? Whats the difference between Visual Basic and Visual Java++? (I still thought Visual Basic is like BASIC programming to allow you to write
6
2431
by: Kermit Piper | last post by:
Hello, I thought this should be easy, but... all I want to do is set the value of this state drop-down based on a session var I'm getting back from a redirect (from the processing page): <% tax = session("Tax") city = session("City") state = session("State") %>
0
2474
by: Flex | last post by:
I have a canvas3d in Java3D, and I want to add some point. I try to to this. private void drawPoints() { PointArray pti = new PointArray(2,PointArray.COORDINATES); Shape3D shape = new Shape3D(); shape.removeAllGeometries(); BranchGroup ptiGroup = new BranchGroup(); pti.setCoordinate(0, new Point3d(3, 5, 23));
2
2079
awfulman
by: awfulman | last post by:
Hi, I am studying Java3D. I am not an experienced programmer and have no real programming education but I have some knowledge of graphics. I am familiar with POV-Ray that uses a kind of a programming language to render scenes too, in quite a similar way to Java3D, though not equal. I am really impressed by the opportunities that Java3d provides and I want to study it. But I am completely stuck in HelloJava3D.java . Of course I read the tutorial...
0
1077
by: Eyeinstyin | last post by:
There is some way to run java3d on webbrowser without j3d.I saw one example on net dont remeber the link but that ran a j3d applet on my webbrowser that didnot have j3d package installed.It actually loaded the jars on itz own.How do i do this.Load j3d jars from server and then webbrowser should use them to run j3d applet
2
2099
by: daschicken | last post by:
Hi guys, I'm not sure if theres anybody here with experience on this topic but ill give it a shot. Im lately facing some problems running several .jar files as Java WebStart jnlp. For this reason I tried to run a very basic .jar on my webspace which does well. But as soon as i try to usw .jar using the Java3D API, or just more complex it doesnt work with different errors. So before I go a bit deeper into my source I would like to...
1
8652
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8704
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7488
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6266
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
5731
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4254
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2105
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.