how to run the demos?

30 views
Skip to first unread message

Erwin Coumans

unread,
Oct 13, 2010, 2:39:20 PM10/13/10
to jinngine
I'm not familiar with Java or .jnlp files but want to run the demos.

Is there some standalone demo or webpage to run the demos?
Thanks,
Erwin

mo

unread,
Oct 13, 2010, 4:05:06 PM10/13/10
to jinngine
Hi Erwin :)

I think the easy way is to install Java Runtime Environment, that
should enable you to run the webstart files (.jnlp) by clicking the
demo link/download from the browser. Unfortunately I didn't attempt to
make it run inside an applet, though it should not be hard to do.

http://www.java.com/en/download/index.jsp

The install should be pretty quick.

If you are not happy with that solution, let me know and I
will try and make the demo available in some other way, like an applet
or so. I run Ubuntu, and using OpenJDK. But im not sure if it is
available for windows or Macos.

mo

unread,
Oct 13, 2010, 4:13:54 PM10/13/10
to jinngine
btw, the 0.8 is the one with the NNCG solver.

- Click and drag with the mouse to manipulate objects.
- Hold down space to move objects vertically

Actually, I should put up some more demos really... Also a demo
without deactivation/sleeping would be a nice.

/Morten

Erwin Coumans

unread,
Oct 13, 2010, 5:56:24 PM10/13/10
to jinngine
Hi,

If you could make it a java applet, that would be great.
I rather not install the java sdk/jdk on this machine at work.

If I got the time, I might port the NNCG to C++ for Bullet.
Thanks a lot,
Erwin

mo

unread,
Oct 14, 2010, 5:33:04 PM10/14/10
to jinngine
Hi again

I posted a html file under Downloads, that holds an applet in it. I
managed to make it work on my Ubuntu 10.10, with using the sun/oracle
java plugin (not openJDK, which I could not get working with JOGL).
Anyways, give it a go.

http://code.google.com/p/jinngine/downloads/list

I tried it on a single Windows7 machine, and it worked in chrome.
Although it ran way too fast, because (i think) vsync was not enabled
in the driver on that machine.

/mo :)

Dirk Gregorius

unread,
Oct 15, 2010, 4:49:43 AM10/15/10
to jinn...@googlegroups.com
I tried the applet and it crashes on my computer under Windows7 64Bit
Professional and Firefox. And don't get a decent error message that I
could post.

Cheers,
-Dirk

Morten Silcowitz

unread,
Oct 15, 2010, 6:21:29 AM10/15/10
to jinn...@googlegroups.com
Yeah, applets are pretty hard getting to work with OpenGL
extensions... or alternatively, I just suck at getting it to work :)

I found myself a winows machine, that I'll try it on now. I'll also
make a new webstart demo that is equivalent to the content of the
applet.

I had good experience with java webstart, as it seems to work in most
places/OS, so I would recommend using that way. Installing a JRE is
easy, and it should be easy to uninstall again.

Dirk Gregorius

unread,
Oct 15, 2010, 6:23:22 AM10/15/10
to jinn...@googlegroups.com
I tried the webstart demo too and it crashed as well. If you have a
new applet/webstart feel free to send it to me for testing.

Cheers,
-Dirk

Morten Silcowitz

unread,
Oct 15, 2010, 7:06:07 AM10/15/10
to jinn...@googlegroups.com
Weird, I just cant get it to fail on windows. I ran the applet in both
Chrome, IE, and Firefox. I attached a screenshot with some specs on
the Windows os.

Dirk, could your java plugin version be needing an update?

windows.png

Dirk Gregorius

unread,
Oct 15, 2010, 7:18:34 AM10/15/10
to jinn...@googlegroups.com
The Java plugin is up to date. It might be the 64bit - maybe. I check
on my laptop later this afternoon.

Thanks for the effort,
-Dirk

mo

unread,
Oct 18, 2010, 6:04:04 AM10/18/10
to jinngine
FYI, I added a webstart version of the applet demo under Downloads.

http://code.google.com/p/jinngine/downloads/list

Hope you can run it. As another option, I can attempt to creat a stand-
alone executable for windows, that has the JRE and everything within
it. I just have to check up on how that is done. Its a shame that all
this trouble actually comes from the visualization part, runing opengl
in java etc. Jinngine itself should run easily on any jvm (1.6+)


On Oct 15, 1:18 pm, Dirk Gregorius <d...@dirkgregorius.de> wrote:
>   The Java plugin is up to date. It might be the 64bit - maybe. I check
> on my laptop later this afternoon.
>
> Thanks for the effort,
> -Dirk
>
> Am 15.10.2010 13:06, schrieb Morten Silcowitz:
>
>
>
>
>
>
>
> > Weird, I just cant get it to fail on windows. I ran the applet in both
> > Chrome, IE, and Firefox. I attached a screenshot with some specs on
> > the Windows os.
>
> > Dirk, could your java plugin version be needing an update?
>
> > On Fri, Oct 15, 2010 at 12:23 PM, Dirk Gregorius<d...@dirkgregorius.de>  wrote:
> >>   I tried the webstart demo too and it crashed as well. If you have a new
> >> applet/webstart feel free to send it to me for testing.
>
> >> Cheers,
> >> -Dirk
>
> >> Am 15.10.2010 12:21, schrieb Morten Silcowitz:
> >>> Yeah, applets are pretty hard getting to work with OpenGL
> >>> extensions...  or alternatively, I just suck at getting it to work :)
>
> >>> I found myself a winows machine, that I'll try it on now. I'll also
> >>> make a new webstart demo that is equivalent to the content of the
> >>> applet.
>
> >>> I had good experience with java webstart, as it seems to work in most
> >>> places/OS, so I would recommend using that way. Installing a JRE is
> >>> easy, and it should be easy to uninstall again.
>
> >>> On Fri, Oct 15, 2010 at 10:49 AM, Dirk Gregorius<d...@dirkgregorius.de>

Dirk Gregorius

unread,
Oct 18, 2010, 6:12:33 AM10/18/10
to jinn...@googlegroups.com
Thanks! It is still not running, but I get an error message now. It
says that some cache needs to
be enabled for nativelib. Ideas?

-Dirk

Morten Silcowitz

unread,
Oct 18, 2010, 7:08:07 AM10/18/10
to jinn...@googlegroups.com
Yes I have seen that error, it happened when I tried to turn of
caching in the java-plugin control panel. I've spend 3 seconds making
this screenshot where the setting is found in Ubuntu. Should be almost
the same on windows.

I think this setting is normally on by default.

enable_java_webstar_cache.png

Dirk Gregorius

unread,
Oct 18, 2010, 7:51:40 AM10/18/10
to jinn...@googlegroups.com
Ok, works :). Thanks for the help.

The demo looks great! Though I notice some jittering before deactivation
and the capsule makes some strange changes in the the direction it is
moving. Something like a wrong normal or so.

-Dirk

Morten Silcowitz

unread,
Oct 18, 2010, 9:06:06 AM10/18/10
to jinn...@googlegroups.com
Thanks!

I think i can recognize something in your description, might be v-sync
that is missing? When I been running the demo on a machine where (for
some reason) v-sync is not enabled , then the demo just runs full
speed, and time is the stretched abruptly depending on the time it
takes to calculate a single frame. This produces an effect that sounds
similar to what you describe.

Guess I was under some naive impression that v-sync was becoming
standard everywhere these days. I noticed this problem on a windows
machine with an ATI card. I should update the demos to not rely so
heavily on vsync, and ensure a fixed framerate by other means.

Do you think v-sync / lack of fixed framerate could be the problem?

Dirk Gregorius

unread,
Oct 18, 2010, 10:29:31 AM10/18/10
to jinn...@googlegroups.com
I rely on v-sync myself in my demos so it is active. But you are right
the demo look a little fast. Maybe it is related to Java and OpenGL.

mo

unread,
Oct 18, 2010, 2:39:37 PM10/18/10
to jinngine
Dirk, is your demos available somewhere online?

On Oct 18, 4:29 pm, Dirk Gregorius <d...@dirkgregorius.de> wrote:
>   I rely on v-sync myself in my demos so it is active. But you are right
> the demo look a little fast. Maybe it is related to Java and OpenGL.
>
> Am 18.10.2010 15:06, schrieb Morten Silcowitz:
>
>
>
>
>
>
>
> > Thanks!
>
> > I think i can recognize something in your description, might be v-sync
> > that is missing? When I been running the demo on a machine where (for
> > some reason) v-sync is not enabled , then the demo just runs full
> > speed, and time is the stretched abruptly depending on the time it
> > takes to calculate a single frame. This produces an effect that sounds
> > similar to what you describe.
>
> > Guess I was under some naive impression that v-sync was becoming
> > standard everywhere these days.  I noticed this problem on a windows
> > machine with an ATI  card. I should update the demos to not rely so
> > heavily on vsync, and ensure a fixed framerate by other means.
>
> > Do you think v-sync / lack of fixed framerate could be the problem?
>
> > On Mon, Oct 18, 2010 at 1:51 PM, Dirk Gregorius<d...@dirkgregorius.de>  wrote:
> >>   Ok, works :). Thanks for the help.
>
> >> The demo looks great! Though I notice some jittering before deactivation and
> >> the capsule makes some strange changes in the the direction it is moving.
> >> Something like a wrong normal or so.
>
> >> -Dirk
>
> >> Am 18.10.2010 13:08, schrieb Morten Silcowitz:
> >>> Yes I have seen that error, it happened when I tried to turn of
> >>> caching in the java-plugin control panel. I've spend 3 seconds making
> >>> this screenshot where the setting is found in Ubuntu. Should be almost
> >>> the same on windows.
>
> >>> I think this setting is normally on by default.
>
> >>> On Mon, Oct 18, 2010 at 12:12 PM, Dirk Gregorius<d...@dirkgregorius.de>

Dirk Gregorius

unread,
Oct 18, 2010, 3:21:16 PM10/18/10
to jinn...@googlegroups.com
Nope, but I did send you some demos iirc. Anyway, drop me a mail I
send again. I have a bunch of demo scenes and a comparison framework
between Havok, PhysX, Bullet and my stuff.

Cheers,
-Dirk

Erwin Coumans

unread,
Nov 11, 2010, 7:05:04 PM11/11/10
to jinngine

Thanks a lot for the work.
Downloading and clicking on the local html page works for me under
Windows 7, 64bit:

http://code.google.com/p/jinngine/downloads/detail?name=jinngine.applet.0.8.html&can=2&q=

Are there some options to change scenes?
It would be nice to add some stacking demos, because the current demo
doesn't look 'impressive' :-)
Thanks,
Erwin

mo

unread,
Nov 13, 2010, 8:53:37 AM11/13/10
to jinngine
Good that it works :)

No there isn't any other scene in the applet.. I'll add some more and
post here when they are ready.


On Nov 12, 1:05 am, Erwin Coumans <erwin.coum...@gmail.com> wrote:
> Thanks a lot for the work.
> Downloading and clicking on the local html page works for me under
> Windows 7, 64bit:
>
> http://code.google.com/p/jinngine/downloads/detail?name=jinngine.appl...
Reply all
Reply to author
Forward
0 new messages