CBEffects 3.0

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

Good job!Thank you Caleb!

Downloading…

Awesome! Thanks, Caleb!

Hi Caleb, I seem to be receiving this error message on the first launch of main.lua on the simulator:

 

File: …fects-master/CBEffects/cbe_core/vent_core/core.lua

Line: 74

 

Attempt to index local ‘p’ (a nil value)

local permanent\_fog permanent\_fog=CBE.VentGroup{ { preset="fluid", title="clouds", color={ {0.7}, {0.6}, {0.5} }, positionType="inRect", parentGroup = weatherGroup, rectLeft=0, rectTop=0, rectWidth=640, rectHeight=320, fadeInTime=500, lifeSpan=500, alpha=fogalpha, lifeStart=1000, build=function() local size=math.random(280, 312) return display.newImageRect("Textures/generic\_particle.png", size, size) end, propertyTable={ blendMode="normal" }, physics={ velocity=1.1, autoAngle=false, angles={180, 0} } } } permanent\_fog:start("clouds")

I use this code for making a permanent fog but everything slow down dramatically.Used to work just fine with the previous version of CBEffects and g1 graphics.

Any suggestions?

Thank you! 

firdausm: Looks like your build function isn’t returning anything…?

PewPewNinja: Slowed down in what way? FPS or effect speed?

FPS and mac performance in general!

I’m receiving this error message from launching the main.lua in the CBEffects-master folder that I just downloaded from github link above. When I ran it with the simulator (build 2100) it won’t run because of that error.

@PewPewNinja:

Can you tell me if it happens if you try using the old version… may not work; just try.

Curiously enough, I’ve profiled all the functions that CBEffects does and they’re all taking no time at all (< 0.01 ms).

@firdausm:

It’s not occurring with me… Are you doing anything other than just launching the main.lua?

  • C

Just launching the main.lua thats it. Do you have any clues on what might be causing the problem?

I have already tried the older version and i have the same problem.

I made a new test project just with the CBEffects code and i have the same problem.My macbook air slow down dramatically.

Btw i use corona version 2100 and i have the same problem as firdausm too!