Login  Register

Re: Independent Textures...

Posted by ThomasR on Mar 27, 2018; 9:57pm
URL: https://forum.jogamp.org/Independent-Textures-tp4038596p4038765.html

Hi,

This thread should probably be renamed "How to have independent JFrames or JInternalFrame". I've attached SSCCE based on Jogamp's Ardor3D example code:

MultiJFrameTest.java
JDesktopTest.java
RotatingCube.java
MyThread.java
MyScene.java

Separate JFrames (MultiJFrameTest) or using JDesktopPane (JDesktopTest) exhibits the problem. The former can be
made to work with a strange hack: the top level Scene needs to have something added to it.

I'm trying to use Jogamp Ardor3D for a workflow that allows users to add new scene elements (or delete them) in one or more frames that won't necessarily be created at the same time after the master FrameHandler and Runner thread have been started.

Does the hack offer a clue how to fix the problem, or perhaps a reliable workaround. The hack is I just put a tiny cube in the top  level scene before canvas is initialized. (It's like it can't be empty or something). My concern is that these hacks often don't work in general, or mysteriously stop working where they had before.

Jogamp Ardor3D is really going to be great step forward for us. You mentioned in this thread a couple of tricks, what kind of development commitment am I looking at to make this work?

Tom