Announcement

Collapse
No announcement yet.

Custom Gauge - ViSi UserImages - Full Demo

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Thank you very much James, How use Imagemagickto generate picture? I download it but I found only opening image and I have some simple transformation in it but nothing concerning generating image from 3 or 4 images...

    You talk about script, how you do that? were to write it and with witch software?
    Regards
    Philippe

    Comment


    • #17
      Hello James, my first message doesn't appear... then I write again, could you give me your script for have an example, I never write this before.
      Kind regards
      Philippe

      Comment


      • #18
        Hello Philippe

        Well there is an example script for the gauge in Post #1 of this topic. Its a DOS batch file.

        The clock however has quite a few more steps involved, and multiple scripts, as you have to first get the base of the clock image, and then generate the images for the hour hand, the minute hand, and the second hand, then you need to start laying them on top of each other and have the 60 second images overlay on the minutes, and the hours etc.
        I have the scripts, but I don't have a procedure as such to do it.

        There is one script to generate the hour hands, one script for the minute hands, one script for the second hands. You do those first. Then one script to overlay the hour hand on the base to make 360 degrees (360 images) of just the hour. Then another script to overlay the minute hand on top of that (but this one is more complex as the hour hand increments a little bit every few minutes so its more realistic). Then finally there is another script which overlays the second hands onto the Hour/Minute images. So its rather involved and took a while to figure it out. You then end up with the 43200 images after some processing!

        Attached are the scripts, however you will need to spend some time and figure out how they work.

        This is all ImageImagick, which is not a 4D Product and is not something we support, so you will need to do some research to figure it out 100%. In theory though you should be able to run each of the scripts to make the hands, and then run each of the scripts to overlay the hands on to the base and each other. Just have to check your path names for the last 3 scripts and change them to suit your PC.

        I hope that is of some help.

        Regards
        Attached Files
        James

        Comment


        • #19
          Hello James thank you very much!!! All is working, I take 1h to understand how it they work but all has been done. I just change geometry to gravity center to have all my needles centred but that all. Thank you again. My last job will be to found how to convert time from my RTC to number to have the good frame to the good time ;-) kind regards Philippe

          Comment


          • #20
            Great news.
            Would love to see your project when you are finished - a video clip or something would be great.

            Regards
            James

            Comment


            • #21
              off course, I will post my project probable during the week ;-)

              Comment


              • #22
                Hmm. I'm going out on a limb here and assuming that the processor on this unit doesn't support image manipulation. Would make life a lot more simple if you could put 60 images of the second, minute and hour (6:30:00 would put the hour hand half way between 6 and 7) hands with transparent backgrounds on each and then a single background image. Then combine the four required images in order, one atop another. That would total 181 images stored. Surely there has to be a better way than making each and every image for all possible combinations..... there is a fairly powerful processor attached to this thing, surely there has to be something that can be done?

                Comment


                • #23
                  You could indeed do that.

                  However, it would take 3 times longer to display each image and, depending on the size of the clock, you might see a flicker as the image is 'built up'.

                  So, making individual images might take longer and chew up quite a bit of uSD space, but the end result will look heaps better
                  Mark

                  Comment


                  • #24
                    Originally posted by ESPsupport View Post
                    You could indeed do that.

                    However, it would take 3 times longer to display each image and, depending on the size of the clock, you might see a flicker as the image is 'built up'.

                    So, making individual images might take longer and chew up quite a bit of uSD space, but the end result will look heaps better
                    Hmm. Tempted to make both types in multiple versions to see where the flickering starts and how many layers it takes before it becomes an unusable concept.... that'll be a project for the future when I'm not neck deep in research for the current one and working out how to power it all from a wall socket cleanly and without underpowering things, but that's a different thread.

                    Comment


                    • #25
                      Mark and James,

                      Does this method of generating and layering images have a industry or trade name that I could google to learn more or find some other projects that have used it?

                      I successfully designed my own gauge in inkscape and processed it in imagemagik and it works on the 7 inch display. Below is one of the pictures used in my animation.
                      Attached Files

                      Comment


                      • #26
                        Thank you James_4DSystems. That was really helpful.

                        Comment

                        Working...
                        X