Page 1 of 1

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

Posted: Thu 6. Mar 2014, 23:09
by jayjaybillings
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

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

Posted: Fri 7. Mar 2014, 00:34
by Andre
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

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

Posted: Fri 7. Mar 2014, 01:12
by jayjaybillings
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

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

Posted: Sat 8. Mar 2014, 00:39
by jayjaybillings
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

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

Posted: Mon 10. Mar 2014, 21:07
by Andre
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