<?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 Re: Need help with alpha map border in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996998#M27571</link>
    <description>Are the alphas pre-multiplied?</description>
    <pubDate>Fri, 07 Mar 2008 00:17:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-07T00:17:46Z</dc:date>
    <item>
      <title>Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996992#M27565</link>
      <description>I'm using maxscript to copy one rendered image over another, i'm setting the transparecy also, on the one i'm lying on top.&lt;BR /&gt;The problem i'm having is this jagged line that follows the Alphamap.&lt;BR /&gt;So that the edges get's messed up..&lt;BR /&gt;&lt;BR /&gt;Is there a way to fix this?&lt;BR /&gt;&lt;BR /&gt;see attached pictures...&lt;BR /&gt;&lt;BR /&gt;On picture  i want all that is grey, to be grey all the way to the edge, not black\white line like this..&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/6/6631_ySwl709In7DKqIZBXbWA.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2008 23:12:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996992#M27565</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-06T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996993#M27566</link>
      <description>Is the geometry being rendered gray? If so, a cheap fix might be to just make the background the same color.</description>
      <pubDate>Thu, 06 Mar 2008 23:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996993#M27566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-06T23:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996994#M27567</link>
      <description>No, it's full colour etc..&lt;BR /&gt;Its really annoying, because the one image is perfect, but the one i lie over get's messed up Alpha..&lt;BR /&gt;see attached image&lt;BR /&gt;&lt;BR /&gt;white is the "original" image, the grey is a separate rendered image, that i need to put on top, but i need to keep the &lt;BR /&gt;alpha map as good as on the one in the backgroud there....&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/6/6632_959MFWS81Kw6SvKyX8mL.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2008 23:48:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996994#M27567</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-06T23:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996995#M27568</link>
      <description>What code are you using to copy the image?</description>
      <pubDate>Fri, 07 Mar 2008 00:10:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996995#M27568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-07T00:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996996#M27569</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;grparr= #()&lt;BR /&gt;grparr = selectByName title:"Select groups you want to be transparent" buttonText:"Select Groups" filter:group showHidden:true single:false&lt;BR /&gt;if selection.count == 0 then (return 0)&lt;BR /&gt;c = 1&lt;BR /&gt;current_object = 0&lt;BR /&gt;select grparr&lt;BR /&gt;select grparr&lt;C&gt;&lt;BR /&gt;bm1=render 640 alphaMultiplier:1.0 useAlpha:true --channels:#(#objectID, #mask,#normal,#node,#shaderTransparency,#weight)&lt;BR /&gt;hide $&lt;BR /&gt;bm3=render 640 alphaMultiplier:0.5 useAlpha:true --channels:#(#objectID, #mask,#normal,#node,#shaderTransparency,#weight)    &lt;BR /&gt;c +=1&lt;BR /&gt;pasteBitmap bm1 bm3   type:#blend type:#blend alphaMultiplier:0.5 useAlpha:true--type:#blend&lt;BR /&gt;max unhide all&lt;BR /&gt;close bm1&lt;BR /&gt;display bm3&lt;BR /&gt;select grparr&lt;BR /&gt;clearSelection()&lt;BR /&gt;&lt;/C&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Mar 2008 00:13:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996996#M27569</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-07T00:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996997#M27570</link>
      <description>make two groups of objects, put them together, when running script, select one of the groups, then hit "select".&lt;BR /&gt;It'll then render 1 image with all geometry.&lt;BR /&gt;then hide everything except 1 group, then paste the one on top of the other, and make it transparent.</description>
      <pubDate>Fri, 07 Mar 2008 00:15:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996997#M27570</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-07T00:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996998#M27571</link>
      <description>Are the alphas pre-multiplied?</description>
      <pubDate>Fri, 07 Mar 2008 00:17:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996998#M27571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-07T00:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996999#M27572</link>
      <description>I have no idea.. i just cannot get this to work.. no matter what i've tried..</description>
      <pubDate>Fri, 07 Mar 2008 00:22:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3996999#M27572</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-07T00:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997000#M27573</link>
      <description>pastebitmap? is that a function you wrote? I'm using max9 and I don't see it in the mxs help file.&lt;BR /&gt;&lt;BR /&gt;If you have access to multiply instead of blend for the alpha that how it should be handled.</description>
      <pubDate>Fri, 07 Mar 2008 00:32:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997000#M27573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-07T00:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997001#M27574</link>
      <description>It is a new function in 3dsmax 2008..</description>
      <pubDate>Fri, 07 Mar 2008 00:52:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997001#M27574</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-07T00:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997002#M27575</link>
      <description>pasteBitmap &amp;lt;src_bitmap&amp;gt; &amp;lt;dest_bitmap&amp;gt; (&amp;lt;src_box2&amp;gt; | &amp;lt;src_point2&amp;gt;) &amp;lt;dest_point2&amp;gt; maskColor:&amp;lt;color&amp;gt; type:{#paste | #composite | #blend} alphaMultiplier:&amp;lt;float&amp;gt;&lt;BR /&gt;&lt;BR /&gt; NEW in 3ds Max 2008:  Copies a block of pixels from src_bitmap to dest_bitmap. &lt;BR /&gt;&lt;BR /&gt;The position of the source block is specified by src_box2 or src_point2, and the destination by dest_point2. &lt;BR /&gt;&lt;BR /&gt;The width and height of the block is specifed by src_box2 or, if src_point2 is specified, by the remaining size of the source bitmap. &lt;BR /&gt;&lt;BR /&gt;The width and height will be clamped to prevent either source or target overruns. &lt;BR /&gt;&lt;BR /&gt;If maskColor: is supplied, pixels with this color in src_bitmap are not copied to dest_bitmap.&lt;BR /&gt;&lt;BR /&gt;If type: is #paste (the default), the source is pasted on the destination ignoring all alpha. &lt;BR /&gt;&lt;BR /&gt;If type: is #composite, the source alpha of the source is used: &lt;BR /&gt;clamp(R = S + D * (1-S.alpha))&lt;BR /&gt;&lt;BR /&gt;If type: is #blend, the source alpha of the source is used: &lt;BR /&gt;R = S * S.alpha + D * (1-S.alpha)&lt;BR /&gt;&lt;BR /&gt;For both type:#composite and type:#blend, &lt;BR /&gt;R.alpha = S.alpha + D.alpha * (1-S.alpha)&lt;BR /&gt;&lt;BR /&gt;The type:#composite would typically be used for pre-multiplied alpha images.&lt;BR /&gt;&lt;BR /&gt;If type: is #composite or #blend, the source alpha is multiplied by the alphaMultiplier: value, which defaults to a value of 1.0 if not supplied.&lt;BR /&gt;&lt;BR /&gt;Only RGBA information is copied - no channel data is copied.</description>
      <pubDate>Fri, 07 Mar 2008 00:53:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997002#M27575</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-07T00:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997003#M27576</link>
      <description>it says "The type:#composite would typically be used for pre-multiplied alpha images. "&lt;BR /&gt;&lt;BR /&gt;but if i change to that the render looks like this:&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/6/6634_bWMkqb2gYezdow1nMXcI.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2008 00:57:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997003#M27576</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-07T00:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997004#M27577</link>
      <description>and alpha looks like this:&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/6/6635_kavPNGMUKFI9Id7oZOra.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2008 01:00:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997004#M27577</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-07T01:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997005#M27578</link>
      <description>Is there a way to access the alpha colour directly in a rendered image?&lt;BR /&gt;so that one can choose what colour you want it to be?</description>
      <pubDate>Tue, 11 Mar 2008 13:42:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997005#M27578</guid>
      <dc:creator>stigatle</dc:creator>
      <dc:date>2008-03-11T13:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997006#M27579</link>
      <description>You should be able to set the alpha value as a color value per pixel&lt;BR /&gt;&lt;BR /&gt;(color 255 255 255 0 ) would give you a pixel that was white with a fully transparent alpha</description>
      <pubDate>Tue, 11 Mar 2008 21:04:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997006#M27579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-11T21:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with alpha map border</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997007#M27580</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Is there a way to access the alpha colour directly in a rendered image?&lt;BR /&gt;so that one can choose what colour you want it to be?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Do you mean the color that shows up in the RGB channels where the alpha is transparent? The environment background color gets used for that.</description>
      <pubDate>Tue, 11 Mar 2008 21:20:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/need-help-with-alpha-map-border/m-p/3997007#M27580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-11T21:20:35Z</dc:date>
    </item>
  </channel>
</rss>

