Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
how to make transparent areas for fences ? #141754
07/17/07 20:45
07/17/07 20:45
Joined: Jul 2007
Posts: 10
C
CHICKEN Offline OP
Newbie
CHICKEN  Offline OP
Newbie
C

Joined: Jul 2007
Posts: 10
hi,
i want to suround my level by a fence but you should be able to see the things behind the fence so how can i create this transparent areas? I made a tga data with transparent pixels but in my 3dgs wed it was only a white and not trancparent. I dont find any tutorials so i hope u can help me.
thanks

Re: how to make transparent areas for fences ? [Re: CHICKEN] #141755
07/17/07 22:27
07/17/07 22:27
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
WED doesn't show transparent sprites, you have to build and run your level if you want to see the transparency. If you don't see any transparency in the level, try turning on the "flare" flag on your fence sprite.

(@Conitec: Hey, being able to view transparent sprites in WED would be a handy feature! )

Last edited by MrCode; 07/17/07 22:32.

Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: how to make transparent areas for fences ? [Re: CHICKEN] #141756
07/18/07 01:32
07/18/07 01:32
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline
Senior Member
Galen  Offline
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Use black areas in your TGA for the "transparent" parts of your fence. Then in WED, set the "overlay" option on that model using the TGA (assuming you're using a model and not level architecture). FYI, the overlay effect in A7 is much better than A6's/

Re: how to make transparent areas for fences ? [Re: Galen] #141757
07/18/07 06:12
07/18/07 06:12
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
if you've built and run the level without seeing transparency, just set the "transparent" flag in WED or TRANSLUCENT via script. often that's needed to "turn on" tga transparency (not everyone wants their tgas to always have transparency).

^^ try this before flare or overlay because flare and overlay work independently of your alpha channel and you want to make sure your alpha channel works.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: how to make transparent areas for fences ? [Re: JibbSmart] #141758
07/18/07 19:48
07/18/07 19:48
Joined: Jul 2007
Posts: 10
C
CHICKEN Offline OP
Newbie
CHICKEN  Offline OP
Newbie
C

Joined: Jul 2007
Posts: 10
first of all thanks for your fast answers.
i have to say that i'm very new in this business so i have some questions :

to MrCode : i built my level and startet but all i saw were white areas instead of
transparency. so now i've got another quwstion : what's the flare flag and can you say me where i can find or change it in "the gimp 2" (a picture editing programm)

to Galen : i would prefer to use level architectures because its faster to build but i am sure i will need this usefull hint later for some models so where i can find the overlay option?

to JulzMightv : i'm a noob i haven't really worked with scripting a lot so im not able to do this

thnks for all your help and time and i think we'll solve this problem ;-)

Re: how to make transparent areas for fences ? [Re: CHICKEN] #141759
07/18/07 20:03
07/18/07 20:03
Joined: Jul 2006
Posts: 511
Germany,NRW
KMS Offline
User
KMS  Offline
User

Joined: Jul 2006
Posts: 511
Germany,NRW
What do you think about this?
For your entities:

while (1)
{
if (vec_dist(my.x,camera.x)>?????){my.invisible=on;}else{my.invisible=off;}
......

could be,that I misunderstood your problem,my english is not so good!


You need full animated lowpoly-fishes?Look at
http://www.projekt-3d.de/pages/shop2pag.html
Re: how to make transparent areas for fences ? [Re: KMS] #141760
07/18/07 21:10
07/18/07 21:10
Joined: Jul 2007
Posts: 10
C
CHICKEN Offline OP
Newbie
CHICKEN  Offline OP
Newbie
C

Joined: Jul 2007
Posts: 10
ja hast du .
ich denk ma dass du deutsch sprichst wegen deinem kommentar "programmierer sind code-nascher" .
also... ich möchte einen zaun im wed erstellen : ne wand bauen und dann ne zaunbitmap dran aber mein problem is dass man durch den zaun durchgucken kann aber ich weis nich wie ich die transparenten pixel machen kann die die lücken füllen wo man durchgucken kann. ich werd die technik später nich nur für wed sondern auch med brauchen weil ich ja auch büsche und bäume machen möchte. desswegen hab ich hier gepostet , wegen der transparenz

gruß CHICKEN

Re: how to make transparent areas for fences ? [Re: CHICKEN] #141761
07/19/07 08:10
07/19/07 08:10
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
in WED, right-click on your fence entity and select Properties and find the Transparent checkbox. make sure it's on, build the level, and run. if that doesn't work i can't imagine what's wrong so try overlay or flare (also in Properties).

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: how to make transparent areas for fences ? [Re: JibbSmart] #141762
07/19/07 09:55
07/19/07 09:55
Joined: Jul 2007
Posts: 10
C
CHICKEN Offline OP
Newbie
CHICKEN  Offline OP
Newbie
C

Joined: Jul 2007
Posts: 10
i did and it worked . i really had to turn on this option.
thank you juz you helped me a lot.
but what i want to know too : is there a way to make e.g. walls as a fence because that would be much easier if i want to build a long row of them.
thanks again julz

Re: how to make transparent areas for fences ? [Re: CHICKEN] #141763
07/19/07 10:15
07/19/07 10:15
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
no problem mate happy to help.

do you mean a WED wall? that wouldn't work because they don't display transparency.

glad to see it's working!

julz


Formerly known as JulzMighty.
I made KarBOOM!
Page 1 of 2 1 2

Moderated by  HeelX, rvL_eXile 

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