Search found 690 matches

by Ref
Mon May 21, 2012 3:37 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 164195

Re: Share a Shader!

Still trying to figure out PixelEffect. Got a morphing effect to almost work. morph = gr.newPixelEffect [[ extern float tran; vec4 effect(vec4 color, Image texture, vec2 tc, vec2 pc ) { vec4 pixel = Texel( texture, tc ); {pixel.r = tran*pixel.r;} {pixel.g = tran*pixel.g;} {pixel.b = tran*pixel.b;} {...
by Ref
Sat May 12, 2012 3:13 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 164195

Re: Share a Shader!

Guess I didn't really appreciate how setPixelEffect works.
Ran into another gotchU.
Coordinate system (y axis) appears to be inverted when effect is applied to an 'image' rather than to a 'canvas'.
Such is life.
Have to do some more reading.
by Ref
Sat May 12, 2012 1:22 pm
Forum: Support and Development
Topic: Attempt to index local 'self' (a nil value)
Replies: 6
Views: 3560

Re: Attempt to index local 'self' (a nil value)

Not sure what's the issue is here. local gui = {} function gui:load() self.__checkboxes = {} self.__labels = {} self.__buttons = {} self.__drawables = {'checkboxes', 'labels', 'buttons'} self.__clickables = {'checkboxes', 'buttons'} end function gui:erase() self:load() end gui:erase() print(gui.__dr...
by Ref
Wed May 09, 2012 7:36 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 164195

Re: Share a Shader!

If nothing else, persistent.
Another shader.
One thing you can say about shaders is they are counter-intuitive.
Have to reverse your logic.
Think this shader is for a glass ball but (as dumb as it might seem) not sure what a glass ball should look like.
Appreciate feedback.
Best,
by Ref
Wed May 09, 2012 12:52 am
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 164195

Re: Share a Shader!

A simple shader.
Image just a place holder.
Would like a transparent ball shader.
Anyone have one?
by Ref
Tue May 08, 2012 2:43 am
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 164195

Re: Share a Shader!

Thank you vrid.
Should have found this info on the WIKI but still quite new here.
Best
by Ref
Mon May 07, 2012 3:17 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 164195

Re: Share a Shader!

Thanks bartbes. Appears I was just screwing up some of the syntax. Have to do some more thinking as to how to avoid the conditionals. Tried using sequential application of shaders but got different results then with conditionals. Dumb question - where is a source for functions available in GSGL lang...
by Ref
Sun May 06, 2012 8:20 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 164195

Re: Share a Shader!

Quick question on conditional statements in GLSL.
How do you put multiple conditions in a single 'if' statement (not familiar with C++).
Can get nested ifs to work but not multi-conditional (see attachment).
by Ref
Thu May 03, 2012 2:12 pm
Forum: General
Topic: Compo: 8 second demo for Love 0.8!
Replies: 32
Views: 10397

Re: Compo: 8 second demo for Love 0.8!

Bacon_on_Web.love Thanks Robin! Please find attached my first experimental post (actuall second) of my first Love script. I think that it fits in with the 8 second requirement in that it will take about 8 seconds for someone to find something wrong but that is how one learns. It's just a cobbed tog...
by Ref
Wed May 02, 2012 11:31 pm
Forum: General
Topic: Compo: 8 second demo for Love 0.8!
Replies: 32
Views: 10397

Re: Compo: 8 second demo for Love 0.8!

Would like to post a Love file but am really green and haven't figured out how to attach a file.
Help would be appreciated.