<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PainterInterface: What is a hit? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994748#M27676</link>
    <description>I'm playing with the painter interface, and I have a fundamental question that I can't seem to find the answer to. What is a Hit?&lt;BR /&gt;&lt;BR /&gt;I have adapted some of the example code to my own script, and it'll properly place geometry at my cursor point as I make a stroke. But it seems to randomly place geometry down depending on the speed of the mouse move. I assume it places a piece of geometry down at each hit, but how does it decide that a hit has occured? It doesn't seem to be time based, or vertex based or distance based. If I want it to hit more frequently or less frequently, how could I do that? Is there a way to modify a hit? The hit always seems to occur in the center of the brush circle. Could I request that a hit occurs at a random spot inside the brush circle? Any info is appreciated.&lt;BR /&gt;&lt;BR /&gt;- Neil</description>
    <pubDate>Fri, 22 Feb 2008 06:17:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-22T06:17:21Z</dc:date>
    <item>
      <title>PainterInterface: What is a hit?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994748#M27676</link>
      <description>I'm playing with the painter interface, and I have a fundamental question that I can't seem to find the answer to. What is a Hit?&lt;BR /&gt;&lt;BR /&gt;I have adapted some of the example code to my own script, and it'll properly place geometry at my cursor point as I make a stroke. But it seems to randomly place geometry down depending on the speed of the mouse move. I assume it places a piece of geometry down at each hit, but how does it decide that a hit has occured? It doesn't seem to be time based, or vertex based or distance based. If I want it to hit more frequently or less frequently, how could I do that? Is there a way to modify a hit? The hit always seems to occur in the center of the brush circle. Could I request that a hit occurs at a random spot inside the brush circle? Any info is appreciated.&lt;BR /&gt;&lt;BR /&gt;- Neil</description>
      <pubDate>Fri, 22 Feb 2008 06:17:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994748#M27676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T06:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: PainterInterface: What is a hit?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994749#M27677</link>
      <description>I'm just guessing here now, but it looks like it's based on a timer. For when I paint on a surface, the faster I make a stroke, the more spread out the objects are along that stroke. &lt;BR /&gt;I highly suggest that you check out the advanced painter 1.51 script as found on scriptspot.com&lt;BR /&gt;&lt;A href="http://www.scriptspot.com/3ds-max/advanced-painter" target="_blank"&gt;http://www.scriptspot.com/3ds-max/advanced-painter&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Chris Johnson</description>
      <pubDate>Wed, 27 Feb 2008 05:28:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994749#M27677</guid>
      <dc:creator>chris.p.johnson</dc:creator>
      <dc:date>2008-02-27T05:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: PainterInterface: What is a hit?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994750#M27678</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;I'm just guessing here now, but it looks like it's based on a timer. For when I paint on a surface, the faster I make a stroke, the more spread out the objects are along that stroke. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;I don't think it's a timer, because if I stop moving the mouse, no objects are created. And it's not based off length of stroke, since it changes depending on how fast I move the mouse. Could it be based on mouse velocity somehow?&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;I highly suggest that you check out the advanced painter 1.51 script as found on scriptspot.comhttp://&lt;A href="http://www.scriptspot.com/3ds-max/advanced-painter" target="_blank"&gt;www.scriptspot.com/3ds-max/advanced-painter&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, I've used that script for years, and it has the same weirdness and limitations I'm running into, so I don't think it has any perspective or code that can help.&lt;BR /&gt;&lt;BR /&gt;- Neil</description>
      <pubDate>Wed, 27 Feb 2008 06:12:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994750#M27678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-27T06:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: PainterInterface: What is a hit?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994751#M27679</link>
      <description>Ok, well I'll have to dig around in the code and find out. &lt;BR /&gt;FYI&lt;BR /&gt;There is a bunch of code that Edit Poly and the Painter Interfact share that is in the public SDK. It can be found in \samples\mesh\PolyPaint\...&lt;BR /&gt;&lt;BR /&gt;Chris J.</description>
      <pubDate>Wed, 27 Feb 2008 06:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/painterinterface-what-is-a-hit/m-p/3994751#M27679</guid>
      <dc:creator>chris.p.johnson</dc:creator>
      <dc:date>2008-02-27T06:21:07Z</dc:date>
    </item>
  </channel>
</rss>

