[SOLVED] How to do this visual effect?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
spectralcanine
Citizen
Posts: 65
Joined: Sat Dec 22, 2012 8:17 am

Re: [SOLVED] How to do this visual effect?

Post by spectralcanine »

You are running three texture fetches for the same coordinate, that's not very ideal.

Code: Select all

texture2D(tex0,uv).xyz // or .rgb, whatever you fancy
User avatar
XHH
Citizen
Posts: 85
Joined: Thu Jun 20, 2013 6:43 pm
Location: US
Contact:

Re: [SOLVED] How to do this visual effect?

Post by XHH »

How do I make only one ripple appear?
I like to draw and program :)
User avatar
retrotails
Party member
Posts: 212
Joined: Wed Apr 18, 2012 12:37 am

Re: [SOLVED] How to do this visual effect?

Post by retrotails »

XHH wrote:How do I make only one ripple appear?
Attachments
warp.love
(773.55 KiB) Downloaded 171 times
User avatar
XHH
Citizen
Posts: 85
Joined: Thu Jun 20, 2013 6:43 pm
Location: US
Contact:

Re: [SOLVED] How to do this visual effect?

Post by XHH »

retrotails wrote:
XHH wrote:How do I make only one ripple appear?
I löve you
I like to draw and program :)
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: [SOLVED] How to do this visual effect?

Post by Jeeper »

retrotails wrote:
XHH wrote:How do I make only one ripple appear?
Hey there, could you please tell me how to move where the center of the ripple appears? Been trying to figure it out for a while but Shaders sure are difficult :).
User avatar
XHH
Citizen
Posts: 85
Joined: Thu Jun 20, 2013 6:43 pm
Location: US
Contact:

Re: [SOLVED] How to do this visual effect?

Post by XHH »

Jeeper wrote: Hey there, could you please tell me how to move where the center of the ripple appears? Been trying to figure it out for a while but Shaders sure are difficult :).
I've been playing around with it and can't quite seem to figure this out too. retrotails we need halp pls!
And is it possible to do multiple waves at the same time?

Also, where did you start out when learning how to use shaders?
I like to draw and program :)
User avatar
retrotails
Party member
Posts: 212
Joined: Wed Apr 18, 2012 12:37 am

Re: [SOLVED] How to do this visual effect?

Post by retrotails »

XHH wrote: I've been playing around with it and can't quite seem to figure this out too. retrotails we need halp pls!
And is it possible to do multiple waves at the same time?

Also, where did you start out when learning how to use shaders?
Look at what's changed, it's pretty simple. As for multiple waves, that requires multiple passes, and my implementation of that seems rather glitchy. Perhaps someone with more shader/love experience can help on that.
As for using shaders, I started a few months ago with absolutely zero C knowledge (a prerequisite, so they say) having only coded in Lua and Visual Basic. I just took some examples and modified them. Then I went crazy making all the shaders I could for this game
viewtopic.php?f=5&t=15765
I stopped working on it because of a lack of community interest and also I never kept track of it's really complicated render pipeline.
Attachments
warp.love
(773.7 KiB) Downloaded 159 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests