Forum Index > Projects > Egg-Bot
 Centering?
 |  Printable Version
By: Eggplant! (offline) on Saturday, October 16 2010 @ 03:26 PM PDT (Read 3214 times)  
Eggplant!

So, I'm having trouble with the pen centering. I have "Start with pen centered" checked in the options, but the bot always seems to start a bit low. More like 1/3 up the drawing.

Check out this image. I took this right after drawing. The pen is supposedly returned to its center position, but it seems low in relation to the actual drawing. This is the "honeycomb2" example from the examples pack. The middle hex should be right under the pen, yes?


(larger version)


Forum Apprentice
Apprentice

Status: offline

Registered: 10/16/10
Posts: 5

Profile Email    
   
By: dnewman (offline) on Saturday, October 16 2010 @ 03:35 PM PDT  
dnewman

Quote by: Eggplant!

So, I'm having trouble with the pen centering. I have "Start with pen centered" checked in the options, but the bot always seems to start a bit low. More like 1/3 up the drawing.

Check out this image. I took this right after drawing. The pen is supposedly returned to its center position, but it seems low in relation to the actual drawing. This is the "honeycomb2" example from the examples pack. The middle hex should be right under the pen, yes?



Actually, you are seeing the correct behavior, albeit a not obvious one. You see, the Eggbot Control assumes a template of height 1000 units. The honeycomb2 is using a template of height 800 units. If you change the page size (File > Document Properties) to have a height of 1000 insteadof 800, AND then translate the drawing so that its midline is at y=500 and not y=400, then you will get the behavior you were expecting.

The (long) document http://wiki.evilmadscience.com/Where_will_my_drawing_begin_on_my_egg%3F actually covers this case,

So, how does the Eggbot frame your drawing? It really doesn't frame it at all. Instead, if you use the "Start with pen centered" option, then it assumes that the pen is positioned over the midline of the drawing -- the drawing and not your egg. If you want the drawing's midline to correspond to the egg's equator and your drawing uses a document of height 1000 units, then you can position the pen over the egg's equator and then the drawing's midline and the egg's equator will coincide. What if your drawing is only 800 units high? Well, then the line y = 500 will be 100 units below your drawing's midline. But it's this y = 500 line which the Eggbot will assume the pen is on [4].

Hope this helps.

Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: Eggplant! (offline) on Saturday, October 16 2010 @ 03:38 PM PDT  
Eggplant!

AH, yes. It makes perfect sense. Thanks again!


Forum Apprentice
Apprentice

Status: offline

Registered: 10/16/10
Posts: 5

Profile Email    
   
By: dnewman (offline) on Saturday, October 16 2010 @ 03:39 PM PDT  
dnewman

P.S. So if your egg's midline is at y=400 and the pen returns to y=500, why is the pen "down" below the egg's y=400 midline and not above it? Well, in SVG, y axis values increase as you move from the top of the page downwards. That's why the pen is below the y=400 midline by 100 units and not above it. Again, this is discussed in that (longish) Wiki page I cited.

Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: Eggplant! (offline) on Saturday, October 16 2010 @ 03:43 PM PDT  
Eggplant!

My problem is that I assumed all of the examples were 3200x1000 in size. This is not the case!


Forum Apprentice
Apprentice

Status: offline

Registered: 10/16/10
Posts: 5

Profile Email    
   
By: dnewman (offline) on Saturday, October 16 2010 @ 03:44 PM PDT  
dnewman

Quote by: Eggplant!

AH, yes. It makes perfect sense. Thanks again!



It would be better if it were just obvious, but it unfortunately it isn't. And, now that we seem to be shifting towards a "standard" document height of 800 instead of 1000, there has been some discussion of making (1) the midline height controllable in Eggbot Control land, and (2) perhaps changing the default midline height from 500 to 400. The older page height of 1000 dates back to at least the
Eggbot beta and likely earlier. A vertical plot range of that amount is achievable with the right sort of egg and careful centering. However, 800 is a more typical range and hence a better choice to cater to for the typical usage case.

Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: Eggplant! (offline) on Saturday, October 16 2010 @ 03:48 PM PDT  
Eggplant!

I think having this be a controllable option in egg-bot control and a default of 400 would save a lot of confusion for people.


Forum Apprentice
Apprentice

Status: offline

Registered: 10/16/10
Posts: 5

Profile Email    
   
By: Windell (offline) on Saturday, October 16 2010 @ 05:18 PM PDT  
Windell

I think having this be a controllable option in egg-bot control and a default of 400 would save a lot of confusion for people.

I couldn't agree more. We'll release an updated version of the software with that option within the next week or so. Thanks for your patience and understanding.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   



 All times are PDT. The time is now 05:08 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?