Has ARCore a particle system (without using Unity)?
I'm already using ViroCoreAR
but now, I want to use ARCore but I don't know if ARCore has a particle system just like ViroCoreAR
or even ARKit for (iOS).
Has ARCore a particle system (without using Unity)?
I'm already using ViroCoreAR
but now, I want to use ARCore but I don't know if ARCore has a particle system just like ViroCoreAR
or even ARKit for (iOS).
ARCore doesn't have a particle system. A particle system is a graphic feature that may be in the game engine you're using, it isn't related in any way to what ArCore is set to do.
There's no official Google's particle engine at the moment (early March 2019). But you can use easily-configurable particle system library like Confetti by Jinyan Cao.
The simplest ConfettoGenerator
might look like this:
final List<Bitmap> allPossibleConfetti = constructBitmapsForConfetti();
Utils.generateConfettiBitmaps(new int[] { Color.BLACK }, 20);
final int numConfetti = allPossibleConfetti.size();
final ConfettoGenerator confettoGenerator = new ConfettoGenerator() {
@Override
public Confetto generateConfetto(Random random) {
final Bitmap bitmap = allPossibleConfetti.get(random.nextInt(numConfetti));
return new BitmapConfetto(bitmap);
}
}
Hope this helps.