Java 1.3 / Java 1.4 - What difference to save a canvas3D in a PNG file ?

Hi all,

I would like to know if there are some differences between Java3D 1.3 and Java3D 1.4 to save a canvas3D in a PNG file...

I have written a class to save a canvas3D in a PNG file which runs with Java 3D 1.3 but not with Java3D 1.4.

Java3D 1.4 returns following exception :

Exception in thread"J3D-Renderer-1" java.lang.IllegalStateException: GL_VERSION

at javax.media.j3d.Canvas3D.createNewContext(Native Method)

at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2429)

at javax.media.j3d.Renderer.doWork(Renderer.java:747)

at javax.media.j3d.J3dThread.run(J3dThread.java:250)

... I don't understand this exception. I haven't modify my Java code. Is it necessary to declare to Java3D which of DirectX or Open GL is used ?

Thank you for your reply.

Best regards,

Dave

PS: Don't hesitate if you want to look my code.

[946 byte] By [662134David38a] at [2007-11-26 12:18:25]
# 1

I would like to know if there are some differences between Java3D 1.3 and Java3D 1.4

Java 3D 1.4 is expecting at least Open GL version 2 or better. The 1.3 version is compatible with Open GL 1.1 or better

Is it necessary to declare to Java3D which of DirectX or Open GL is used ?

Not the version, but with 1.4 you specify which renderer to use with a runtime directive eg java -Dj3d.rend=d3d yourJavaApp

See the wiki at http://wiki.java.net/bin/view/Javadesktop/Java3DApplicationDevelopment

regards

93268messengersa at 2007-7-7 14:57:57 > top of Java-index,Archived Forums,Socket Programming...