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
2 registered members (AndrewAMD, dr_panther), 1,290 guests, and 4 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
Is it possible to see through prefab... #67565
03/21/06 15:02
03/21/06 15:02
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
Is it possible to see through prefab in one place with textures?

In my game i see my texture or prefab like this



But i need to see through that black place.



Can anybody help?

Thanks.


Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Re: Is it possible to see through prefab... [Re: HackerL] #67566
03/22/06 11:52
03/22/06 11:52
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
- Create a new level
- Add your prefab and centre it
- Texture it
- Save as new file (.wmp)
- Click Build button and click "Build Map Entity" then OK (.wmb)

- Open your level
- Add Map entity and select the wmb file you've built previously
- Assign an action to it.

action makeTransp
{
my.transparent = on;
my.alpha = 50; // play this value
}

Finished.

Re: Is it possible to see through prefab... [Re: HackerL] #67567
03/22/06 19:20
03/22/06 19:20
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline
Member
Roy  Offline
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
The black part needs to be really black.
Make sure the black part is 0,0,0 black (or a little bit more is also possible, i think) If the black is 15,15,15 the overlay flag won't work.
You can import it like said.
Then use this function:

action maketransparent
{
my.overlay = on; // the black part will be invisible
}

You can also just set the overlay flag on at object properties.

--------------------------

It is also possible (i don't know what you want to do with it) to import it as a sprite (just a flat drawing actually, if you want to use it horizon, for example) then go to object--> load entity.. and choose sprite file and load you tga.
then you can set the overlay flag on.

I hope this will help!

(if you do what vlau said, the entire texture will be 50% transparent)

Re: Is it possible to see through prefab... [Re: Roy] #67568
03/22/06 21:34
03/22/06 21:34
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
I did the color (0, 0, 1), the darkest blue you can get and the darkest color you can get that isn't black, and the overlay flag didn't work. But then again, it could be that I was using 32-bit color instead.... 16-bit color has the values snap to multiples of 8 (4 for green) so you could actually go with (8, 4, 8).


"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: Is it possible to see through prefab... [Re: Roy] #67569
03/25/06 11:09
03/25/06 11:09
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
Yes i have really black that place. On models it is working but not on prefab ill try Vlau suggestion!


Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Re: Is it possible to see through prefab... [Re: HackerL] #67570
03/25/06 15:57
03/25/06 15:57
Joined: Nov 2004
Posts: 888
B
beegee Offline
User
beegee  Offline
User
B

Joined: Nov 2004
Posts: 888
I found your problem:

On prefabs the lucency(transparent also alpha or overlay) don't work. Only on models and sprites(skys?). So you have to make a sprite or a (sky?) with the color black(0,0,0) on this certain places.

Regards,
beegee

-------------------------
GenuineMotors.de


Fratch - Newer statistics panel for GameStudio
Re: Is it possible to see through prefab... [Re: beegee] #67571
03/26/06 02:01
03/26/06 02:01
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
Anything involving level geometry cannot be made transparent. You can build a map entity, however, but you can only have the entire object as one set level of transparency. For full control on transparency, use a model with a TGA skin where the TGA has 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

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