www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: bromokun on February 20, 2010, 09:19:40 am

Title: Sample source
Post by: bromokun on February 20, 2010, 09:19:40 am
 :) 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
Title: Re: Sample source
Post by: .jayderyu on February 20, 2010, 11:53:53 am
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
Title: Re: Sample source
Post by: EgonOlsen on February 20, 2010, 08:14:53 pm
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.
Title: Re: Sample source
Post by: bromokun on February 22, 2010, 11:26:55 am
 :)

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

Title: Re: Sample source
Post by: EgonOlsen on February 22, 2010, 12:40:07 pm
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 (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.