Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 5 1 2 3 4 5
Re: pixelshader for overlays without border seams [Re: Matt_Aufderheide] #17227
01/31/04 06:25
01/31/04 06:25
Joined: Jun 2001
Posts: 2,006
USA
Darkstorm Offline
Senior Expert
Darkstorm  Offline
Senior Expert

Joined: Jun 2001
Posts: 2,006
USA
I know this is an old thread but... whenever I try to use this I get an error stating the mat_overlay.skill1 is an unknown keyword. Obviously I am doing something wrong. Are started definitions only for Pro?

Re: pixelshader for overlays without border seams [Re: Darkstorm] #17228
01/31/04 06:58
01/31/04 06:58
Joined: Oct 2000
Posts: 1,543
Germany
A
Alexander Esslinger Offline
Senior Developer
Alexander Esslinger  Offline
Senior Developer
A

Joined: Oct 2000
Posts: 1,543
Germany
In the new version use entSkin instead of texSkin and make sure, that the material is defined above your starter function.

Re: pixelshader for overlays without border seams [Re: Alexander Esslinger] #17229
01/31/04 07:30
01/31/04 07:30
Joined: Jun 2001
Posts: 2,006
USA
Darkstorm Offline
Senior Expert
Darkstorm  Offline
Senior Expert

Joined: Jun 2001
Posts: 2,006
USA
Thanks. I already changed the texSkin and the starter is after the material. I also get a "nonexistant/empty action mat_overlay_init" error. Don't know what's going on. The only reason I am trying to get this to work is that I want to see if it indeed does "fix" the zbuffer sorting problem. I have a ton of double-sided polygons with alpha channels.

Re: pixelshader for overlays without border seams [Re: Darkstorm] #17230
01/31/04 11:27
01/31/04 11:27
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
I was getting both errors you posted before I removed the ... from the Starter.

starter mat_overlay_init
{
...
mat_overlay.skill1=pixel_for_vec(vector(127,0,0),0,8888);
}

action matoverlay
{
my.material = mat_overlay;
}

Good luck!


Re: pixelshader for overlays without border seams [Re: Steempipe] #17231
02/01/04 00:13
02/01/04 00:13
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
btw. far cry uses the same method for foliage.



Re: pixelshader for overlays without border seams [Re: ventilator] #17232
02/01/04 00:53
02/01/04 00:53
Joined: Jun 2001
Posts: 2,006
USA
Darkstorm Offline
Senior Expert
Darkstorm  Offline
Senior Expert

Joined: Jun 2001
Posts: 2,006
USA
Hey its me again, The Shader Newb . I finally got rid of the errors but I'm not seeing much in improving the zbuffer sorting. I'm using double-sided polygons with 32bit TGA skins. Is that something that is in the code or do I need to do some research and add it myself? Thanks... again.

Re: pixelshader for overlays without border seams [Re: Darkstorm] #17233
02/01/04 01:01
02/01/04 01:01
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
what was causing the error? ...there shouldn't be any sorting errors with this material. could you post a screenshot?

Re: pixelshader for overlays without border seams [Re: ventilator] #17234
02/01/04 01:36
02/01/04 01:36
Joined: Jun 2001
Posts: 2,006
USA
Darkstorm Offline
Senior Expert
Darkstorm  Offline
Senior Expert

Joined: Jun 2001
Posts: 2,006
USA
I'll explain what I'm doing so that if its wrong you can yell at me. I'm using a model with "double sided" polygons with a 32bit TGA skin that has an alpha channel. The leaves in the shots are duplicates in WED of the same model. The stem is a seperate model. I didn't assign any action or material to them because I'm assuming that the shader is assigned to anything using transparency right... maybe?

Shot #1 showing the error

Shot #2 showing the model layout

Re: pixelshader for overlays without border seams [Re: Darkstorm] #17235
02/01/04 01:44
02/01/04 01:44
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
You must not set transparency, because then the polygons are not sorted. Only overlay, but no transparency or alpha channel (dont use a TGA skin).

Re: pixelshader for overlays without border seams [Re: Darkstorm] #17236
02/01/04 01:45
02/01/04 01:45
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
Quote:

I didn't assign any action or material to them because I'm assuming that the shader is assigned to anything using transparency right... maybe?


no, you have to assign the material!

Quote:

You must not set transparency, because then the polygons are not sorted. Only overlay, but no transparency or alpha channel (dont use a TGA skin).


with this material you have to use a 32bit tga texture and not the overlay flag!

(entities using this effect should set my.flare=off; and my.transparent=off;!)

...
sorry, the far cry screenshot i posted only works in a seperate browser window!

Page 2 of 5 1 2 3 4 5

Moderated by  Blink, Hummel, Superku 

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