Laser projector

Discuss scenes and videos made with Algodoo.

Re: Laser projector

Postby HavingPhun » Wed Jun 01, 2011 10:09 pm

Just so everyone knows I am still working on this and I should hopefully have a new version that can do videos and be completly proggramable. I am also working through many bugs so since I dont have the new one done yet please tell me if you have found errors in previous versions and what you think I should do to improve it.
The new version will include:
>>>The ability to show videos
>>>A scan and change method instead of tons of lasers
>>>Less lag
>>>Proggramability

This version wont be very high res because i want to prove I can do it first. There will also be problems making this when at very high resolutions. Thanks for the helping with this!!
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby FuzzyLogicBrain » Thu Jun 02, 2011 2:23 pm

are you having fun, spammer?
Image
these guys are awesome. <- full stop
User avatar
FuzzyLogicBrain
 
Posts: 315
Joined: Mon Jan 31, 2011 7:48 pm
Location: when online, on the computer. when not, probably on it anyways. ;D lulz

Re: Laser projector

Postby HavingPhun » Thu Jun 02, 2011 9:31 pm

Spammer? :wtf: I dont think thats spam but explain why you think this?
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby FuzzyLogicBrain » Thu Jun 02, 2011 9:49 pm

Because he posted his message in three different forums. That's bigbird who has a tiny bird brain!
Image
these guys are awesome. <- full stop
User avatar
FuzzyLogicBrain
 
Posts: 315
Joined: Mon Jan 31, 2011 7:48 pm
Location: when online, on the computer. when not, probably on it anyways. ;D lulz

Re: Laser projector

Postby HavingPhun » Thu Jun 02, 2011 9:52 pm

Are you talking about me HavingPhun because I only posted my message one time in this forum only. Or was there another person/spambot that got deleted?
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby HavingPhun » Thu Jun 02, 2011 10:06 pm

Oh sorry FuzzyLogicBrain since the spamot got deleted I thought it was me you were talking about!
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby Someone Else » Thu Jun 02, 2011 11:50 pm

And that, humans, is part of why you should never reply to spambots. ;)

The first reason is this, as I discovered the first and only time I ever replied to one:
Somebody wrote:When you reply to a spambot, you look like an idiot. Especially after the spam is deleted.


The other, as beautifully showcased in this topic, is:
Somebody wrote:When you reply to a spambot, and the spam post is deleted, the person who posted immediately before the spam might think you are aiming your post at them.


But this is off-topic.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Laser projector

Postby FuzzyLogicBrain » Fri Jun 03, 2011 12:01 am

:evil: :P sorry, I keep forgetting!
Image
these guys are awesome. <- full stop
User avatar
FuzzyLogicBrain
 
Posts: 315
Joined: Mon Jan 31, 2011 7:48 pm
Location: when online, on the computer. when not, probably on it anyways. ;D lulz

Re: Laser projector

Postby Someone Else » Fri Jun 03, 2011 12:16 am

I suppose the reason I don't forget is that the first time I did, I found (after RicH pointed me in the right direction) that I really looked like an idiot.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Laser projector

Postby RicH » Fri Jun 03, 2011 11:13 am

Aww. You make me feel special. :cry:
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Laser projector

Postby FuzzyLogicBrain » Fri Jun 03, 2011 2:34 pm

your the guy who makes jokes. we like making fun of you. make a come back.
Image
these guys are awesome. <- full stop
User avatar
FuzzyLogicBrain
 
Posts: 315
Joined: Mon Jan 31, 2011 7:48 pm
Location: when online, on the computer. when not, probably on it anyways. ;D lulz

Re: Laser projector

Postby RicH » Sat Jun 04, 2011 4:44 pm

FuzzyLogicBrain wrote:your the guy who makes jokes. we like making fun of you. make a come back.

Hm. It appears you are quite resentful to me, up to the point that you come out of nowhere and make no effort to even follow the conversation. Problems?
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Laser projector

Postby FuzzyLogicBrain » Sat Jun 04, 2011 8:44 pm

Problems? You!
Image
these guys are awesome. <- full stop
User avatar
FuzzyLogicBrain
 
Posts: 315
Joined: Mon Jan 31, 2011 7:48 pm
Location: when online, on the computer. when not, probably on it anyways. ;D lulz

Re: Laser projector

Postby RicH » Sun Jun 05, 2011 2:49 am

Why? Rage issues? :lol:
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Laser projector

Postby HavingPhun » Sun Jun 05, 2011 3:00 am

So to get back on topic have you tried this scene? Do you like it? Do you have any suggestions,bugs or improvments you can think of?
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby Someone Else » Sun Jun 05, 2011 6:33 am

Maybe.

The Internet on the computer where I have Algodoo is officially spazzing out on me now, so I will try to download tomorrow.

And then, you will have feedback foisted upon you, like it or not.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Laser projector

Postby HavingPhun » Sun Jun 05, 2011 6:10 pm

Ok but what I have uploaded so far is pretty bad but it shows the basic idea of what I am gonna make and how it works. Also the one on the first post is the one I am talking about it is my best one online.
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby HavingPhun » Wed Jul 27, 2011 8:24 pm

Hi i still wanna do this but i have to fix some problems so tell me what you would think this should have once I get the working version out.
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby Someone Else » Thu Jul 28, 2011 12:36 am

I think the thing to do would be to sort of follow Paradigm's lead. To an extent.
Rating: rated 8
Filesize: 16.9 kB
Comments: 9
Ratings: 12
download


You'll want to place each frame, once it's completed, into an array. You'll probably want a big array, containing the entirety of each frame, containing each row in that frame, containing each pixel in that row, containing the color of that pixel.

So, the opacity of pixel 5, row 4, frame 2 would be scene.my.video(2)(4)(5)(3) = 1.
Note that the earliest frame, the top row, and the leftest pixel are all labeled 0.

onCollide, can easily be changed to onHitByLaser, each pixel will need this code:
Code: Select all
e.this.row = 0;
e.this.column = 0;
(e.this) -> {color = {scene.my.videoFrameCurrent(row)(column)}}


Upon running the video, you'll want this:
Code: Select all
{scene.my.playVideo} ? {
    scene.my.currentFrame = scene.my.currentFrame + 1;
    scene.my.videoFrameCurrent = scene.my.video(scene.my.currentFrame)
} : {}


onCollide, each very light circle on the coloring pad receives this code:
Code: Select all
e.this.row = 0;
e.this.column = 0;
scene.my.frameCurrent = scene.my.arrayChange(
    scene.my.frameCurrent, row, scene.my.arrayChange(
        scene.my.frameCurrent(row), column, e.other.color
    )
);
{! scene.my.playVideo} ? {scene.my.videoFrameCurrent = scene.my.frameCurrent} : {}


The "Save Display As Next Frame" button gets this code:
Code: Select all
scene.my.video = scene.my.arrayChange(scene.my.video, scene.my.currentFrame)


There would have to be Play, Pause, and Stop buttons, I'll let you code these yourself.

And finally:
Credit to Gradyfitz and Karatebrot on these. I edited and straightened them up a bit.
Code: Select all
Scene.my.arraySize = (array) => {
    a := array ++ ["enD"];
    n := 0;
    SizeUnknown := true;
    for(65, (i)=>{{SizeUnknown && ("" + a(i) == "enD")} ? {
        n = i;
        SizeUnknown = false } : { }
    });
    n
};

scene.my.ArrayChange = (array, pos, value) => {
    result := [];
    for(scene.my.arraySize(array), (i)=>{
    {i == n} ? {
            result = result ++ [value]
        } : {
            result = result ++ [array(i)]
        }
    });
    result
}
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Laser projector

Postby HavingPhun » Thu Feb 09, 2012 1:19 am

This is about what I was thinking of doing. Thanks for all of that, but I don't know when I will make this if ever. I have been using algodoo alot less lately so it could be awhile till I actually make this. But for the programming part of the projector. I was thinking something along the lines of have blocks that drop through a scanner (laser) that would pick up the colors and or the coordinates of the pixel it describes and then change it. But im thinking some new kind of method would have to be made to handle huge amounts of pixels. Atleast maybe break each section of the screen into several pieces to reduce the size of the arrays and then handle each of those individually. But then if we wanted some special effects like blending colors and good shading then it might have to have some kind of thing where it scans the pixels colors and then decides based in what areas they are in and the way they are positioned. But then even if an efficient way to handle large amounts of pixels was created there is still the lag to worry about. Also shouldnt the code you posted above eliminate the need for lasers? Is the last code portion you posted supposed to sort through an array? Im wondering do you think the arrays of pixels should be sorted through in order or have the system jump through the arrays? Sorry if some of this doesnt make sense thats how my ideas come out. :D I guess I should try to work on this.
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Re: Laser projector

Postby HavingPhun » Thu Apr 12, 2012 11:53 pm

I want to say that I will not work on this anytime soon like I said in that post^. But the real reason why is because I am horrible at thyme and every time I save the scene and one part of the thyme does'nt work I have to restart completly on the thyme that I programmed.
I won't be on the forums much for a while. But maybe once in a while.
User avatar
HavingPhun
 
Posts: 178
Joined: Sun Feb 06, 2011 10:42 pm

Previous

Return to Scenes

Who is online

Users browsing this forum: No registered users and 1 guest