Tutorial: Setting up Shaders in LWJGL

Started by ste3e, November 11, 2010, 13:46:47

Previous topic - Next topic

kappa

oh nice, very good tutorial.

Do consider adding it to the LWJGL wiki so it will help others and be easy to find.

spasi

May I ask what's wrong with the shader examples in LWJGL's test package? Do people have trouble finding those or understanding how they work?

kappa

Quote from: spasi on November 11, 2010, 14:48:41
May I ask what's wrong with the shader examples in LWJGL's test package? Do people have trouble finding those or understanding how they work?

Visibility is a definite problem with them, they are tucked away in some source directory that most users wouldn't look in and there isn't much information or links anywhere pointing to them.

Some improvements that could be made to make them more visible is have a working demo at http://lwjgl.org/demos.php which is a good starting place for most newbies. Secondly a simple intro page to the code on the wiki would also help people looking for information on using shaders (even better a little run through on what each part of the code does).

ste3e

I agree with Kappa. I have been looking and asking for any working examples using shaders for several days. I still have no idea where this test suite is and that is after just having searched for it. As for sticking the tutorial on the WIKI, I would if someone would explain what is required.

Matzon

go to http://lwjgl.org/wiki/index.php?title=Main_Page
create an account
"In the search box near the top right of a page, type the title of the new article, then click Go. If the Search page reports "You may create the page" followed by the article name in red, then you can click the red article name to start editing the article."

ste3e

Thanks Matzon. I also posted a tutorial on getting models out of Blender 2.5 and into LWJGL.

Evil-Devil

I dislike external links in the wiki.
I would like to see all tutorial writers to add their complete tutorial inside the wiki with the legal notice of its origin.

@Kappa: We could post the complete examples on the wiki and additional your idea with the demo page for their execution. Guess that would be a good combination. Seeing the example run and looking at the code ;)


//edit: Added the examples (Game and Spaceinvaders) from the source archive as plain sites.
The Copyright notice in the source might need an update ;)

kappa

Quote from: Evil-Devil on November 12, 2010, 12:34:48
I dislike external links in the wiki.
I would like to see all tutorial writers to add their complete tutorial inside the wiki with the legal notice of its origin.
Agreed, would also keep the wiki more consistent and manageable.

@ste3e if you don't mind, I can copy, paste the contents of your articles and format it nicely so it fits into the wiki, of course will keep the article credited to you and link to the originals.

Quote from: Evil-Devil on November 12, 2010, 12:34:48
@Kappa: We could post the complete examples on the wiki and additional your idea with the demo page for their execution. Guess that would be a good combination. Seeing the example run and looking at the code ;)
yeh, the tests for shaders are already in the svn repository, so guess its just a matter of adding the links to the http://lwjgl.org/demos.php page and creating a jnlp file.

ste3e

I did wonder as external links do somewhat defeat the thinking behind wiki. My problem was twofold: the time required to translate what I had done onto the wiki page, specifically given the use I make of images; second, the lack of formatting which leads me to believe I could never make an article I could be happy with. Would it be possible to allow html uploads with external links to images then contributors could simply create an html page and upload the source?

You have my permission to copy/paste. 

Evil-Devil

It is possible to format wiki pages to. Paragraphs, code blocks and images can be placed. Its much simpler than it may look at first.

kappa

Quote from: ste3e on November 12, 2010, 18:17:44
I did wonder as external links do somewhat defeat the thinking behind wiki. My problem was twofold: the time required to translate what I had done onto the wiki page, specifically given the use I make of images; second, the lack of formatting which leads me to believe I could never make an article I could be happy with. Would it be possible to allow html uploads with external links to images then contributors could simply create an html page and upload the source?

You have my permission to copy/paste. 

thx, have added the shader tutorial.

However Blender Tutorial is way too long for me :)