Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (7th_zorro), 1,390 guests, and 2 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
to shade or not to shade? #54053
09/03/05 08:14
09/03/05 08:14
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
hi there,

from reading the shaders forum i learned one special thing: shaders dont work with every video card.

as game developer my goal is to make my game available to a lot of people. but if i have a highend killershader that doenst apply anymore. only those with the latest 3d-hardware will be able to play the game and that tightens my audience.

so why should we implent shaders? just to make it look good for ourselves? take the cartoon shader for example. it lets you save a lot of work - but on the other hand it doesnt work for many people.
not everyone has the latest 3d - hardware.

btw. is there any way to dont use a shader if the engine detects no pixelshader?
even if that would work, the game would look ugly for those who dont have a good enough card.

iam really, really unsure if i should start implenting some nice looking shaders to eyecandy-up my game. i fear that once its ready it works only for 50% of the grapic cards.
when the shader works with my card and looks good, it may be possible that the same shaded model looks totally ugly and out of place on my friends graphics card - thats what i saw here a lot in the forums...

iam especially unsure if i should use a cartoon shader or not.

it would help me and others too i think if we could discuss a bit on that matter.

regards, -utz

Last edited by utz; 09/03/05 08:16.
Re: to shade or not to shade? [Re: ulf] #54054
09/03/05 08:26
09/03/05 08:26
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Though I'm not sure how to script it, I think you can have an option to enable/disable shaders. If shaders are enabled, then process them. If not, don't. You can use fixed function effects (they get rendered once only) without any problems, however. You don't have to be going to the shader 3.0 features, you could stick with the older 1.0 or 1.1 features for more compatibility. If you can, I'd suggest using the highest shader version your card can handle and work from it. Then, on your options menu in your game, turn off shaders (or use lower version models) through one of the options (have it off by default for compatibility issues).


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: to shade or not to shade? [Re: ulillillia] #54055
09/04/05 13:32
09/04/05 13:32
Joined: Aug 2002
Posts: 44
Panama City, FL
S
Specterdragon Offline
Newbie
Specterdragon  Offline
Newbie
S

Joined: Aug 2002
Posts: 44
Panama City, FL
Probably your single deciding factor is going to be your target audience. If you're developing the latest, greatest MMORPG then you'll be targeting a group with upper end hardware (ps2.0+) and broadband connections. If you're developing for mass distrobution on the maximum number of PC's (for RealArcade for example) then you want to set your sights lower in terms of hardware for best effect. You can also use the "fallback" system to create multiple shaders and let the hardware pick the best one for itself. Obviously the higher end shader will "look" better, but it doesn't have to be "all or nothing."

Bottom line is this:
It depends on your cost vs. potential reward, target computer, target player, and game type.


Just thinking out loud, Specterdragon
Re: to shade or not to shade? [Re: Specterdragon] #54056
09/06/05 10:20
09/06/05 10:20
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
okay is there a way to find out if anyone has a hardware capable of using a for example toon shader. and if there is no hardware present just use no shader?

also how shure can i be that a shader looks the same at different graphic cards without getting odd results at some cards? (read a lot about that here)

Re: to shade or not to shade? [Re: ulf] #54057
09/06/05 11:12
09/06/05 11:12
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
I remember seeing something in the manual about this. Try searching the manual. In short, it'd go like this within your action:

if (very_good_video_card)
{
my.material = very_good_material; // supporting shaders 3.x and under
}

if (good_video_card)
{
my.material = good_material; // supporting shaders 2.x
}

if (fair_video_card)
{
my.material = fair_material; // only supports shaders 1.x
}

if (weak_video_card)
{
my.material = no_shaders; // have no shaders at all
}

This would be the best way to do it. Add this before any while loops so it gets executed only once. I'm not sure, however, if it can be in a while loop to make it repeat each frame. You could probably use a shaders 3.x on a weak video card if it is only used once and not repeated every frame or frequently, but I cannot say if this is true or not.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials

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