how to make simple disk readers

Post your tutorials here.

how to make simple disk readers

Postby Sparky » Fri May 06, 2011 12:02 am

hi my name is sparky.i'm relitively new to the forums.
today i will tell you how to make dvd players

1 make a circle
2 put a laser pen on the circle
3 set the fade distanse on the laser so it's just inside the circle
4 change he laser collideSet to 'b'
5 change onlaserhit to (e)=>{e.geom.texture="(name of texure goes here)" }
6 make a white box
7 set the collion to 'b'
8 find away to make the laser touch the box

demo scene here: http://www.algodoo.com/algobox/details.php?id=54469

thanks for looking!~Sparky
What do you get when you cross a clown with a fire hydrant?

scene.my.sparkyrulz=true
sandwitch cannon
User avatar
Sparky
 
Posts: 20
Joined: Mon Mar 21, 2011 12:08 pm
Location: The univerese

Re: how to make simple disk readers

Postby TC42 » Fri May 06, 2011 3:45 am

3 set the fade distanse on the laser so it's just inside the circle

Nah, just use maxrays=1 and a semi-transparent circle.
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: how to make simple disk readers

Postby Sparky » Fri May 06, 2011 9:41 am

thanks.
What do you get when you cross a clown with a fire hydrant?

scene.my.sparkyrulz=true
sandwitch cannon
User avatar
Sparky
 
Posts: 20
Joined: Mon Mar 21, 2011 12:08 pm
Location: The univerese

Re: how to make simple disk readers

Postby Someone Else » Fri May 06, 2011 6:44 pm

Interesting concept.

Personally, I would make it print text.
  • That is, have a bunch of lasers on the disc.
  • In the script menu of the lasers, this code:
  • Code: Select all
    {e.geom.color == [0, 0, 0, 1]} ? {e.geom.text = e.geom.text + "Your Text Here"} : {}
  • Use a system of mirrors and slots so each laser touches a BLACK box for a very short period of time, in sequence.
  • Make the disc rotate slowly, so there is a sufficient amount of time between when a laser hits the box and when the next laser hits it. You decide.

If you use exactly the code I mentioned, each laser should make the box print You Are Here several times. There are ways of making each laser only strike the black box once. For example:

  • Make sure NONE of the lasers on the disc are pure blue.
  • Make a box. Set the refractive index to the minimum slider value.
  • Point a pure blue laser at it. That is, in the script menu, [0, 0, 1, 1].
  • In the box goes this code:
    Code: Select all
    color = [0.5, 0.5, 0.5, 0];
    {e.laser.color != [0, 0, 1, 1]} ? {color = [0.5, 0.5, 0.5, 1]} : {};
  • This should allow exactly one blip of a non-blue laser through, printing exactly one block of text on the black box, before blocking the laser.

EDIT: Hmm... I now realize that the code I posted above does not work. However, I can't figure out how to fix it. Hmm...
That is, the code for the blip gate. The text-changing code works.
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


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests

cron