<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - volvis</title>
<link>http://snipplr.com/users/volvis</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 13 Feb 2012 19:52:49 GMT</pubDate>
<item>
<title>(JavaScript) Canvas image scale 2x w/o anti-alias in Chrome</title>
<link>http://snipplr.com/view/55155/canvas-image-scale-2x-wo-antialias-in-chrome/</link>
<description><![CDATA[ <p>Somewhere along the road the people behind canvas decided that all image scaling is anti-aliased by default. Firefox has 'mozImageSmoothingEnabled' while Chrome et company don't.

This is a proof of concept script to resize 'virtualCanvas' two times and draw it on 'targetCanvas' w/o any antialiasing.

Proof of concept in that it still takes too long to compute in real time.
- Firefox: 1ms with native antialiasing off
- Chrome: 45ms with the script below

It might be useful to use this to scale assets before doing any compositioning. Like, load images, scale them up, position everything times two... But if yer planning to composite the canvas first and scale that to fit as the last step, I'd advice against it..</p> ]]></description>
<pubDate>Sat, 11 Jun 2011 09:39:23 GMT</pubDate>
<guid>http://snipplr.com/view/55155/canvas-image-scale-2x-wo-antialias-in-chrome/</guid>
</item>
<item>
<title>(ActionScript 3) Replace materials from DAE scene</title>
<link>http://snipplr.com/view/39306/replace-materials-from-dae-scene/</link>
<description><![CDATA[ <p>Replacing materials in a DAE instance can be a real pain in the ass. This function iterates the children of a DAE instance and assigns materials by node name from MaterialsList.</p> ]]></description>
<pubDate>Thu, 19 Aug 2010 19:05:58 GMT</pubDate>
<guid>http://snipplr.com/view/39306/replace-materials-from-dae-scene/</guid>
</item>
<item>
<title>(Maxscript) Change Project Folder automatically if present</title>
<link>http://snipplr.com/view/16017/change-project-folder-automatically-if-present/</link>
<description><![CDATA[ <p>When placed in startup scripts, this snippet activates every time user opens a file. It then traverses the directory path backwards and looks for user created project folders. If one is found, script offers to switch it on.

This is very useful when working with a number of projects at a time.</p> ]]></description>
<pubDate>Wed, 17 Jun 2009 06:53:57 GMT</pubDate>
<guid>http://snipplr.com/view/16017/change-project-folder-automatically-if-present/</guid>
</item>
</channel>
</rss>
