I want to start with java 3d.
But I don't know where I can download a java 3d library.
Does someone know where I can download a java 3d library?
Thanks,
Dennis
Printable View
I want to start with java 3d.
But I don't know where I can download a java 3d library.
Does someone know where I can download a java 3d library?
Thanks,
Dennis
Did you check on this?
https://java3d.dev.java.net/
I don't see downloadable files/libs on that page.
No, not at all. But you can find lots of useful hints on that page. Did you read it completely?
Now I downloaded a bin from the site. (https://java3d.dev.java.net/binary-builds.html, j3d-1_5_2-windows-amd64.zip)
Thanks for the tip.
But I think... that lib don't work.
I've tested it with a simple java 3D tutorial.
then I got a error.
(21-May-2010 15:39:17 javax.media.j3d.NativePipeline getSupportedOglVendor
SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path)
Did you added those libraries in your classapth?
And also please post the complete error message when you posting again in the forum. It's really helpful to comment on your question. :)
My IDE is Eclipse.
I added with eclipse the library to the application. (Project > Properties > Java Build Path > Add External JARs)
My simple script (Getting Started - Your First Program):
It should be a square. http://www.java3d.org/Image1.jpgCode:import com.sun.j3d.utils.universe.SimpleUniverse;
import com.sun.j3d.utils.geometry.ColorCube;
import javax.media.j3d.BranchGroup;
public class Hello3d
{
public Hello3d()
{
SimpleUniverse universe = new SimpleUniverse();
BranchGroup group = new BranchGroup();
group.addChild(new ColorCube(0.3));
universe.getViewingPlatform().setNominalViewingTransform();
universe.addBranchGraph(group);
}
public static void main(String[] args)
{
new Hello3d();
}
}
And this is my complete error (in eclipse):
22-May-2010 14:27:52 javax.media.j3d.NativePipeline getSupportedOglVendor
SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path
I've download and installed NetBeans and the complete error of NetBeans is:
22-May-2010 15:37:40 javax.media.j3d.NativePipeline getSupportedOglVendor
SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1734)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at javax.media.j3d.NativePipeline$1.run(NativePipelin e.java:231)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativeP ipeline.java:200)
at javax.media.j3d.NativePipeline.loadLibraries(Nativ ePipeline.java:157)
at javax.media.j3d.MasterControl.loadLibraries(Master Control.java:987)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUn iverse.java:299)
at Hello3d.<init>(Hello3d.java:10)
at Hello3d.main(Hello3d.java:19)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
It's already solved, I didn't have a java 3D plug-in. ;)
That's much better. Solving problems your self make sense with your effort.
Actually I'm worried why did you change your IDE use in coding. It's really not necessary. In each IDE you can use additional/external packages nowadays. Never mind, NetBeans also a nice IDE. ;)
jus started working in java3d can precisely tell me in net beans 6.8 tools-> libraries under which class library in need to add following jar files j3dcore.jar j3dutils.jar and vecmath.jar to run java3d plz kindly tell me
Additional jar file either you can add into the project or into the class path. If you added them to the class path only you can use it within any project you want to work out. If you added specifically to a project, only within that you can use it. Check on project properties, there you can see an option to add additional jars.
i add those jar file by tools/libraries-->new library and gave name My Library and add those jar into My Library and execute a java3d program n i got following exception
Sep 8, 2010 1:48:00 PM javax.media.j3d.NativePipeline getSupportedOglVendor
SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at javax.media.j3d.NativePipeline$1.run(NativePipelin e.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativeP ipeline.java:180)
at javax.media.j3d.NativePipeline.loadLibraries(Nativ ePipeline.java:137)
at javax.media.j3d.MasterControl.loadLibraries(Master Control.java:948)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUn iverse.java:280)
at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:38 62)
at org.jdesktop.j3d.examples.alternate_appearance.Alt ernateAppearanceBoundsTest.init(AlternateAppearanc eBoundsTest.java:110)
at com.sun.j3d.utils.applet.MainFrame.run(MainFrame.j ava:267)
at java.lang.Thread.run(Thread.java:619)
java.library.path wer tis path actually located
Did you add them as compile time libraries?
how to add them in to compile time library
On your project, you can see a folder named Libraries, right click on it and click properties. Then on Project Properties window, click Libraries item. You can see several options to add the jar file.