This is a product of one of my physics-based experiments which I've been doing in order to get used to the new system. It allows you to add boxes, the size and (optionally) colour of which will be randomly generated, and to add force to them all via the arrow keys. I threw in some motion blur (created with canvases) as another experiment.
If you want to customise something, there's a number of settings at the top of the main.lua file.
Enjoy!
Experiment: Motion Blur with Physics
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Experiment: Motion Blur with Physics
- Attachments
-
- motion-blur.love
- (1.64 KiB) Downloaded 750 times
Re: Experiment: Motion Blur with Physics
Awesome! This was helpful, thanks!
Re: Experiment: Motion Blur with Physics
Nice! Realy cool with the motion blur (I needed to change motionFrames = 100 to see any motion blur)
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Experiment: Motion Blur with Physics
Thanks guys!
Also, 100 frames!? That's crazy. I was actually using 10 frames for exaggerated effect. Perhaps you should turn alphaMultipler up instead, as maintaining 100 canvases is bound to be expensive.
Also, 100 frames!? That's crazy. I was actually using 10 frames for exaggerated effect. Perhaps you should turn alphaMultipler up instead, as maintaining 100 canvases is bound to be expensive.
Re: Experiment: Motion Blur with Physics
I can go up to 300 and still have 160 fps, with 100 I have 470 fps. turn up alphaMultipler? how would that work? it only changes the alpha color
alphaMultipler looks nice between 10 and 100
alphaMultipler looks nice between 10 and 100
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Experiment: Motion Blur with Physics
Well that's good. The alpha multiplier would (obviously) enhance the visibility of the stored frames. Since you said that you couldn't see any motion blur at 10 frames, I assumed that it may be a visibility problem.
Re: Experiment: Motion Blur with Physics
this is an awesome demo
i think I'll be using this in my game (with proper credits of course)
i think I'll be using this in my game (with proper credits of course)
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Experiment: Motion Blur with Physics
Thanks. Credit isn't required, but I won't say no.
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Re: Experiment: Motion Blur with Physics
ya, I had to turn it up to 40 before I could see it. turning the alpha multiplier up doesn't change it. the issue is that the canvases aren't being placed far enough apart. I actually had to turn the alpha multiplier down so it didn't just look like oddly shaped blocks with fuzzy corners.
40 frames, 10 for alpha multiplier looks best for me. I can't notice 10 frames on any alpha at all.
40 frames, 10 for alpha multiplier looks best for me. I can't notice 10 frames on any alpha at all.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Experiment: Motion Blur with Physics
That's really strange. I notice a little motion blur on 5 frames. Everyone's systems must be displaying it differently to mine. Perhaps it's something to do with framerate?
Who is online
Users browsing this forum: No registered users and 10 guests