Search found 141 matches

by STRESS
Fri 7. Aug 2009, 14:48
Forum: Advanced Development
Topic: Resurrect the native SWT codebase?
Replies: 12
Views: 5716

Re: Resurrect the native SWT codebase?

They actually mark where to replace code for the SWT Viewer... It would be great to split the AWT apart from AbstractJoglViewer into AbstractAWTJoglViewer extends AbstractJoglViewer. Then SWT and AWT can have a common base class. I decided to go for a slightly different way I moved all the AWT refe...
by STRESS
Thu 6. Aug 2009, 19:19
Forum: Advanced Development
Topic: Resurrect the native SWT codebase?
Replies: 12
Views: 5716

Re: Resurrect the native SWT codebase?

Hmm jogl.Viewer extends AbstractViewer and AbstractViewer has some stronger ties to AWT objects in general it uses lots of AWT Image objects and events. So coming from that direction will probably not that easy. Yes, AbstractJoglViewer is the right class to start with. I have just looked into the c...
by STRESS
Thu 6. Aug 2009, 17:06
Forum: Advanced Development
Topic: Resurrect the native SWT codebase?
Replies: 12
Views: 5716

Re: Resurrect the native SWT codebase?

Well it is pretty old, but I think it should be possible to get something similar working. No idea how SWT has changed in the meantime... The SWTViewer is more or less a copy of (a very old version of) JoglViewer, using an external GL Context. There is also an example in src-example/de.jreality.exa...
by STRESS
Thu 6. Aug 2009, 15:04
Forum: Advanced Development
Topic: Resurrect the native SWT codebase?
Replies: 12
Views: 5716

Resurrect the native SWT codebase?

I've got a question concerning the SWT directories in the source tree from a quick glance I noticed this looks like a native SWT / JOGL backend but it is not actually build in the normal release I assume that work on it has sort of halted? I am asking because I use jReality in context with an Eclips...
by STRESS
Fri 24. Jul 2009, 12:44
Forum: Programming Help
Topic: Shift key InputSlot behaves strangely under Linux
Replies: 7
Views: 1968

Re: Shift key InputSlot behaves strangely under Linux

Aha, my fault :cry: I edit the wrong toolconfig.xml file (ahh there are so many :shock: ). Now it works when I remove all VirtualDevices
by STRESS
Fri 24. Jul 2009, 12:09
Forum: Programming Help
Topic: Shift key InputSlot behaves strangely under Linux
Replies: 7
Views: 1968

Re: Shift key InputSlot behaves strangely under Linux

Hmm now I managed to reproduce the same behaviour under windows as well. It seems when you first mouse left click or right click and then press shift afterwards it works. However, if you press shift first and then use left or right mouse button it doesn't. Only very rarely it does I guess that's onl...
by STRESS
Thu 23. Jul 2009, 11:02
Forum: Programming Help
Topic: Shift key InputSlot behaves strangely under Linux
Replies: 7
Views: 1968

Re: Shift key InputSlot behaves strangely under Linux

As a starter, remove the Virtual devices that use Secondary, like SecondaryAction etc. These devices consume the corresponding event if they are affected, i.e. when the mouse button is already pressed (as far as i remember). But it is strange that there is such a difference between win and linux. T...
by STRESS
Wed 22. Jul 2009, 18:45
Forum: Programming Help
Topic: Shift key InputSlot behaves strangely under Linux
Replies: 7
Views: 1968

Shift key InputSlot behaves strangely under Linux

I've written a tool that uses the shift key as one of its InputSlot besides mouse left button and mouse position (Devicename "Secondary"). It all works perfectly fine under windows, I'll get the shift key events when I use ToolContext.getAxisState(..).isPressed() however under Linux (RedHat Enterpri...
by STRESS
Mon 20. Jul 2009, 14:16
Forum: Programming Help
Topic: What is the easiest way to stop automatic updates?
Replies: 13
Views: 1740

Re: What is the easiest way to stop automatic updates?

I don't think it's that naive. And you're probably right since display drivers do a lot of internal memory jiggling (moving textures from internal GPU memory to PCI-Express/AGP memory space and even further out especially D3D10 generation cards need to have a full virtual memory manager) so I am pre...
by STRESS
Thu 16. Jul 2009, 16:21
Forum: Programming Help
Topic: What is the easiest way to stop automatic updates?
Replies: 13
Views: 1740

Re: What is the easiest way to stop automatic updates?

Well the only way to be 100% sure is to monitor the graphics card memory. Or maybe have a look with NV PerfHUD and ATI's equivalent performance monitor program. I haven't had a look at these for a very long time.

Unforuntately different platforms might show different behaviours.
by STRESS
Thu 16. Jul 2009, 10:26
Forum: Programming Help
Topic: What is the easiest way to stop automatic updates?
Replies: 13
Views: 1740

Re: What is the easiest way to stop automatic updates?

Hi Gunn and Steffen, I solved the problem for now by changing the code in Texture2DLoaderJOGL.java by adding a ReferenceQueue Hasmap for each GL context private static WeakHashMap<GL, ReferenceQueue<ImageData>> refQueues = new WeakHashMap<GL,ReferenceQueue<ImageData>>(); and then get the correspondi...
by STRESS
Mon 6. Jul 2009, 18:19
Forum: Programming Help
Topic: What is the easiest way to stop automatic updates?
Replies: 13
Views: 1740

Re: What is the easiest way to stop automatic updates?

I like the second idea. It sounds much cleaner to me and you do not endup with strange interdepencies. I try to work around the issue for the moment to make sure I don't delete textures from my other contexts. Maybe by adding multiply ReferenceQueues for each GL context and store them in a seperate ...
by STRESS
Mon 6. Jul 2009, 17:05
Forum: Programming Help
Topic: What is the easiest way to stop automatic updates?
Replies: 13
Views: 1740

Re: What is the easiest way to stop automatic updates?

That solved a lot of problems but not all. Until I spend sometime to deeply investigate why I am loosing textures (either my own ones or generated from labels). And I came across following potential culprit. So I wanted to ask if that design is delibrate since I don't fully understand what's going o...
by STRESS
Thu 2. Jul 2009, 18:50
Forum: Programming Help
Topic: What is the easiest way to stop automatic updates?
Replies: 13
Views: 1740

Re: What is the easiest way to stop automatic updates?

Excellent! I give this a try!
by STRESS
Thu 2. Jul 2009, 17:46
Forum: Bugs
Topic: U3D writer renders lines always as tubes
Replies: 8
Views: 3892

Re: U3D writer renders lines always as tubes

Hello, I started working on various improvements in the U3D Writer. These include: * Colors for vertices, edges and faces. Actually jreality seems to have bugs when handling edge colors, so mabe we will have to fix these first. * Real point and line-sets. Hopefully the Adobe Reader supports them no...