Superscope...any help out there?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ;-c ,rattaplan
    Forum King
    • Aug 2002
    • 4135

    #16
    Set n to the exact number of points, or else AVS sets all other numbers to 0

    Edit: Instead of using Xloc1, Yloc2 and stuff, you can also use the numbers directly, since you'll only need them once
    simplest example:
    code:

    ---init----
    n=1
    ---frame---
    p=0
    ---pixel---
    p=p+1;
    x=equal(p,1)*.5;
    y=equal(p,1)*-.25

    This sets a dot somewhere in the upper right of the screen.
    Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

    Comment

    • Deamon
      Major Dude
      • Nov 2002
      • 927

      #17
      You forgot to change the X coord, Braininator. Try:

      code:

      Per frame:
      p=0;

      per point:

      p=p+1;
      x=0*equal(p,1)+1*equal(p,2);
      y=0*equal(p,1)-1*equal(p,2);

      I have used a minus in the Y coords because AVS has the Y coords from top to down from -1 to 1 for some strange reason. Somehow it's faster for your computer, though I don't know why.


      To Jaak: Please write an example, I don't understand it as well, and I really like to know how to use the buffers.
      .:HyperNation @ winamp:. .:DeviantArt:.
      Thermal is now available for download at DeviantArt.

      Comment

      • ;-c ,rattaplan
        Forum King
        • Aug 2002
        • 4135

        #18
        The y starting at -1 instead of 1 is quite simple to understand: A PC 'thinks' from the upper left of the screen to the lower right. It's more that we as humans are strange, by starting at a high number and lowering our way down along the Y-axis

        And I don't think it has something to do with the X-coörds
        Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

        Comment

        • Jaak
          Major Dude
          • Jan 2003
          • 851

          #19
          Deamon here ya go:

          note that bla is set to 0 in end of frame, so that all loops will be run only 1 time after loading the preset
          Attached Files
          Phi = (1+sqrt(5))/2

          Comment

          • Braininator
            Junior Member
            • Jan 2004
            • 12

            #20
            Originally posted by Deamon
            You forgot to change the X coord, Braininator.

            I have used a minus in the Y coords because AVS has the Y coords from top to down from -1 to 1 for some strange reason.
            Yeah, worked it all out. Already knew about the whole minus thing, just changed the wrong vars and forgot the minus. Thanks for looking at it.

            Originally posted by ;-c ,rattaplan
            Instead of using Xloc1, Yloc2 and stuff, you can also use the numbers directly, since you'll only need them once
            Good point, but I wish to keep the variables so it makes it easier to change them. (I plan to have a few of them!)

            Comment

            • ;-c ,rattaplan
              Forum King
              • Aug 2002
              • 4135

              #21
              @Jaak

              ...And here is where coding becomes programming
              -Guess what? I love it!!!
              Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

              Comment

              • UnConeD
                Whacked Moderator
                • Jun 2001
                • 2104

                #22
                By the way if you want to interrupt your shape somewhere, use:

                skip=equal(p,4)+equal(p,6);

                This will hide the 4th and 6th line segment (or 3rd and 5th, depending on how your counter works).

                Comment

                • Braininator
                  Junior Member
                  • Jan 2004
                  • 12

                  #23
                  First bit of success!

                  Basically, the variables thing means you could set up a template for creating images in the superscope. All you'd need to do is create a number of different points (20 perhaps), set their coordinates to 0, then when wanting to create a new image just change the amount of points required and change their coordinates. So simple now!

                  Comment

                  • Deamon
                    Major Dude
                    • Nov 2002
                    • 927

                    #24
                    Another way of using p2p scoping (point-to-point, which is what you're doing now...) is to let AVS figure out the coords instead of giving them. Here's a nice example I just made. I'm quite proud of it . Take a good look at the Texer II code. Don't bother the 3D stuff around it, the part that matters is:

                    code:

                    init
                    pd=0.4 //Distance between points

                    Per frame
                    xp=-1; //starting positions every frame
                    yp=-1;

                    Per point
                    xp=xp+pd; //gridforming
                    yp=if(above(xp,1),yp+pd,yp);

                    xp=if(above(xp,1),-1,xp); //grid reset if N is set too high
                    yp=if(above(yp,1),-1,yp);


                    It took me some time to figure this out, though it's quite simple now I've got it. I was playing with extra counters first, but after some puzzling, I realised I didn't need any. Let's see if you can figure out what's happening yourself, it's better that way than if I say it right now .

                    Other dudes around here, tell me what you think. Me personally likes it a lot.

                    [edit]
                    Read the comment for code explanation
                    [/edit]
                    Attached Files
                    .:HyperNation @ winamp:. .:DeviantArt:.
                    Thermal is now available for download at DeviantArt.

                    Comment

                    • Braininator
                      Junior Member
                      • Jan 2004
                      • 12

                      #25
                      Next job with my stuff, trying to get points to change on beat.

                      Comment

                      • Atero
                        Forum King
                        • Jun 2001
                        • 2651

                        #26
                        by the by, next time please don't revive three year old threads....
                        "guilt is the cause of more disauders
                        than history's most obscene marorders" --E. E. Cummings

                        Comment

                        • Deamon
                          Major Dude
                          • Nov 2002
                          • 927

                          #27
                          lol, I didn't even notice that
                          .:HyperNation @ winamp:. .:DeviantArt:.
                          Thermal is now available for download at DeviantArt.

                          Comment

                          • Braininator
                            Junior Member
                            • Jan 2004
                            • 12

                            #28
                            Neither did I, sorry about that!

                            Comment

                            • jheriko
                              Forum King
                              • Aug 2002
                              • 2150

                              #29
                              Originally posted by Atero
                              by the by, next time please don't revive three year old threads....
                              rofl.

                              i think that i too have been guilty of this once so thats all i'll say right there. it is strange how old threads get resurrected.. i think its probably the result of the search feature being used then replying to a post without thinking. or do people really search through page after page of winamp forum archives by hand (mouse i suppose)?

                              -- Jheriko

                              'Everything around us can be represented and understood through numbers'

                              Comment

                              • Deamon
                                Major Dude
                                • Nov 2002
                                • 927

                                #30
                                of course it's the search option, no-one would read about 50 pages of forum topics if maybe their question is already answered. Certainly not new people.
                                .:HyperNation @ winamp:. .:DeviantArt:.
                                Thermal is now available for download at DeviantArt.

                                Comment

                                Working...
                                X