Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle system - particles texture is not visible #67

Open
marieterrible opened this issue Aug 18, 2022 · 1 comment
Open

Particle system - particles texture is not visible #67

marieterrible opened this issue Aug 18, 2022 · 1 comment

Comments

@marieterrible
Copy link

Hi, I have included a particle system in my ar app, when trying to add texture it does not appear.
Running on <script src="//cdn.8thwall.com/web/aframe/aframe-particle-system-component-1.1.4.min.js"></script>
and aframe 1.3.0

particle-system="preset: dust; size: 3; texture: ./images/leaf.png; opacity:2; particleCount: 2000; color: #EF0000,#44CC00"

Any idea what's the issue?
ty

@DylanOcampo
Copy link

To fix it, you need to do this:

texture: require('./assets/mytexture.png'),

For example in the fireworks, example project, you can find :

rocketParticles.setAttribute('particle-system', {
color: '#F4D03F,#7D6608',
positionSpread: '0 0.5 0',
rotationAxis: 'x',
direction: '-1',
particleCount: '250',
maxParticleCount: '500',
maxAge: '0.45',
accelerationValue: '0, -0.01, 0',
accelerationSpread: '0 0 0',
velocityValue: '0 0 0',
blending: 1,
})
you just need to add: texture: require('./assets/mytexture.png').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants