Gamestudio Links
Zorro Links
Newest Posts
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 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
Another Shader Question (or two) #33764
09/21/04 07:55
09/21/04 07:55
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline OP
Developer
Red Ocktober  Offline OP
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
(1) can you use more than 1 shader at a time in 3DGS?
(2) can you use more than 1 shader to different parts of level geometry st the same time in 3DGS?
(3) anyone have any screenshots of any of the above?


THANKS

--Mike

Re: Another Shader Question (or two) [Re: Red Ocktober] #33765
09/21/04 08:26
09/21/04 08:26
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
1) you can use as many shaders as you want.
2) you can use one shader per texture on world geometry. therefore if a block has 4 different textures applied to it's faces it can have 4 different shaders.

Re: Another Shader Question (or two) [Re: Matt_Aufderheide] #33766
09/21/04 09:31
09/21/04 09:31
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline OP
Developer
Red Ocktober  Offline OP
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
Thanks for the helpful info Matt...

looks like i'll be upgrading the license to 6.2,.3,etc...

one more thing... do you notice a significant performance hit as the number of shaders being used increases...

THANKS again

--Mike

Re: Another Shader Question (or two) [Re: Red Ocktober] #33767
09/21/04 10:34
09/21/04 10:34
Joined: Feb 2003
Posts: 2,826
Margaritaville (Redneck Rivier...
myrlyn68 Offline
Senior Expert
myrlyn68  Offline
Senior Expert

Joined: Feb 2003
Posts: 2,826
Margaritaville (Redneck Rivier...
Depends on the shaders used (and video card...). Some like the fur shader will hammer the frame rate, others are not so bad. Newer video cards handle the shaders a lot better than older video cards as well (making the hit on the older cards twice as bad when using shaders...once for being slow and again for being slow processing shaders).


Virtual Worlds - Rebuilding the Universe one Pixel at a Time. Take a look - daily news and weekly content updates.
Re: Another Shader Question (or two) [Re: myrlyn68] #33768
09/21/04 10:42
09/21/04 10:42
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline OP
Developer
Red Ocktober  Offline OP
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
Thanks Myrlyn...

for right now i really plan to use a bumpmap shader with different textures for a weathered metallic look...

... and maybe a shiny metallic one also.

do you think that those would be hard on say a radeon 9200 or a basic geforce ps 1.4 limited card?


--Mike

Re: Another Shader Question (or two) [Re: Red Ocktober] #33769
09/21/04 10:52
09/21/04 10:52
Joined: Feb 2003
Posts: 2,826
Margaritaville (Redneck Rivier...
myrlyn68 Offline
Senior Expert
myrlyn68  Offline
Senior Expert

Joined: Feb 2003
Posts: 2,826
Margaritaville (Redneck Rivier...
Hrmmm...

I could make it hard...then again you can also make it easy.

Take a good hard look at how shaders work and spend some time learning how to optimize them. Clean code runs much better than sloppy code...even when it is going through the GPU.

Other than that - bumpmapping can be very taxing when you have a lot of lights in the scene and a lot of texture space to be transformed. There are a lot of tricks invloved in the performance tweaking aspects (enough to fill an entire shelf of my library and then some). Read up and try it out - getting the desired shader working is easy - getting it to work efficiently is the tricky part.

Also - combine shaders where you can...you can get away with using a bump shader than following with others - it will run faster when it is a single process.


Virtual Worlds - Rebuilding the Universe one Pixel at a Time. Take a look - daily news and weekly content updates.
Re: Another Shader Question (or two) [Re: myrlyn68] #33770
09/21/04 11:33
09/21/04 11:33
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline OP
Developer
Red Ocktober  Offline OP
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
Quote:

Take a good hard look at how shaders work and spend some time learning how to optimize them.




... sounds like a plan.

THANKS again for sharing your insights on this topic.

--Mike

Re: Another Shader Question (or two) [Re: Red Ocktober] #33771
09/21/04 13:19
09/21/04 13:19
Joined: Sep 2004
Posts: 40
I
iprogramgames2 Offline
Newbie
iprogramgames2  Offline
Newbie
I

Joined: Sep 2004
Posts: 40
Here is my question: How do I "turn off" a shader as "my.material=null;" will crash the engine as I have read in a different thread.

Re: Another Shader Question (or two) [Re: iprogramgames2] #33772
09/21/04 14:52
09/21/04 14:52
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
just use my.material=mat_model;

Re: Another Shader Question (or two) [Re: Matt_Aufderheide] #33773
09/22/04 02:22
09/22/04 02:22
Joined: Sep 2004
Posts: 40
I
iprogramgames2 Offline
Newbie
iprogramgames2  Offline
Newbie
I

Joined: Sep 2004
Posts: 40
That is freakin great

Thanks!


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