Questions tagged [canvas3d]

Canvas3D class provides a drawing canvas for 3D rendering in Java under the Abtract Window Toolkit

See docs for more details

16 questions
2
votes
1 answer

Make Spheres on a Canvas3D 'clickable'

I've got a Canvas3D which holds a couple Spheres. Is there a way to detect when the user clicks on a sphere?
äymm
  • 411
  • 4
  • 14
2
votes
0 answers

QT Canvas3D and Cesium

Recently QT introduced the "Canvas3D" Project, which basically allows you to draw OpenGL via Javascript. ie, native WebGL. That sounds great to use cesiumJS (https://cesiumjs.org/). Is possible to use CesiumJS with Qt Canvas3D project? How can i do…
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
2
votes
1 answer

JFrame not responding to events while handling another event

I have the following scenario: 1. I creat a JFrame jFrame in a "FrontEnd.java" class implementing ActionListener. Then I add a Canvas3D object to its ContentPane, and right afterwards, I add a JMenuBar with a few JMenus and a couple JMenuItems…
Azurlake
  • 612
  • 1
  • 6
  • 29
1
vote
1 answer

Flipping the View horizontally - How?

Recently I've found that all of my scene objects are in left-handed coordinates, but Java 3D uses right-hand coordinates. There is a solution: flipping the scene Z-axis and reverting the triangles winding order. But this will be a horrible mess. It…
WindRider
  • 11,958
  • 6
  • 50
  • 57
1
vote
1 answer

JPopupMenu.setDefaultLightWeightPopupEnabled(false) doesn't work

I am working with the ImageJ 3D Viewer library (http://3dviewer.neurofly.de/). I am trying to display an image in the viewer, but the popup menu (menu options) are being obscured by the canvas. That is, they disappear behind the canvas. I looked all…
pyrrhic
  • 1,769
  • 2
  • 15
  • 27
1
vote
0 answers

How to dynamically extend PickCanvas object for MouseListener click event in a Java Applet (using Java3D)?

I am developing a Java applet using Java3D. It starts up with a BranchGroup object (containing a set of points) which is added to a Locale object. A PickCanvas is created starting from the Locale and a class implementing MouseListener is constructed…
wallen
  • 311
  • 1
  • 4
  • 13
1
vote
1 answer

Java3D - Some classes not found but classpath is set correctly

I have a class that uses Java3D that successfully compiles, although when I try to run it it says: Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/j3d/Canvas3D, With the following stack trace: at…
user2170842
1
vote
1 answer

Java3D with Canvas3D and button overlapping

i've been doing some introduction to solidstate physics with using Java3D. After delving into many 3D things inside, decided to put some buttons to test different things. My problem emerged here. In the below picture, i was using setLayout(null) to…
huseyin tugrul buyukisik
  • 11,469
  • 4
  • 45
  • 97
0
votes
1 answer

PrintCanvas3D won't work

I have some trouble tring to print graphics from Java3d some computer (Intel based Graphic cards) crash completly when printing. I got this exception. javax.media.j3d.IllegalRenderingStateException: GL_VERSION at…
kwenji
  • 68
  • 1
  • 7
0
votes
0 answers

Java3D: JNI Error - java.lang.NoClassDefFoundError: javax/media/j3d/Canva s3D: Windows 7

OS: Windows 7 64-bit Java: C:\Program Files\Java\jdk1.8.0_202 [Installed jdk-8u202-windows-x64.exe] Java 3d: C:\Program Files\Java\Java3D\1.5.1 [Installed java3d-1_5_1-windows-amd64.exe] Environment Varaibles: JAVA_HOME C:\Program…
0
votes
1 answer

How do I add a Canvas3D to a JFrame without losing window focus?

I am trying to make a Swing GUI that includes some 3D stuff using Java3D's Canvas3D object. The problem is that it takes a while for a Canvas3D object to initialize, and I want the Swing GUI to come up right away. My solution to this problem is to…
Charlie Armstrong
  • 2,332
  • 3
  • 13
  • 25
0
votes
2 answers

Error:: QtQuick packages are not installed

I am trying to execute the canvas3d project on qnx platform. While execution it throws an error as below qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed qrc:/main.qml:39:1: module "QtQuick.Controls" is not…
ajit216
  • 13
  • 4
0
votes
1 answer

Java3D Canvas3D has paint cycle glitch in Win64 environment

I have a Java/Swing/Java3D/JOGAMP JOGL/ app where a set of X-Y-Z sliders control the 3D viewer location. It runs well on the MacOS (10.11). However, when run under Windows 10 (64-bit), the 3DCanvas region of the screen is sometimes overwritten…
pbierre
  • 276
  • 1
  • 8
0
votes
0 answers

Off-Screen Canvas3D not updating scene

TL;DR: Drawing Canvas3D off-screen to an image, then drawing the image on the screen. View in example should continously increase its distance to the cube; instead does so only when window gets resized. In the following sample code, the Canvas3D…
Stefan Dimitrov
  • 302
  • 1
  • 14
0
votes
1 answer

How do i translate movement on the Canvas3D to movement in the virtual 3D world

My goal is to move a shape in the virtual world in such a way so that it ends up where the mouse pointer is on the canvas. What i have: -mouse position (x,y) on a Canvas3D object -Point3d object of where a pick ray starting from the Canvas3D…
Coder
  • 1,375
  • 2
  • 20
  • 45
1
2