|
Site Search Couldn't find what you need? Search it right here. |
Subscribtion
Virtual Group
|
What is this? KL Java User Group (KLJUG) is a local Java community and bulletin board. You can join the group to know more happenings about KLJUG, Malaysia!
|
| Java Today
pick a channel to read: KLJUG Articles | java.net News | java.net Articles | java.net Forum | Java Communications Features | Java User Groups | SDN PodCast
no news selected.
|
Simulating "Cell-Shading" in Java OpenGL
Talking about cell shading technique, 1st example in my mind is XIII (the pioneer 1st-person shooter who embedded this 3D technique in their game). Ever since then, cell-shading been over used in the new game titles. :P
Example of a 3D-skeleton using cell-shading technique ... (thick outline, cartoonish shading)
OK, so much of the idea ... thinking of simulating the same technique here in JOGL (OpenGL API for Java).
For this simple tutorial, instead of creating my own ... I borrowed this brilliant work from Nehe tutorial.
Grab a copy of this and download the JOGL latest release.
The good news is, I have compile it and successfully run it on my machine ... so just grab my working copy.
Copy all the "*.jar" files from the JOGL release folder to lib folder of "jogl_cellShading". Copy all the "*.dll" (for Windows) OR "*.so" (for Linux) files to "java.library.path".
If you are unsure where is your "java.library.path" pointing to ... uncomment following line in "../jogl_cellShading/src/Lesson37.java" to print it out.
//System.out.println("DEBUG =" + System.getProperty("java.library.path"));
sh> cd /home/root/docs/jogl_cellShading <return>
- download Java (if you not having it yet)
- download Apache ANT.
2. just run following in your "shell"(Linux/*nix evironment)
sh> ant run <return>
C:\> ant run <return>
Then you'll get the beautifully rendered model in cell-shading technique.
Good Luck,
Avatar Ng
[ add comment ] | [ 0 trackbacks ] | permalink |




( 3 / 510 )Ubuntu is going to release thier new OS release 8.04 in the near 1 month (by the time I wrote this),
following were some quick facts about it:
- Xorg 7.3 (means easier multimedia configuration)
- Linux kernel 2.6.24 (OS core component, more h/w support ...)
- GNOME 2.22 (polished gui for the new OS release)
- PolicyKit (finally security comes with simplicity)
- PulseAudio (generic audio support ...)
- Firefox 3 Beta 4 (more ... polished,secured,speed,user friendly)
- Transmission (new BT client)
- Vinagre (new VNC client)
- Brasero (new burning s/w pre-installed, ***windows do not have this)
- World Clock Applet (show you international time, customizable ... ***windows still doesn't make this right)
- Inkscape (native pdf support builded with the OS, ***windows didn't do this)
- Virtualization (totally new virtual machine manager, ***windows didn't have this)
- ActiveDirectory integration (for "active directory" config relief for most company)
- iSCSI support (like it says ... iSCSI)
- Firewall (firewall with simplicity)
- Memory Protection (windows should learn from them, coz MS rootkit protection SUCKs)
- Wubi (now you can install Ubuntu in your Windows like a program ~~~ :D )
- umenu (a shortcut menu that runs once the CD was insert, just follow the screen)
Personally tried it out a little, a plus sign overall ... with some few minor bugs (in 8.04 alpha 3).
If things will sorted out in the real release, this is going to be great OS.
Those crazy people wrote a 4 GB (or more) piece of GIGANTIC OS which only looks nice ...
and asking you to pay more ... not only the s/w but the h/w as well.
Didn't you realised that after all these years, actually your PC never speed up at all
after you upgrade or even change a new one? Why?
Shouldn't the modern OS be more code effective after all these years?
Belive me that you could be more productive on Ubuntu :) ... strongly recommend to give it a try.
reference:
http://www.ubuntu.com/testing/hardy/beta
remarks:
- Ubuntu and Canonical are registered trademarks of Canonical Ltd.
- Microsoft and Windows are trademarks of Microsoft Corporation
by Avatar Ng
[ add comment ] | [ 0 trackbacks ] | permalink |




( 2.9 / 538 )Next
Start learning Java by picking some book(s) to read.
|
TIP Surfing the net never been faster and safer with Firefox. Check out the new Firefox! uncountable downloads. |
|
Site Search Couldn't find what you need? Search it right here. |
|
Sponsored Links |









