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
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 (Ayumi, alibaba), 704 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Need help applying shaders to level geometry [Re: Dveyee] #407370
09/12/12 05:33
09/12/12 05:33
Joined: Apr 2008
Posts: 245
GameScore Offline
Member
GameScore  Offline
Member

Joined: Apr 2008
Posts: 245
look at aum 95, there is the massive shader collection
a lot of examples
aum online

download

Last edited by GameScore; 09/12/12 05:35.
Re: Need help applying shaders to level geometry [Re: Dveyee] #407431
09/13/12 01:14
09/13/12 01:14
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
Here's a link to the texture files:

http://imageshack.us/g/689/tile1y.png/

And the shaders from AUM 95 don't seem to be working correctly when I run the test levels that come with them... the shader viewer from the main 3DGS download page for example, does work.

Edit: I got the shaders from the AUM 95 examples to work, but I'll need to see if they work in my own level now...

Last edited by themuzikman; 09/13/12 01:22.
Re: Need help applying shaders to level geometry [Re: themuzikman] #407906
09/21/12 00:58
09/21/12 00:58
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
Anyone else have any ideas of what's going on here? Why it's not working for me?

All of the help is much appreciated.

Re: Need help applying shaders to level geometry [Re: themuzikman] #407933
09/21/12 13:56
09/21/12 13:56
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Upload a small test scene and I will have a look at it.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Need help applying shaders to level geometry [Re: Superku] #407936
09/21/12 16:09
09/21/12 16:09
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
Alright here it is:
http://www.sendspace.com/file/on4157

Should be everything in there, including the WAD file...

Thanks Superku. I see you're still around, I remember your name from years ago.

Re: Need help applying shaders to level geometry [Re: themuzikman] #407937
09/21/12 16:10
09/21/12 16:10
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
Oh and can you tell me how to get the grass to work properly? I thought you check the Overlay flag, is that not right? Or is it because the background is green rather than black? It's been way too long since I've worked with 3DGS lol

Re: Need help applying shaders to level geometry [Re: themuzikman] #407938
09/21/12 16:22
09/21/12 16:22
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Well I need to have the wmp, not the wmb. wink
And what do you mean with grass, models that consist of flat planes with an alpha texture on it? If so, check out the "ImprovedOverlay" effect:
http://opserver.de/wiki/index.php?title=Shaders

Btw. welcome back! wink


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Need help applying shaders to level geometry [Re: Superku] #407941
09/21/12 16:52
09/21/12 16:52
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
http://www.sendspace.com/file/u28vm8

Theres the WMP.


And I've got a waving grass shader on one of the models, and it works as far as making the grass wave, but the green background is still there. You'll see when you open it up..

Thanks man!

Re: Need help applying shaders to level geometry [Re: themuzikman] #407945
09/21/12 18:01
09/21/12 18:01
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
The grass has a 24bit texture and thus no alpha channel. I suggest you export the texture and add an alpha channel in the paiting program of your choice (you can try to use d3d_autotransparency but this won't give you the best results).

The level is still missing your code file and the rest of the textures, so it's a little difficult to reconstruct your problem. I can see that you have checked the detail flag of the block on the ground, IMO you shouldn't use this flag it all. When I press F11 twice in the engine there is a small effect of bumpmapping visible, but it seems a little flawed. Additionally, the two default bumpmapping shaders only support a maximum of three dynamic lights (that includes the sun light) so you already have too many dynamic lights there.

I will try to set up an example for you tonight, but I have to say I don't really have much experience with normal maps as I only use them for a few special effects such as water, heat haze and the like.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Need help applying shaders to level geometry [Re: Superku] #407950
09/21/12 19:53
09/21/12 19:53
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Update: I've had a problem with my shader experiment too until I checked "Use Tesselation" in my build settings. The problem was that the light was in the center of the room/ floor cube. In the vertex shader of the block none of all 4 relevant vertices was even close to the dynamic light source (in contrast to the floor center), but the pixels in the middle of the cube only got the interpolated small light values from the corner vertices. Thus it helps to activate tesselation resp. decrease the value under "Tesselate shaded". (I was using block geometry, mtl_specBump and 2 dynamic lights, no sunlight (in map properties and sun_light = 0; in script)).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Page 2 of 3 1 2 3

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