Search found 702 matches

by Ref
Mon Jul 09, 2012 3:17 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540679

Re: Share a Shader!

Thanks vrid for sobel effect! Made a minor change to effect to avoid white screen of oblivion. Changed color = vec4(0.0); to color = vec4(1.0); Worked. Don't appreciate why first color change was: color += 1. * Texel(tex, tc + vec2(-1./pixel_size.x, -pixel_size.y)); Didn't see to be consisting with ...
by Ref
Sun Jul 08, 2012 11:41 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540679

Re: Share a Shader!

Hi!
Anybody create a Sobel (edge detection) PixelEffect using the kernal:
1 2 1
0 0 0
-1 -2 -1
by Ref
Fri Jul 06, 2012 11:52 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540679

Re: Share a Shader!

Thanks Mandarancio! Hacked together a Love to try out all the parameters. Not that easy to get the right combination so provided a random keyboard parameter selection - I know, no real no logic but at least I gave you a help screen and on-screen parameter setting display. Found adding 'fog' made the...
by Ref
Wed Jul 04, 2012 5:56 pm
Forum: Support and Development
Topic: Line segment intersection
Replies: 1
Views: 1350

Line segment intersection

Had trouble finding exactly what I wanted so re-invented the wheel and now want something better. I wanted a function to return the contact coordinates of a finite length ray with a 2D object (convex or otherwise). Came up with such a function but implimentation pretty clunkey. Had to add a paramete...
by Ref
Sat Jun 09, 2012 1:25 pm
Forum: Support and Development
Topic: How would you make an object move along a drawn path ?
Replies: 5
Views: 4065

Re: How would you make an object move along a drawn path ?

You could create a ring buffer, the size of which (along with the sampling rate) determining the delay between mouse and object movement. Memory useage would be constant and controlable.
by Ref
Fri Jun 08, 2012 1:31 pm
Forum: Libraries and Tools
Topic: Random maze/dungeon generator
Replies: 12
Views: 8710

Re: Random maze/dungeon generator

Wojak, do you have a version that generates a maze?
The script provided generates patterns but not a maze.
There is no path through the generated pattern.
by Ref
Thu Jun 07, 2012 8:59 pm
Forum: Libraries and Tools
Topic: Navi - a message library (6/11 demo)
Replies: 111
Views: 54862

Re: A message system

Sorry that the term 'analyze' didn't convey what I was getting at. Let me just point out that in the function _msg:play there are 13 'end's - so some tests are being performed on each character every frame. Question: Why the special math.round function when math.floor works just fine? (Just curious)...
by Ref
Thu Jun 07, 2012 6:35 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540679

Re: Share a Shader!

Great!
Thanks for completing this.
Learning something with every example.
by Ref
Thu Jun 07, 2012 6:18 pm
Forum: Libraries and Tools
Topic: Navi - a message library (6/11 demo)
Replies: 111
Views: 54862

Re: A message system

Rolling along really fast. litearc's code appears robust and stable. In my brief test (MessageBoxes.love) I added the boolen variable message.completed. Adding a font change ability would be very easy - the adding of another code flag. I appreciate the desire to keep the code at the lowest common de...
by Ref
Mon Jun 04, 2012 3:54 pm
Forum: Games and Creations
Topic: Game: Fruitless
Replies: 32
Views: 19687

Re: Game: Fruitless

Hey!
Great art work!
Is my computer screwed up or are the mouse responses backwards (up/down, left/right)?