Sample source

Started by bromokun, February 20, 2010, 09:19:40 AM

Previous topic - Next topic

bromokun

 :) Hi all,

I just start learning JPCT from its wiki site ... so when it comes to the tutorial called "Advanced example" I really impress ... the problems is: There is no link there to download the source,

I don't really care much about the 3D objects .. because I can use the one I created ... but when it comes to GLSL files ... I really need it badly ... since I haven't got time to learn more on GL language things (start with JPCT first).

Please anyone who knows where to download "Advanced example" source files, inform me ...

Thanks in advanced guys ... may the force be with u  ;D

.jayderyu

The examples as I understand it are in the wiki itself. You will need to copy and paste into a file as needed.

http://www.jpct.net/wiki/index.php/Advanced_example
http://www.jpct.net/wiki/index.php/Shaders

EgonOlsen

Yes, copy and paste is the way to go here. I didn't provide the sources as additional files, because that would be twice the amount of code to maintain if something changes.

bromokun

 :)

In http://www.jpct.net/wiki/index.php/Advanced_example

there are two lines in the code like:

String fragmentShader = Loader.loadTextFile("example/shader/fragmentshader.glsl");
String vertexShader = Loader.loadTextFile("example/shader/vertexshader.glsl");

Both calling 2 non java files with extension .glsl ... could you please update the content in http://www.jpct.net/wiki/index.php/Advanced_example by adding a cut and paste version of those .glsl files ... thank you vary much in advanced.

Bromo


EgonOlsen

They can be found in the Shaders entry of the wiki (the Advanced example page links to it): http://www.jpct.net/wiki/index.php/Shaders. I've updated that page with references to the actual file names to make it easier to find them. Hope this helps.