Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Transparent block? #427487
08/08/13 14:49
08/08/13 14:49
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
Hi, guys

I want to make some blocks (which represent glass) transparent. How can I do that? I know I can make a material file whose alpha is ,for example, 50 and attach it to the block ,but I don't know how to do it....

Also, I want to make a block transparent without adding a material as I want to keep its texture......

So, there are two questions here:
1) How to make a block transparent using a material file as I don't know how to create a material file?

2) How to make a block transparent without using materials?


Thank you for reading & any help would be appreciated

Re: Transparent block? [Re: The_KING] #427500
08/08/13 16:44
08/08/13 16:44
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
set the entity TRANSLUCENT flag. or maybe in case of blocks there is a checkbox in the properties panel something like TRANSPARENT in WED...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Transparent block? [Re: sivan] #427505
08/08/13 19:53
08/08/13 19:53
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
Originally Posted By: sivan
set the entity TRANSLUCENT flag. or maybe in case of blocks there is a checkbox in the properties panel something like TRANSPARENT in WED...



There are no TRANSLUCENT or TRANSPARENT flags for blocks...

Even if, how to manipulate the alpha value?


Re: Transparent block? [Re: The_KING] #427509
08/08/13 20:32
08/08/13 20:32
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
okay, blocks cannot be transparent sorry. I just read a feature request of it. you should use a sprite or a model, and set in its action script the TRANSLUCENT flag. I don't use blocks and WED...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Transparent block? [Re: The_KING] #427512
08/08/13 23:10
08/08/13 23:10
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline
Member
CanadianDavid  Offline
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
If you want to make a block transparent, you will have to assign a material to it in WED. This requires the use of shaders and is only supported in the trial, commercial, and professional versions of Gamestudio.

Another method is to build the block in WED as a map entity and assign an action to it where you can define its transparency (alpha) in SED.

Re: Transparent block? [Re: CanadianDavid] #427515
08/09/13 07:03
08/09/13 07:03
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Iam not sure right now, but did u try building the blocks as map entity, then setting its transparent flag ? Some time ago this worked ( for water blocks fex ).

greets


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Transparent block? [Re: rayp] #427529
08/09/13 08:22
08/09/13 08:22
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
yes, a map entity similarly to models and sprites can be transparent, I use it.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Transparent block? [Re: sivan] #427538
08/09/13 09:42
08/09/13 09:42
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
So i remebered right. So easy can it be ^^


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Transparent block? [Re: rayp] #427860
08/14/13 14:58
08/14/13 14:58
Joined: Oct 2008
Posts: 341
R
ratz Offline
Senior Member
ratz  Offline
Senior Member
R

Joined: Oct 2008
Posts: 341
try this:

WED -> level -> (click on the block) -> right_klick -> save as "name"
open the "YOUR SAVE BLOCK.wmp" and compile it ...

now you can inport it back to your level
as "add map entity" .. so you can click on transperent wink
...

dont forget the texture inport before you compile it !
plase make a new folder ift you save your WMP

Last edited by ratz; 08/14/13 15:00.

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