Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Heat Effect?
Started by dylestorm Mar 12 2015 06:38 PM

13 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

dylestorm

[GLOBAL: userInfoPane.html]
dylestorm
  • Enthusiast

  • 56 posts
  • Corona SDK

Hey guys,

 

Is it possible for Corona SDK to do effects like these? Something to show heat or how hot the place is. 

 

Here's an example of the effect I was talking about (you can see it at the very starting). It's a gameplay video of Sonic & Knuckles  https://www.youtube.com/watch?v=p7fhZ1B2Cz8

 

Thanks in advance!  :)



[TOPIC: post.html]
#2

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @flipboxgames,

Are you speaking about the subtle effect on the background of that video, like on the distant pyramids?

 

Brent



[TOPIC: post.html]
#3

dylestorm

[GLOBAL: userInfoPane.html]
dylestorm
  • Enthusiast

  • 56 posts
  • Corona SDK

@Brent Sorrentino

Yeap that's right 



[TOPIC: post.html]
#4

_memo

[GLOBAL: userInfoPane.html]
_memo
  • Contributor

  • 289 posts
  • Corona SDK

I suppose it might be possible using a similar technique to what René Aye is doing in his Realtime Blur Effect library:

 

http://forums.coronalabs.com/topic/53578-realtime-blur-effect/



[TOPIC: post.html]
#5

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @flipboxgames,

I was going to suggest the "wobble" filter as well (filter.wobble). Combined with realtime blur, this might be exactly what you need. Of course, if you intend to use this effect on dozens of objects, it might impact your performance, in which case animated sprites may be better.

 

http://docs.coronalabs.com/guide/graphics/effects.html#filter.wobble

 

Brent



[TOPIC: post.html]
#6

dylestorm

[GLOBAL: userInfoPane.html]
dylestorm
  • Enthusiast

  • 56 posts
  • Corona SDK

@_memo @Brent

 

Thank you both for your suggestions.  :) 

I was kinda hoping for a more 'cut and dried' method (haha) but will try to experiment with both effects mentioned. Here's to hoping Corona will add in cool shader effects in the future  :D



[TOPIC: post.html]
#7

StarCrunch

[GLOBAL: userInfoPane.html]
StarCrunch
  • Contributor

  • 814 posts
  • Corona SDK

Hi.

 

I've been playing with the shaders feature in the recent daily builds and have something similar. Still some kinks to work out, most of them probably easy, and then maybe I'll put it up on the code exchange. Annoyingly, the shader needs some idea of where the center of the object is, so that has to be explicitly specified per object.

 

Maybe I can do an overlay variant, too, so one could do "windows" or whatever.



[TOPIC: post.html]
#8

dylestorm

[GLOBAL: userInfoPane.html]
dylestorm
  • Enthusiast

  • 56 posts
  • Corona SDK

Hi.

 

I've been playing with the shaders feature in the recent daily builds and have something similar. Still some kinks to work out, most of them probably easy, and then maybe I'll put it up on the code exchange. Annoyingly, the shader needs some idea of where the center of the object is, so that has to be explicitly specified per object.

 

Maybe I can do an overlay variant, too, so one could do "windows" or whatever.

 

@StarCrunch

That would be awesome  :)



[TOPIC: post.html]
#9

StarCrunch

[GLOBAL: userInfoPane.html]
StarCrunch
  • Contributor

  • 814 posts
  • Corona SDK

Hi dylestorm.

 

I've worked out the snags and maybe I'll have it up later tonight, once I get some cleaned-up examples in order.

 

(This stuff does need a fairly recent daily build. I've been playing with one from just a few days back.)



[TOPIC: post.html]
#10

StarCrunch

[GLOBAL: userInfoPane.html]
StarCrunch
  • Contributor

  • 814 posts
  • Corona SDK

Here you go: heat haze

 

I find a low "extend", and various values of "frequency", give good results.



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,925 posts
  • Enterprise

Thanks for sharing!

 

Rob



[TOPIC: post.html]
#12

dylestorm

[GLOBAL: userInfoPane.html]
dylestorm
  • Enthusiast

  • 56 posts
  • Corona SDK

@StarCrunch

 

I just gave it a test and wow! That is really awesome  :D

 

Thank you so much for sharing it with us!



[TOPIC: post.html]
#13

StarCrunch

[GLOBAL: userInfoPane.html]
StarCrunch
  • Contributor

  • 814 posts
  • Corona SDK

Hi.

 

I finally got around to testing these on a device and discovered that some precision qualifiers were necessary to actually work there. I've updated the Gists accordingly.



[TOPIC: post.html]
#14

dylestorm

[GLOBAL: userInfoPane.html]
dylestorm
  • Enthusiast

  • 56 posts
  • Corona SDK

@StarCrunch 

 

Thanks!  :)




[topic_controls]
[/topic_controls]