Raised This Month: $ Target: $400
 0% 

Transparent Sprite.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 10-19-2007 , 23:31   Transparent Sprite.
Reply With Quote #1

I can't seem get this sprite to go transparent.
(Making it now show up, with the black box around it)

Code:
CreateDot(Float:origin[3]) {     new dot = fm_create_entity("info_target");//engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"));     if(dot)     {         set_pev(dot,pev_classname,g_szDotClass);         set_pev(dot,pev_movetype,MOVETYPE_NONE)         set_pev(dot,pev_solid,SOLID_NOT)                     set_pev(dot,pev_rendermode,kRenderTransAlpha);         set_pev(dot,pev_renderfx,kRenderFxNone);         set_pev(dot,pev_renderamt,255);                     engfunc(EngFunc_SetModel,dot,"sprites/dot.spr");         engfunc(EngFunc_SetOrigin,dot,origin)     }     return 1 }

Anyone have any ideas on how to do it?
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-20-2007 , 01:36   Re: Transparent Sprite.
Reply With Quote #2

Did you try lowering the renderamt to like, 128?
__________________
M249-M4A1 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 10-20-2007 , 12:39   Re: Transparent Sprite.
Reply With Quote #3

Quote:
Originally Posted by M249-M4A1 View Post
Did you try lowering the renderamt to like, 128?
Yeah, which makes it transparent.. But.. Still has the black box around the sprite.
Oh.. Durr.. 'kRenderGlow' worked just fine..
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-21-2007 , 14:17   Re: Transparent Sprite.
Reply With Quote #4

Use "additive" texture format while saving your sprite or instead of entity use temp entity message (TE_SPRITE). Your sprite will be shown without any black color in it if you do that.
__________________
Impossible is Nothing
Sylwester is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode