0 registered members (),
1,459
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Member
|
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
Junior Member
|
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
Senior Expert
|
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
DrE
Newbie
|
Newbie
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
Senior Expert
|
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: Grimber]
#83295
08/02/06 01:25
08/02/06 01:25
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
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
Senior Expert
|
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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|