Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Chat / RenderToImage and drawsprite()

Author
Message
Blendman
3
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 17th Feb 2017 16:36 Edited at: 17th Feb 2017 16:52
Hi

I'm looking for a way to draw a sprite, with transparency set to 1 (to get the shades of transparency) and not get the border of the alpha chanel.

I know If I use SetSpriteTransparency(sprite,0), I can get the correct blending, but I lost all the shades of transparency when I paint (it's to paint on a rendertoImage with sprite)

The code to explain the issue :
+ Code Snippet

I have tried with a shader, without success.
An idea on how to get the good drawing without border and with the use of SetSpriteTransparency(sprite,1) (to have the shade of alpha) ?

EDIT :
I have add an image to explain the issue, and what I would like to have :
AGK2 tier1 - http://www.dracaena-studio.com

Attachments

Login to view attachments

Login to post a reply

Server time is: 2017-02-23 00:15:14
Your offset time is: 2017-02-23 00:15:14