Nearly the same problem was already discussed here: http://www.talkgraphics.com/showthread.php?t=38652