Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Geemili

Pages: [1]
1
Support / Re: Shaders
« on: June 25, 2012, 09:27:28 pm »
Thank you! It works perfectly!  ;D

The only major change that will need to be done is something that does it automatically for each object, which shouldn't be so bad. Thanks again!

2
Support / Re: Shaders
« on: June 25, 2012, 08:08:33 pm »
Sorry, I'm not the best at explaining. Here is a link that should help. You'll have to scroll down a bit though, it's in section 3.4.

3
Support / Shaders
« on: June 25, 2012, 06:34:38 pm »
Hi, this is my first time venturing into 3D and am trying to use shaders. Specifically, outlining and cel-shading. I have made the cel-shading following some tutorials, but cannot figure out the outlining.

I have found two ways of doing outlining, the first is editing the rendered image and applying a sobel filter or another of similar effect. When I tried doing this, I didn't get it to work, but it required me to use FrameBuffer.getPixels(), which seems to be slow. Also, my fault here, I don't understand the images format, at least, not enough to change into a 2d array of colors.

The second way is to first draw a wireframe version of the current object with its front faces culled and the rendering it regularly. This one is supposedly easier, but I don't know where to place the code.

Also, less important (In My Opinion) is how to get the lightVec variable to glsl. I saw it used in the shader example and put:
Code: [Select]
varying vec3 lightVecinto the .glsl, but it did not seem to work.

Thank for reading my post. I am sorry for any ignorance, but I feel impatient to get this done. Ask if you need code.

Pages: [1]