Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,328 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trouble with overlay flag #11014
11/17/02 09:33
11/17/02 09:33

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi,

I have constant problems trying to use the overlay flag. All I want to do is have the black (RGB 0,0,0) areas of the entity not be visible by setting the overlay = on. My problem is that for some reason it never works when I do this, the black areas are still drawn.

I can do other things to get them to disappear, such as setting transparent = on and alpha = 100 (overlay = off)--and that gets rid of the black areas. Also using flare = on in combination with overlay = on also seems to do it. My problem is however by doing it in one of these ways it causes me other problems and headaches...I just want the overlay flag to work as it should without messing with those other commands...what could be the problem I have here??? Thanks in advance for any help.

Re: Trouble with overlay flag #11015
11/17/02 12:41
11/17/02 12:41
Joined: Nov 2001
Posts: 1,402
U.S.A.
NoelCower Offline
Expert
NoelCower  Offline
Expert

Joined: Nov 2001
Posts: 1,402
U.S.A.
Describe the entity, is it a model, sprite, or map entity?

No clue what your problem is.


Noel R. Cower Portfolio Athlon 64 3000+, 1GB RAM, 400GB HDD, Radeon X800 XT Onboard Realtek 7.1 Audio, WinXP Home SP2, Slackware 10.0
Re: Trouble with overlay flag #11016
11/18/02 00:11
11/18/02 00:11

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



It tends to happen on different entities. This one in particular is an .hmp file with black areas on it. Overlay doesn't get rid of them, however transparent and alpha = 100 does--but I need to find another way because this interferes with display of some sprites over the .hmp.

I've also had instances of sprites with black areas that don't completely disappear with overlay--but instead leave black parts and artifacts and look crummy. I usually clear this up by combining overlay with flare. As I understand setting the overlay flag by itself should be sufficient to clear these problems up, shouldn't it? Thank you.

Re: Trouble with overlay flag #11017
12/02/02 01:51
12/02/02 01:51

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hmmm (?),

I would test in 16-bit mode, then in 32-bit mode (never in 8-bit mod¨!). Then I would test MY.AMBIENT = 0; and MY.ALBEDO = 0;

Re: Trouble with overlay flag #11018
12/02/02 15:04
12/02/02 15:04

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I've had the same problem on one of my maps, but what ever I do I can't get the overlay flag to work. I might try using the "transparent = on and alpha = 100". Could this be a bug?

Re: Trouble with overlay flag #11019
12/02/02 22:51
12/02/02 22:51

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Thanks for the replies.

DocJoe: Yes I've tried both 16 and 32 bit modes. I know I also played around with the ambient and albedo values (although I don't think I set them to 0).

Basically what it boils down to is that for me the overlay flag never really has worked (without combining and/or using other commands to get the same effect...I don't know.) I thought maybe it's a driver problem with my video card although that seems highly unlikely? Whatever the problem is it has been extremely frustrating and made things much more difficult for me in certain situations.

Re: Trouble with overlay flag #11020
12/03/02 03:08
12/03/02 03:08

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hmm, sorry if I can't help with coding, but maybe the following concept can help:

I think, you always want to make VISIBLE/NOT VISIBLE the same parts of an entity. So maybe you make 2 entities. The first (main) entity is the part you never want to disappear, the second is the part you want to disappear (look for an exact overlapping in MED). Now you can create every tick the second entity and give it a same SKILL in model1 and model2 (maybe SKILL44), witch controlls the visible stuff.

FUNCTION fn_first_entity();
FUNCTION fn_second_entity();

DEFINE skill_visible, SKILL44;

ACTION my_action
{
.....
.....
.....
fn_first_entity();
}

FUNCTION fn_first_entity();
{
WHILE (ME)
{
ent_create(.....2.mdl, MY.X, fn_second_entity);
wait 1;
}
REMOVE(ME);
}

FUNCTION fn_second_entity()
{
MY.skill_visible = YOU.skill_visible;
VEC_SET (MY.X, YOU,X);
VEC_SET (MY.PAN, YOU.PAN);

IF (MY.skill_visible == 1)
{
MY.VISIBLE = ON;
}
ELSE{
MY.VISIBLE = OFF;
}
wait 1;
REMOVE(ME);
}

Don't afraid of the continual creating process, it's no problem (maybe make max_entites = 1000; for testing or something similar)! You have to do it one time and you'll see you can make a lot of phantastic tools with this concept!!

Re: Trouble with overlay flag #11021
12/04/02 04:23
12/04/02 04:23

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Thanks for your input DocJoe. That's an approach I hadn't thought of although I need a bit of time to get experiment and get used to it to see if it may work out. I think I follow your example looking through it somewhat quickly.

Again, that seems like a good "out of the box" line of thinking...


Moderated by  HeelX, Spirit 

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