CBEffects 3.0

Just a thought.I use another effect and it works great.The only difference i can spot is the particles size.In the effect that troubles me i use really large particles.

local size=math.random(280, 312)

When i make them smaller everything seems to work good but the effect looks bad (of course)

Nice work Caleb!

Great! Just in time for the GGJ  :D Keep up the good work!

Goodmorning.

I just tried the same code/game on pc and it runs great.I used the same corona version (2100) and the pc is much weaker than the mac!

One more problem.

parentGroup = weatherGroup,

Doesnt seem to work in this version of CBEffects.I just tried the previous version and works fine.

EDIT:

I just noticed the changes in vent parameters.This might be the reason of the slow down but i am at work now and i cant check it.

It would appear that your speed issues are an issue of Corona, then; I’ve extensively profiled all CBEffects processes and none of them are taking more than what I mentioned above. I just fixed the parentGroup issue; re-download the library and it should work :slight_smile:

Thanks for the encouragement, Gremlin Interactive and gareve25 :smiley:

  • Caleb

Hi Caleb, the main.lua seems to be working  after redownloading the files just now. In the old version I was able to view through the samples by selecting “Load Sample Browser”. Is there a way to do it in this version? 

I fixed your original issue, but there is currently no sample browser implemented for this version.

I wanted to at least get the code public, and not have everyone wait another three to four weeks while I built a full-featured sample app. I did work on the SampleCache a bit more, so feel free to check into those (they’re more basic, though).

  • C

parentGroup is fixed and i have changed my code for the speed issues.I think its Corona issue too.

Thank you Caleb :smiley:

Alright, cool thanks Caleb!

Although CBEffects works great on pc (starter v2013.2100) and devices, the code above slow down my mac.Can anyone confirm it?Corona staff?Is it only on my mac?

Thanks Caleb!

@PewPewNinja:

I can’t reproduce this error on mine (with version 2013.2100 or the current daily build), so I suppose this is just a problem with either your computer or the way Corona runs on it (some old error of yore, perhaps, that only affects computers with your username :D?).

  • C

How would you use this in an actual game where you would need to insert a particle into a scene? Every time I tried to insert into the scenegroup using composer or storyboard it says it cannot insert a nil value? Any suggestions or help would be much appreciated! 

To do that, you specify the parentGroup parameter. That tells CBEffects to insert the vent’s content group into that group.

[lua]

parentGroup = whateverGroupYouWantParticlesToBeIn

[/lua]

  • C

Thanks! That has worked. I guess I never thought of inserting it into a scenegroup that way.  

Hi Caleb, can I use CBEffects 3.0 in “graphicsCompatibility = 1” project? Currently nothing is rendered unless I make project use Graphics 2.0. Thanks!

CBEffects just won the Cat’s Pajamas Award from LadeezFirstMedia…because it is :slight_smile:

http://www.ladeezfirstmedia.com/2014/02/14/the-february-cats-pajamas-award-goes-to-cbeffects/

@coronasdk771:

Please file an issue, along with any errors you’re getting (if you’re getting any) :slight_smile:

@jen.looper:

Thanks so much! :smiley:

  • C

CBEffects now supports graphics compatibility mode. To activate it, do the following:

  1. Set “useLegacyGraphics” on line #14 of CBEffects/cbe_core/misc/presets.lua to true

  2. Change the 1 at the end of line #203 of CBEffects/cbe_core/vent_core/core.lua to 255

Thanks for using CBEffects!

  • C