<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
	<channel>
		<title>Avatar&#039;s Blog - KLJUG</title>
		<link>http://avatar21.superihost.com/index.php</link>
		<description><![CDATA[Powered By Simple PHP Blog  :  Java is a copyright of Sun Microsystem.  :  Hosted by &quot;100 Web Space&quot;]]></description>
		<image>
			<url>http://avatar21.superihost.com/interface/feed.png</url>
			<link>http://avatar21.superihost.com/index.php</link>
			<title>Avatar&#039;s Blog - KLJUG</title>
			<description><![CDATA[Avatar&#039;s Blog - KLJUG]]></description>
		</image>
		<copyright>Copyright 2008, Avatar Ng</copyright>
		<managingEditor>avatar21@dev.java.net (Avatar Ng)</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.4.5</generator>
		<item>
			<title>Simulating Cell Shading in Java OpenGL</title>
			<link>http://avatar21.superihost.com/index.php?entry=entry080330-201710</link>
			<description><![CDATA[
<style type="text/css">
.Shell{
border: 5px solid #000000;
background-color: #000000;
color: #ffffff;
font-family: courier;
font-size: 10pt;
width: 400px;
margin: 5px;
overflow: auto;
}

.Java{
border: 1px solid #000000;
background-color: #ffffff;
color: #0000ff;
font-family: courier;
font-size: 10pt;
width: 400px;
margin: 5px;
overflow: auto;
}
</style>
<h3>Simulating "Cell-Shading" in Java OpenGL</h3>
<p>
Talking about cell shading technique, 1st example in my mind is <a href="http://en.wikipedia.org/wiki/XIII_(video_game)">XIII</a> (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</p>

<p>Example of a 3D-skeleton using cell-shading technique ... (thick outline, cartoonish shading)</p>
<br/>
<img src="http://avatar21.superihost.com/images/3dskeleton.png" border="2px"/>
<br/>
<p>OK, so much of the idea ... thinking of simulating the same technique here in JOGL (OpenGL API for Java).</p>

<p>For this simple tutorial, instead of creating my own ... I borrowed this brilliant work from <a href="http://nehe.gamedev.net/data/lessons/jogl/lesson37.jar">Nehe tutorial</a>.</p>

<p>Grab a copy of this and download the <a href="https://jogl.dev.java.net/">JOGL latest release</a>.</p>

<p>The good news is, I have compile it and successfully run it on my machine ... so just grab my <a href="http://avatar21.superihost.com/samples/jogl_cellShading.tar.gz">working copy</a>.</p>
<p>Copy all the "*.jar" files from the JOGL release folder to lib folder of "jogl_cellShading".
 Copy all the <b>"*.dll"</b> (for Windows) OR <b>"*.so"</b> (for Linux) files to <b>"java.library.path"</b>.</p>
<p>If you are unsure where is your <b>"java.library.path"</b> pointing to ... uncomment following line in <b>"../jogl_cellShading/src/Lesson37.java"</b> to print it out.
<p>
<code class="Java">
//System.out.println("DEBUG =" + System.getProperty("java.library.path"));
</code>
</p>
Unachieve it, go in the directory, example ...<br/>
<p>
<code class="Shell">
sh> cd /home/root/docs/jogl_cellShading &lt;return&gt;
</code>
</p>
1. you need to install Java & ANT to continue with this ...<br/>
- download <a href="http://java.sun.com/javase/downloads/index.jsp">Java</a> (if you not having it yet)<br/>
- download <a href="http://ant.apache.org/">Apache ANT</a>.<br/>
2. just run following in your "shell"(Linux/*nix evironment) <br/>
<p>
<code class="Shell">
sh> ant run &lt;return&gt;
</code>
</p>
  or "command prompt"(DOS/ Windows environment).<br/>
<p>
<code class="Shell">
C:\> ant run &lt;return&gt;
</code>
</p>
<p>Then you'll get the beautifully rendered model in cell-shading technique. </p>
<br/>
<br/>
Good Luck,<br/>
Avatar Ng
]]></description>
			<category>Coding, Java, J2SE</category>
			<guid isPermaLink="true">http://avatar21.superihost.com/?entry=entry080330-201710</guid>
			<author>avatar21@dev.java.net</author>
			<pubDate>Sun, 30 Mar 2008 17:17:10 GMT</pubDate>
			<comments>http://avatar21.superihost.com/comments.php?y=08&amp;m=03&amp;entry=entry080330-201710</comments>
		</item>
		<item>
			<title>Its time for freedom, give Ubuntu 8.04 a try</title>
			<link>http://avatar21.superihost.com/index.php?entry=entry080323-122149</link>
			<description><![CDATA[<img src="http://avatar21.superihost.com/images/ubuntulogo.png" width=202 height=55 border=0 alt=''><br /><br />Ubuntu is going to release thier new OS release 8.04 in the near 1 month (by the time I wrote this),<br />following were some quick facts about it:<br /><br />- Xorg 7.3 (means easier multimedia configuration)<br />- Linux kernel 2.6.24 (OS core component, more h/w support ...)<br />- GNOME 2.22 (polished gui for the new OS release)<br />- PolicyKit (finally security comes with simplicity)<br />- PulseAudio (generic audio support ...)<br />- Firefox 3 Beta 4 (more ... polished,secured,speed,user friendly)<br />- Transmission (new BT client)<br />- Vinagre (new VNC client)<br />- Brasero (new burning s/w pre-installed, ***windows do not have this)<br />- World Clock Applet (show you international time, customizable ... ***windows still doesn&#039;t make this right)<br />- Inkscape (native pdf support builded with the OS, ***windows didn&#039;t do this)<br />- Virtualization (totally new virtual machine manager, ***windows didn&#039;t have this)<br />- ActiveDirectory integration (for &quot;active directory&quot; config relief for most company)<br />- iSCSI support (like it says ... iSCSI)<br />- Firewall (firewall with simplicity)<br />- Memory Protection (windows should learn from them, coz MS rootkit protection SUCKs)<br />- Wubi (now you can install Ubuntu in your Windows like a program ~~~ :D )<br />- umenu (a shortcut menu that runs once the CD was insert, just follow the screen)<br /><br />Personally tried it out a little, a plus sign overall ... with some few minor bugs (in 8.04 alpha 3).<br />If things will sorted out in the real release, this is going to be great OS.<br /><br />Those crazy people wrote a 4 GB (or more) piece of GIGANTIC OS which only looks nice ... <br />and asking you to pay more ... not only the s/w but the h/w as well.<br /> <br />Didn&#039;t you realised that after all these years, actually your PC never speed up at all <br />after you upgrade or even change a new one? Why? <br />Shouldn&#039;t the modern OS be more code effective after all these years?<br /><br />Belive me that you could be more productive on Ubuntu :) ... strongly recommend to give it a try.<br /><br />reference:<br />http://www.ubuntu.com/testing/hardy/beta<br /><br />remarks:<br />- Ubuntu and Canonical are registered trademarks of Canonical Ltd.<br />- Microsoft and Windows are trademarks of Microsoft Corporation<br /><br />by Avatar Ng<br />]]></description>
			<category>News</category>
			<guid isPermaLink="true">http://avatar21.superihost.com/?entry=entry080323-122149</guid>
			<author>avatar21@dev.java.net</author>
			<pubDate>Sun, 23 Mar 2008 10:21:49 GMT</pubDate>
			<comments>http://avatar21.superihost.com/comments.php?y=08&amp;m=03&amp;entry=entry080323-122149</comments>
		</item>
	</channel>
</rss>
