<?xml version="1.0" encoding="ISO-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Avatar&#039;s Blog - KLJUG</title>
	<link rel="alternate" type="text/html" href="http://avatar21.superihost.com/index.php" />
	<modified>2008-07-04T04:11:03Z</modified>
	<author>
		<name>Avatar Ng</name>
		<email>avatar21@dev.java.net</email>
	</author>
	<copyright>Copyright 2008, Avatar Ng</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.4.5">SPHPBLOG</generator>
	<entry>
		<title>Simulating Cell Shading in Java OpenGL</title>
		<link rel="alternate" type="text/html" href="http://avatar21.superihost.com/index.php?entry=entry080330-201710" />
		<content type="text/html" mode="escaped"><![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
]]></content>
		<id>http://avatar21.superihost.com/index.php?entry=entry080330-201710</id>
		<issued>2008-03-30T00:00:00Z</issued>
		<modified>2008-03-30T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Its time for freedom, give Ubuntu 8.04 a try</title>
		<link rel="alternate" type="text/html" href="http://avatar21.superihost.com/index.php?entry=entry080323-122149" />
		<content type="text/html" mode="escaped"><![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 />]]></content>
		<id>http://avatar21.superihost.com/index.php?entry=entry080323-122149</id>
		<issued>2008-03-23T00:00:00Z</issued>
		<modified>2008-03-23T00:00:00Z</modified>
	</entry>
</feed>
