Alice Community Draw a straight line

 Draw a straight line
 DickBaldwin Guest   Status: Posts: n/a Draw a straight line - 02-08-2008, 09:55 AM Just for fun, I would like to write a 3D version of the string-art program at http://scratch.mit.edu/projects/Paddle2See/89023 Does anyone know how to draw a straight colored line between two points in Alice 2.0 3D space? Thanks, Dick Baldwin Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm Free programming tutorials: http://www.dickbaldwin.com/toc.htm
 John_Clark Guest   Status: Posts: n/a 02-08-2008, 12:52 PM I have an idea but I'm not 100% sure it will work but I will still throw it out is you could make a straight line in paint or something and import it on a billboard and then assign each line to a set a moreable spheres and have them move on the axis of the spheres. Good luck and I hope this works for you.
DickBaldwin
Guest

Status:
Posts: n/a
02-08-2008, 01:19 PM

Quote:
 Originally Posted by John_Clark I have an idea but I'm not 100% sure it will work but I will still throw it out is you could make a straight line in paint or something and import it on a billboard and then assign each line to a set a moreable spheres and have them move on the axis of the spheres. Good luck and I hope this works for you.
I assume that you mean moveable spheres instead of moreable spheres.

I don't know what you mean by "assign each line to a set a moveable spheres and have them move on the axis of the spheres." Can you describe that process in more detail, or perhaps provide a short sample program that implements the process.

Thanks,
Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm

 dadcat Guest   Status: Posts: n/a 02-08-2008, 11:27 PM Probably far from optimal, but you can insert axes, resize two of them (up and right) to negligable size (.001). Do the same for the forwardSign, and change the color of forward object to whatever color you want. You still have an arrowhead at one end and getting it to extend from one specified point to another isn't entirely trivial, but move to, point at and resize should be able get the job done.
DickBaldwin
Guest

Status:
Posts: n/a
02-09-2008, 08:59 AM

Quote:
 Originally Posted by dadcat Probably far from optimal, but you can insert axes, resize two of them (up and right) to negligable size (.001). Do the same for the forwardSign, and change the color of forward object to whatever color you want. You still have an arrowhead at one end and getting it to extend from one specified point to another isn't entirely trivial, but move to, point at and resize should be able get the job done.
Very creative idea. Unfortunately, the thickness of the resulting object increases and decreases in proportion to its length.

Thanks,
Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm

 John_Clark Guest   Status: Posts: n/a 02-11-2008, 12:49 PM [QUOTE=DickBaldwin;4590]Very creative idea. Unfortunately, the thickness of the resulting object increases and decreases in proportion to its length. Ya thats kind of what I ment sorry if i wasnt clear but what I mean is have the lines connected to the spheres and and the spheres pivot on an axis to connect to another set of spheres to make shapes

 Thread Tools Display Modes Hybrid Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge