pouët.net

java demo coding

category: code [glöplog]
Hi all

There are demo done with java on the famous pouet.net. I am going to familiarize myself with java demo coding. I have few questions:

- What is the best IDE environment for java democoding?
- What libraries are the best option for java democoding?
- What is the best java demo ever?

Any links will be appreciated.

Thanks in advance
I think "java democoding" these days is pretty much synonymous with Android demo coding. Java on consumer Desktops is deserted territory (Minecraft and crappy Enterprise/tax client stuff being the oasis :P).
added on the 2015-03-21 17:24:31 by tomaes tomaes
I guess Pandur might be the right person to answer this.
added on the 2015-03-21 17:34:35 by Gargaj Gargaj
tomaes: depends. our kwl android demos are still C/C++ with a java wrapper to get it to run as an apk :)

so yeah, depends on the platform you wanna target. we did it for 'consumer desktops' and had our demos running on windows and linux, but that was 13 years ago so i assume portability and things only got better since :P
Some of the better: http://www.pouet.net/groups.php?which=235

Personally I looked into java about 10 years ago, but then I decided to go have a cold instead.

Today I'm still convinced I chose the right thing :)
added on the 2015-03-21 19:41:52 by maytz maytz
Maali: I said Java demo development (the little there is) is synonymous with Android demo dev, not that Adroid demo dev is synonymous with Java demo dev. ;) Still, good point about the increasing variety of options on Android. The compo winner at NV scene was made in UNO, f.e.

As for "best" Java demos; From the time-frame of Java's heyday as the new kid on the block, I'd say the old Komplex demos (godog, forward) are still enjoyable. Those likely only work on Microsoft's old JVM and some old Sun implementations, though. Prepare to install some deprecated stuff. Among the newer ones, I'd suggest whatever Holon put out.
added on the 2015-03-21 21:08:23 by tomaes tomaes
and bohemiq! if you like to see all mistakes i made and software rendering ;)
Komplex demos need you to pass -Xverify:none parameter to Java VM, but with that added, they run with current Java VMs. Sorry, we didn't see this forthcoming in 1998.
added on the 2015-03-22 11:06:57 by jmagic jmagic
Processing will let you skip a lot of the painful parts. Many people use it for prototyping / converters etc. but apparently not so much for the final product.
added on the 2015-03-22 11:08:20 by Marq Marq
Quote:
Komplex demos need you to pass -Xverify:none parameter to Java VM, but with that added, they run with current Java VMs.

IIRC, that often didn't work. Best way on Windows was old MS JVM + jview. All the white-listing and warning-away-clicking didn't work in the browser (not even IE) either.

Quote:
Processing will let you skip a lot of the painful parts. Many people use it for prototyping / converters etc. but apparently not so much for the final product.

'cause Processing kind of sucks and is rather limited. :) Also not really intended for fullscreen applications. And crap breaks from version to version. And the js export is a dice roll.
added on the 2015-03-22 11:55:22 by tomaes tomaes
The Bohemiq demos also run on current JVMs, but you have to loosen the security settings, eg adding the domain of the hosting server to the security exception list.
added on the 2015-03-22 12:40:29 by Scali Scali
I made an unfinished and buggy Java demo: The non-stop Alaska experience. I also (happily) use Java professionally for interactive media installations.

The development tools I use are IntelliJ IDEA and Maven.

I use JogAmp for OpenGL and OpenAL bindings. On top of these bindings I have developed a number of libraries for drawing and animation.

Processing is a great tool for prototyping and teaching, but like tomaes said it comes with limitations that make it less suited for anything that is not a sketch.
added on the 2015-03-22 12:54:28 by bruce bruce
Quote:

- What is the best IDE environment for java democoding?


There is no such thing. I have used IntelliJ, Eclipse and NetBeans. My favourite is Eclipse, but it does not means two others are bad. NetBeans looks more stable for me and IntelliJ has much less automatism (I mean does not want to read your mind.) Just choose one, even if it's not perfect. If you hate using it, choose another one.
added on the 2015-03-22 13:19:22 by Travis Travis
I code for a bunch of languages and platforms, one of them is Java.

I use Eclipse, it is a nice enviroment, it also makes Android development easy.

Library I used with our java demo was LibGDX but I only mainly used it for importing 3d models. Otherwise LibGDX is a bit limited for coding demos but it is a decent opinion if you don't have the time to implement your own OpenGL engine.
added on the 2015-03-22 16:40:48 by MuffinHop MuffinHop
tomaes, forward and godog work with current Oracle Java versions. dozen etc (OpenGL stuff) aren't pure java, they do require the msjvm.
added on the 2015-03-22 18:31:34 by jmagic jmagic
jmagic, not quite. :)
added on the 2015-03-22 19:10:47 by tomaes tomaes
Ok, so it looks Oracle has broken sun.audio and I don't think we have released any newer audio drivers.

To disable audio:

java -Xmx99m -Xverify:none godog nosound 1

60fps random layers don't look good :(
added on the 2015-03-24 21:32:50 by jmagic jmagic
hi littlejerome1,

maybe this information outdated, but anyway:

lwjgl is a nice proven library, e.g. minecraft uses it
lwjgl is (or one part is) "just" an opengl binding, that makes it pretty easy to port c/c++ code to java.

jogl is also a nice native opengl binding.

also there is processing, a bit "higher level", if you don't want to learn opengl, which you shoud, but i never used much for anything.

ide: eclipse or intellij should be fine

downsides:

- jvm compatibility: my java demos are not runnable on 64bit jvm systems, because lwjgl (at that time) had only 32bit jni bindings, which will not run on current jvms. (yes i could update them to newest libs...)

- oracle is a shitty asshole company, bundles crap and spam software with their jvm. what else will they do with your system ?
i always hoped for an alternative jvm which can be nicely bundeld, but no idea if this exists today

- java on the desktop is dead i guess, android may be a better choice.

- be prepared to enter a demo at a demoparty and realize that the system timer runs as twice as fast on those crazy new dual core processors... :)

in the end i switched back to c++ for demomaking, but still enjoy serverside java for work ;)

well, good luck!
added on the 2015-03-24 23:52:44 by pandur pandur
@tomaes: modern versions of processing handle fullscreen without any problems. As to limitations, you can just use pure OpenGL if you want. That's about as unlimited as it gets.
added on the 2015-03-26 12:30:04 by visy visy
@littlejerome1

Well, I wouldn' t recommend Java for real time demo coding.
From my professional experience, Java is not even up to GUI applications, where the GUI has to be updated according to strict time requirements.
Just my opinion.
added on the 2015-03-26 16:17:14 by AlienTech AlienTech
Quote:
From my professional experience, Java is not even up to GUI applications, where the GUI has to be updated according to strict time requirements.


A platform that is allegedly not capable of a certain feat. The classic recipe for demo effects!
added on the 2015-03-26 16:35:44 by Scali Scali
@Scali

In that sense I agree, but overall C / C++ / Assembly are the best choice.
But of course language is just a tool.
Just my 1 cent.
added on the 2015-03-26 17:06:24 by AlienTech AlienTech
ITT: people that think of Java in 1998 terms
added on the 2015-03-26 17:41:46 by visy visy

login