Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,173 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How do I create panes of glass? #83288
07/26/06 01:29
07/26/06 01:29
Joined: Jan 2006
Posts: 6
W
Wesker Offline OP
Newbie
Wesker  Offline OP
Newbie
W

Joined: Jan 2006
Posts: 6
I need a simple way to create glass. So far all I've been doing is using semi transparent sprites, but they are impossible to size properly into a frame. Is there a way to texture blocks to be semi-transparent?

Re: How do I create panes of glass? [Re: Wesker] #83289
07/26/06 02:19
07/26/06 02:19
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline
Member
NL_3DGS_n00b  Offline
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Just make a window with a block, cut it, paste in new project, give it a white texture, save it as map entity, open project again, inport as map entity, place in window, add a script to it with makes it transparent, and play with the alpha value.


The best games are the games you create yourself.
Re: How do I create panes of glass? [Re: NL_3DGS_n00b] #83290
07/26/06 05:49
07/26/06 05:49
Joined: Jul 2006
Posts: 55
Yes, I speak English.
MJR_Corp Offline
Junior Member
MJR_Corp  Offline
Junior Member

Joined: Jul 2006
Posts: 55
Yes, I speak English.
I understand all of that except the last two things, what is alpha? And what kind of script?


It's always darkest before dawn. So if you're going to steal your neighbour's newspaper, that's the time to do it.
Re: How do I create panes of glass? [Re: MJR_Corp] #83291
07/26/06 08:35
07/26/06 08:35
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Code:

action make_transparent
{
my.transparent = on;
my.alpha = 20; // play with this
wait(1); // registers the above
my.dynamic = off; // not dynamic to speed up rendering of this entity
}



This. Alpha is transparency. In Gamestudio, it uses a percentage, from 0 to 100. With 0%, it's the same as making it invisible. With 100%, it's fully opaque. With something in between, you can see through it. If you look out a standard window of about 5 millimeters, the glass has an alpha of 16 (6.3%) and thus easily able to be seen through. A thin trash bag would have an alpha of about 208 (81.3%) and very easily seen, but you can still see through it. For setting the transparency of each pixel individually, you'll need a 32-bit TGA or DDS texture image with alpha channel in it. GIMP is a useful program for making images with alpha channel.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: How do I create panes of glass? [Re: ulillillia] #83292
08/01/06 16:53
08/01/06 16:53
Joined: Nov 2005
Posts: 20
D
DrE Offline
Newbie
DrE  Offline
Newbie
D

Joined: Nov 2005
Posts: 20
How can I make the part of the model go transparent. I made a 32-bit tga and used it on a model, but when I apply the transparent action to the model, the whole model goes transparent. Do I need to define what color should be transparent?

btw, the "my.dynamic = off" gives this error:
"war.wdl 1927:0 Error(50): Parameter unknown dynamic Parameter"

What's the problem?

Last edited by DrE; 08/01/06 16:54.
Re: How do I create panes of glass? [Re: DrE] #83293
08/01/06 20:29
08/01/06 20:29
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
my.dynamic only applies to the 6.31.4 version and later. Please update your Gamestudio to 6.31.4 or the latest 6.40.5. For making part of the model transparent, I suggest using a separate entity for the transparent parts or you'll get odd Z-sorting errors. To make parts of the model of varying transparency, use a texture with alpha channel.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: How do I create panes of glass? [Re: ulillillia] #83294
08/01/06 21:24
08/01/06 21:24
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
you have to apply the semi transparent texture to a SEPERATE skin of the model then UV map the polys you want to that skin. you won;t get the sort problem then if you do it right.

you can't combine semi transparent full opaque in the same skin image.

Re: How do I create panes of glass? [Re: Grimber] #83295
08/02/06 01:25
08/02/06 01:25

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Well you can do that with 6.4, because the new MDL format supports multiple textures.

So check the announcement forum for an update to 6.4. Currently, it's public beta.

Re: How do I create panes of glass? #83296
08/02/06 01:29
08/02/06 01:29
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Actually, 6.40.5 is now on the download page. It's no longer a public beta. 6.31.4 has moved into the old versions section.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials

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