Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Grant, 1 invisible), 3,840 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
VladMak, Geir, ondrej, mredit, vestriaa
19207 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 | 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