Temporal Point Interpolation

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Parameterized
Prole
Posts: 8
Joined: Mon Sep 08, 2014 2:18 pm

Temporal Point Interpolation

Post by Parameterized »

I've been working on a program and found a pretty interesting bug. It happened when I calculated the average wrong, and I ended up with something much more interesting than what I was intending. Here's an animation that I put up on youtube after rendering for 8 hours.



There are probably a lot of inefficiencies in my code, and if anyone wants to take a look and give me some pointers, that would be appreciated. I'll include first the .love that I used to make the video, then the .love showing what I intended to make, (which renders a lot faster, about 12 seconds on my machine, since it's set to lower resolution and frame rate) Feel free to play around with the values or adapt it into your own projects if you can. I'll try to answer any questions you have in the comments.
Temporal Point Interpolation - HD Renderer.love
(2.46 KiB) Downloaded 124 times
Temporal Point Interpolation - Build 3.love
(2.46 KiB) Downloaded 118 times
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: Temporal Point Interpolation

Post by bobbyjones »

Very cool looks like something that can be used for lightning in a stormy sky. I haven't looked at the code. I'm not very good at optimization but I'll take a look anyway in a little bit.
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Temporal Point Interpolation

Post by undef »

Looks very pretty! Thanks for sharing :)
One of the great things about graphics programming is that if you mess it up, you often get something pretty ;)
twitter | steam | indieDB

Check out quadrant on Steam!
User avatar
Parameterized
Prole
Posts: 8
Joined: Mon Sep 08, 2014 2:18 pm

Re: Temporal Point Interpolation

Post by Parameterized »

I'm looking into using a shader to speed up the rendering time. Right now I'm having a problem with sending information for the points to the shader, does anyone have a simple solution for sending a table containing xyz and rgb information for a variable amount of points? If variability is a problem hardcoding would probably work fine for this. Any help is appreciated.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest