Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,493 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
render view on tga #351832
12/28/10 19:57
12/28/10 19:57
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline OP
Member
flatron  Offline OP
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
hi
i need to render a view on a tga with alpha channel
what can i do?

Last edited by flatron; 12/28/10 19:59.
Re: render view on tga [Re: flatron] #351834
12/28/10 20:05
12/28/10 20:05
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
i think you can't render a view with alpha


Visit my site: www.masterq32.de
Re: render view on tga [Re: MasterQ32] #351867
12/28/10 23:53
12/28/10 23:53
Joined: Apr 2008
Posts: 6
California, United States
hawkster Offline
Newbie
hawkster  Offline
Newbie

Joined: Apr 2008
Posts: 6
California, United States
Does your TGA have an alpha channel or do you want your completely-rendered view to have an alpha value?

If it's the first (TGA + alpha channel), you should be able to render it fine, though you probably won't have the alpha preserved since the render-to-texture takes up the entirety of the image. As the TGA texture will no longer be available for pixel processing instructions, it seems like you wouldn't be able to preserve the alpha entirely. However, if you mean that the alpha channel values are either entirely transparent or entirely opaque (and not some value in-between) on your TGA file, you might be able to fake it by rendering the view on top of the opaque area of the image with the pos_x/pos_y and size_x/size_y properties to define a target square for your rendered VIEW object.

If you instead want your completely-rendered view to have an alpha value, you can either modify the alpha property of the VIEW object you're rendering or the alpha property of the ENTITY object you're rendering onto, depending on what type of effect you're looking for.

Hope this helped!


If it don't fit, force it wink

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1