Giter VIP home page Giter VIP logo

box2d-light-particle's People

Contributors

alyrow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

minecraftian14

box2d-light-particle's Issues

Some improvements needed for ImageColor

Have to prevent particle spawn where

  • Particle is invisible, prolly alpha < 0.1f
  • Particle color matches background

Then we need a little more functionality

  • And add ability to add custom colors which
  • Will be the only where particle is allowed to spawn
  • Will be where particles wont spawn

With this we have a very powerful tool!

We can create custom maps programmatically

  • To define color changes acc to the map
  • Make particles spawn only at specific locations
  • Create awesome effects using heat maps

To get more power with this tool, we'll can

  • Create another similar effect which effects the speed instead
  • Interestingly we can add size too

Test #2

Life system doesn't work Gdx.graphics.getDeltaTime() is a very bad way
Conversion mistake

Rework on Texture system

The texture need to be redone for integration with json system.

Main tasks:

  • Simple texture

  • Random textures

  • Animated texture

I need something with the least class as possible like two max but one will be greater.
Need changes in ParticleSystem, Particle for that and in ParticleType

Approximation of time : ~3 hours

Pack particle system

  • Find a archive based format that is compatible with java and doesn't require de-compression
  • JSON all
  • Pack texture, JSON and also the bake result

Randomness

  • Randomize rules
  • Randomize colors + lights forces
  • Randomize physics variable

Constraints

  • Create constraint manager
  • Light constraint
    • Color constraint
      • To r
      • To g
      • To b
      • To a
    • Light distance constraint
  • Forces constraints

Ex of constraint : Radius and/or intensity of lights change with noise function --> Value between 0 and 1 returned by noise(x, y) will be a factor for these parameters

Ex of constraint : Particles go nears a certain position and slow down

Physics

  • Emission in one direction
  • Emission in all directions Edit : Radial
  • Brownian force
  • World gravity and physic factor
    • Mass / friction
    • Dynamic body

Test #1

Time is in milli-seconds

  • --> seconds

After a moment, Texture particles became black

  • Fixed

Base particle system

  • Texture particles (point, halo effect, lights effects)
  • Life of particles --->
    - Survive x seconds outer the screen
    - Survive x seconds then fade
  • Number of particles emitted --->
    - Always x particles inner the screen
    - x particles per second
  • Duration of emission --->
    - Infinite
    - x seconds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.