Fixed SWTExample and src-swt but only a black screen shows

General discussion area.
Post Reply
jayjaybillings
Posts: 3
Joined: Thu 6. Mar 2014, 22:56

Fixed SWTExample and src-swt but only a black screen shows

Post by jayjaybillings » Thu 6. Mar 2014, 23:09

Everyone,

I am working on an Eclipse RCP project that does some advanced 3d visualization. Our current solution isn't working so well and I've been looking into JReality today as a possible replacement. I followed the instructions on the wiki to load the source code from git and spent about an hour updating src-swt/SWTViewer.java and src-examples/SWTExample.java to get the example to compile. I was still only able to get a black screen to show after when I ran it. There are no compile errors and there are no runtime errors.

Is the SWTViewer still supported? Is there a tutorial on how to use it somewhere?

I'm happy to share the updated source files.

I really like your product so far and I'm hoping we can get some use out of it! :-)

Thanks for your time,
Jay Jay Billings

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Fixed SWTExample and src-swt but only a black screen sho

Post by Andre » Fri 7. Mar 2014, 00:34

Hi jay jay,

thx for your support and welcome to jReality.

Is it necessary for you to use the SWTViewer or can you use any other Viewer as well?

Our standard viewer is the JRViewer (src-plugin: de.jreality.plugin.JRViewer.class).

In our Wiki you can find the developer tutorials for a deeper introduction in jReality:
http://www3.math.tu-berlin.de/jreality/ ... r_Tutorial

best
Andre

jayjaybillings
Posts: 3
Joined: Thu 6. Mar 2014, 22:56

Re: Fixed SWTExample and src-swt but only a black screen sho

Post by jayjaybillings » Fri 7. Mar 2014, 01:12

Andre,

Thanks for the response!

Yes, it is necessary for us to use the SWTViewer unless we can embed the JRViewer in our application using the SWT_AWT bridge. I'm fine with doing that if it is the only way.

Jay

jayjaybillings
Posts: 3
Joined: Thu 6. Mar 2014, 22:56

Re: Fixed SWTExample and src-swt but only a black screen sho

Post by jayjaybillings » Sat 8. Mar 2014, 00:39

Andre,

Do you know of a good example for embedding JReality into SWT using the SWT_AWT bridge?

I was able to get it to work, but it does not refresh smoothly. I think I am most likely updating the JOGLViewer incorrectly.

Jay

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Fixed SWTExample and src-swt but only a black screen sho

Post by Andre » Mon 10. Mar 2014, 21:07

Hi Jay,

sorry, but I have no experience with swt. I wrote an email to the other developers who have implemented the swt-stuff, but they also denied big experience. So I believe you are on your own... I hope we can help you anyway with some specific questions. It would be nice if you could add a gitclone to gitorious, that we can check and later merge your swt-code to the stable version.

I wish you good progress
Andre

Post Reply