Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    User-control of Polygon Visibility in Animation

    Scheduled Pinned Locked Moved SDK Help
    16 Posts 0 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 08/06/2011 at 11:12, xxxxxxxx wrote:

      Originally posted by xxxxxxxx

      So, if the polygon calculates to 0% strength, it will appear when the slider/animation is at frame 0.  If the polygon calculates to 75% strength, it will appear when the slider is at 75% (at whatever frame that represents).  And so on.

      I hope this is some kind of what you searched for:
      Use a spline in the GUI combined with 1 percentage slider to determine the distribution of the visibility.

      // within a loop over all points and their vertexvalues  
      vertexvalue = GetVertexMapValue(i);  
      slidervalue = GetFloat(SLIDER);  
      splinerange = GetFloat(SPLINE_RANGEMAP_SLIDER); // A percentage slider defining the mapping of the spline to the vertexmap  
      splineX = RangeMap(vertexvalue, minIn = slidervalue-splinerange,  maxIn =slidervalue+splinerange, minOut = 0., maxOut = 1.)  
      splinevalue = Spline-GetY(splineX);  
      SetPointVisibility(i, vertexvalue * splinevalue)
      

      Here an Image explanation of what I think You mean:

      Cheers,
      Niklas

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 08/06/2011 at 20:31, xxxxxxxx wrote:

        I don't get why a spline is necessary but I've decided that the VertexMap tag would be too difficult for the user to get a clean gradient to cause a cascade as envisioned.

        Instead, I'm going to add a tool which lets the user select 'node' polygons and set the percentage value at when to appear.  Then I'm going to do the interpolation in code.  This makes the user's life happy and mine only a bit more difficult. 🙂

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 09/06/2011 at 06:42, xxxxxxxx wrote:

          Ok, can you please show me an example when you have finishe ? Seem's like I still didn't get it right. ;-D

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 16/06/2011 at 14:24, xxxxxxxx wrote:

            Sure.  I'm getting close to finishing.  Multivariate Inverse Distance Weighting (M-IDW) is the only sticking point now.  If you know of any good resources on quick algorithms or code for something like that it would be much appreciated. 🙂

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 21/06/2011 at 01:18, xxxxxxxx wrote:

              [Spaaaam >.>]

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 21/06/2011 at 01:19, xxxxxxxx wrote:

                I'm sorry, I don't even know what it is 😄
                But I take a look at it, sounds kind of interesting.

                Cheers,

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 21/06/2011 at 09:19, xxxxxxxx wrote:

                  Got it figured out.  Just needed to change a few things to make it work as expected.  Should have a video up later today. 🙂

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 21/06/2011 at 20:37, xxxxxxxx wrote:

                    You can see the video and other information here:

                    http://www.kuroyumes-developmentzone.com/unfurl/unfurl-examples/

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                      On 24/06/2011 at 10:22, xxxxxxxx wrote:

                      Now this is quite what I thought you want to to. 😉
                      Didn't check the plugin out, yet.
                      But in the Video, you have an absolute visibilty. (visible or not)
                      is it possible to set a percentage for this with C++ ?
                      If yes, why not use a spline ?
                      At the Moment, if you had used a spline, it would look
                      like this:

                      _______  
                           \  
                            \  
                             \_______
                      
                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                        On 24/06/2011 at 13:31, xxxxxxxx wrote:

                        Btw, holy s**t ! Cool Plugin !! O___o
                        How did you make the Polygons rotate aboute an Edge ?! 😮 This is awesome ! 😉

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post