Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Shaders hide my models #97076
11/02/06 10:18
11/02/06 10:18
Joined: Oct 2006
Posts: 23
K
Kresimir Offline OP
Newbie
Kresimir  Offline OP
Newbie
K

Joined: Oct 2006
Posts: 23
Hi!

I have a problem with using shaders. I made a material like this:
material some_material {
effect = "softStencilShadow.fx";
}

Which ever shader i downloaded off the internet and used here, i get the same result, and the result is that my models get invisible. I made a test level which consists of a cube, my model placed on the cube, sun turned on, "shadow" flag turned on the model, and "some_material" applied to the model. If i apply the material, my model gets invisible, but it's shadow (from the engine's sun) is still visible. If i turn off the shadow flag, and leave the material applied, my model will still be invisible, but no shadow will be under it. If i comment the "effect" line in my material, my model will become visible again.

I downloaded shaders off of nVidia SDK page...i tried simple shader examples i found on the net...and nothing works.

Has anyone had a similar problem?

The graphic card i'm using is an "nVidia GeForce 7600 GS", i have 1GB of RAM, my simplest model is just a cube (i used a fox and cbabe too...).

Thanks for your time!

Re: Shaders hide my models [Re: Kresimir] #97077
11/02/06 10:50
11/02/06 10:50
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
you cannot simply download any fx-file and apply it in 3dgs. you need to adjust them in most cases to fit

check the wiki and this forum to find out how to use shaders properly.. the search button is your friend

Re: Shaders hide my models [Re: ello] #97078
11/02/06 14:53
11/02/06 14:53
Joined: Oct 2006
Posts: 23
K
Kresimir Offline OP
Newbie
Kresimir  Offline OP
Newbie
K

Joined: Oct 2006
Posts: 23
I read this forum (i believe carefuly) but i didn't find anything really useful about shadows. Can you please point out to me a few useful topics here about shadows? Thanks!

Re: Shaders hide my models [Re: Kresimir] #97079
11/03/06 13:54
11/03/06 13:54
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
read the shader tutorial that was send in to the contest
there is a shader tutorial send in, a very good one.


Check out the throwing game here: The throwing game
Re: Shaders hide my models [Re: Roel] #97080
11/04/06 01:27
11/04/06 01:27
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Quote:

effect = "softStencilShadow.fx";



Quote:

I read this forum (i believe carefuly) but i didn't find anything really useful about shadows. Can you please point out to me a few useful topics here about shadows? Thanks!



do you look for soft shadows?
there is the shader from Matt Aufderheide. if i remember correctly, George Pirvu posted it in AUM.
and don't forget to look at Sphere plugin (Matt's too).

Re: Shaders hide my models [Re: Lion_Ts] #97081
11/05/06 09:43
11/05/06 09:43
Joined: Oct 2006
Posts: 23
K
Kresimir Offline OP
Newbie
Kresimir  Offline OP
Newbie
K

Joined: Oct 2006
Posts: 23
I'm looking for any kind of shadows at the moment.

Thanks, i'll look it up.

Re: Shaders hide my models [Re: Kresimir] #97082
11/05/06 15:28
11/05/06 15:28
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
dont use shaders then us stencil_shadows... there problem solved.

Re: Shaders hide my models [Re: lostclimate] #97083
11/06/06 07:57
11/06/06 07:57
Joined: Oct 2006
Posts: 23
K
Kresimir Offline OP
Newbie
Kresimir  Offline OP
Newbie
K

Joined: Oct 2006
Posts: 23
Problem is not solved, because frame rate drops below 30 with stencil shadows.

Re: Shaders hide my models [Re: Kresimir] #97084
11/07/06 04:21
11/07/06 04:21
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
well shaders are not good for beginners especially to try and create shadow, there is one in the aum, i think its aum41 but im not sure, but it isn't very good anyways as it is unaffected by the sun or light sources.

Re: Shaders hide my models [Re: lostclimate] #97085
11/09/06 13:17
11/09/06 13:17
Joined: Oct 2006
Posts: 23
K
Kresimir Offline OP
Newbie
Kresimir  Offline OP
Newbie
K

Joined: Oct 2006
Posts: 23
Well, i managed to produce 2 shaders that give me (sort of) nightvision effect. I understand now how shaders work, so can you please explain to me how shadow shader "should" be made, so i'll try to understand it and work on it myself?

The thing that i do not understand is this: if "shadow" shader is applied to a model, how will the shader know how to apply shadow to a non-flat object that the model is standing on? Since shadow shader is applied to a model, it has no reference to the surface my model is standing on (or floats above) so i do not understand how can i know which parts of surface i need to darken (cast shadow on).

Page 1 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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