Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Drawing rectangles (tails and artifacts)

  1. #11
    Join Date
    Oct 2011
    Location
    Graz, Austria
    Posts
    43

    Default

    Hi James.

    Thanks for your help. I implemented the same solution. So I'm calculating the angle at the point in the middle. If its a soft turn I add some smooth helper a bit outside of the corner. If it is a hard turn I add three points directly to the corner. But still, the result doesn't look so nice. Any suggestion?

    Yeah, your solution to the shortest path problems sounds logical but it's not always the perfect solution especially if there are many figures involved. Also - for example - a rectangle can be started at any of the corner points. But I think your way is perfect for my little app.

    Nice to learn about all that

    Matthias

  2. #12
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    You can break every segment into all of its individual vectors first and then apply the same algorithm. But you need to know how to identify and bond the vectors that come back together to form lit segments.

    In LaserBoy, when calculating the shortest path, the number of dwell points necessary to get from here to there is also considered. So a straight path that is farther away might be faster than a hard angle that is closer.

    There is no "only way" to do it. LaserBoy might not be the best way, but it works!

    James.
    Last edited by james; 10-27-2012 at 18:26.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  3. #13
    Join Date
    Oct 2011
    Location
    Graz, Austria
    Posts
    43

    Default

    Hey James.

    One more question. I figured out how to put the anchor points and how to jump from one shape to another. But somehow the result changes totally depending on the PPS (points per second) that I then use for the DAC. If I have only a few points in my frame it works fine with 2-4 points at 90° turns. But if I have more points in the frame and a long beam path, then I need more anchor points and the frame begins to flicker?

    path_wrong_framerate.png

    Any idea? You know, I just need the laser for projecting very simple vector graphics and I was not aware that I have to invent the wheel again (((

    Matthias

  4. #14
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Of course the image will flicker when you have a lot of points!

    Points == DAC samples

    More samples == more time

    Are you using the DAC that came with the laser projector?

    If so, you really have no idea what it does to your points before it displays them.

    I hate to ask...... have you tried to work with LaserBoy?

    It lets you draw in full color and do just about anything you need to do to make a frame or a whole frame set animation.

    It also shows you a lot of stuff that you might not otherwise see about 2d & 3D laser vector art.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  5. #15
    Join Date
    Oct 2011
    Location
    Graz, Austria
    Posts
    43

    Default

    Hi James.

    No, I'm using Easylase II USB as DAC for testing. I can not use laser boy as it is, because in our product the laser projector is just a small part of the overall application. So at some point in the app we create simple vector graphics in an user-editor which is later on projected and used for learning issues. I would love to pay someone a bit of money and get a DLL (without any GUI) back which provides a function that transforms my vector graphics into an optimized beam path and telling me the desired frame-rate. But looks like I have to do it on my own.

    And sure, I know Laserboy. I'm pretty sure it contains tons of knowledge, but I hate the GUI but its open source, or? Then I should have a look on the code

    But just to make it clear. I'm extremely happy that all of you are helping me that much. Im glad If I can provide something in return one day.

    Mat
    Last edited by Nagilo; 10-28-2012 at 12:47.

  6. #16
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    The LaserBoy code base has already been used in another laser app! It was written specifically to be able to separate the GUI from the core. Yes, it is GPL.

    You can use just about any generic CAD application to make a DXF file and LaserBoy will open it, optimize it for any PPS and let you save it as ild.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  7. #17
    Join Date
    Oct 2011
    Location
    Graz, Austria
    Posts
    43

    Default

    Cool, I will look through the code tomorrow then. Maybe I can find any input format that Laserboy is able to read and that I can generate without another generic CAD third-party app.

    Thanks

    Mat

  8. #18
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    LaserBoy can read ild, dxf, formatted plain ASCII text tables and waves as sources of color vector art. It can open any of these and output any of these.

    James.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •