how to make simple disk readers
4 posts • Page 1 of 1
how to make simple disk readers
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
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
-
Sparky - Posts: 20
- Joined: Mon Mar 21, 2011 12:08 pm
- Location: The univerese
Re: how to make simple disk readers
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.
-
TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
-
Sparky - Posts: 20
- Joined: Mon Mar 21, 2011 12:08 pm
- Location: The univerese
Re: how to make simple disk readers
Interesting concept.
Personally, I would make it print text.
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:
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.
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...
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.
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.
-
Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests