Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / putting smoothing into a shader

Author
Message
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 11th Jul 2007 03:30 Edited at: 11th Jul 2007 03:31
ok, i have this relief shader that has been editted here and there by many different people, and now i need some more help to add to it again!

here is a screenshot of it working in DBP:


but as you can see, the trees and (if you look carefully) the grass has some serious smoothing issues that i believe to be caused by the shader because using the SET OBJECT SMOOTHING command does nothing to these objects what so ever (yet works on non-shadered objects)

i've been fiddling around with the shader code a little, but im not experienced enough to really know how to fix the problem... i assume this can be done?

here's the shader:



[if you're having trouble seeing the smoothing issues, they are best found on the roots of the trees. ew!]

pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 11th Jul 2007 09:53 Edited at: 11th Jul 2007 09:54
Maybe I'm wrong, but this seems strange for me...

Compare this one

to this one:


I don't know anything about DBP but I think the '/' in the first one could be the issue...


All the free PCF Productions Stuff
Manic
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Completely off my face...
Posted: 11th Jul 2007 21:12
isn't a relief shader a bit of an over kill for just grass?

I don't have a sig, live with it.
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 11th Jul 2007 22:18
@pigs can fly: not sure what you mean... the // is just a comment. is the top one not supposed to have comments for some reason? i dont really know cause i didnt write the shader...

@manic: well, this is just for the highest graphics mode for my game. if someone can't run it on highest, they can put it on low (no shaders)

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 14th Jul 2007 16:58
anyone? i know we have some shader experts here.

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 17th Jul 2007 18:09
im sorry for bumping this, but i would really like some help... this post is starting to sink.

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 18th Jul 2007 11:18
Put the 'Set Object Smoothing Id,100' after the 'Set Object Effect Id, Id' comand. Worked for me that way around.

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 19th Jul 2007 00:32
Quote: "ome serious smoothing issues that i believe to be caused by the shader because using the SET OBJECT SMOOTHING command does nothing to these objects what so ever (yet works on non-shadered objects)"




Chenak
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 19th Jul 2007 18:06
Don't apply the shader at all, because in all honest you do not need it for plants, maybe the tree bark but thats it. Applying relief shaders on everything just screws up your fps. Especially if you have buildings, animated characters and props on screen at the same time, not to mention AI and everything else. Hell in DBP it can barely handle more than one animated character with a shader on.

But if you are insisting on doing this, the only way to do it is to modify the objects smoothing groups through the modelling program. Even then the shader may still take priority and remove smoothing groups.
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 20th Jul 2007 01:26
is there a way for the shader to have its own smoothing though?

Quote: "Don't apply the shader at all, because in all honest you do not need it for plants, maybe the tree bark but thats it. Applying relief shaders on everything just screws up your fps. Especially if you have buildings, animated characters and props on screen at the same time, not to mention AI and everything else. Hell in DBP it can barely handle more than one animated character with a shader on."


well my pc can handle shaders with little FPS drop, and there is an option in my game to turn off shaders(which will be default) because it would kill many people's FPSs im sure.

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 21st Jul 2007 06:46
What of those of us who want shaders but don't want shaders wasted?

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 21st Jul 2007 17:01
uh.. huh? i just need my question answered!

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 24th Jul 2007 22:13
come on... 167 views and no decent replies? i know we have a lot of people on here with shader knowledge...

Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 24th Jul 2007 22:26
3D Chat isn't exactly the best place to find coders to help you, we use this mostly for 3D modelling etc.

Hakuna Matata
Chenak
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 25th Jul 2007 00:42
There is no realistic way to apply smoothing in a shader that isn't either making it completely smooth, completely flat or smoothing related to an angle which nearly always has a bad result.

The only way to do it well is through the modelling program.
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 25th Jul 2007 02:03
ok, well a mod can lock this, ill ask in the DBP section then

Login to post a reply

Server time is: 2024-11-26 06:56:19
Your offset time is: 2024-11-26 06:56:19