Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Nymphodora, Quad), 919 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Smooth edges shader #444788
08/18/14 18:41
08/18/14 18:41
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hi, I was wondering if it is possible to smooth the edges of a block using a shader, so that the outside edges are cut off like 15 degrees. but only the perimeter. So If I had 2 connected blocks their perimeter would be cut off, and not the jointed faces.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Smooth edges shader [Re: DLively] #444790
08/18/14 19:53
08/18/14 19:53
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
I think I can say that I've got quite some experience with shaders and I've never seen any shader that does something like this.
Also I don't know how this could be done using shaders, sorry.


POTATO-MAN saves the day! - Random
Re: Smooth edges shader [Re: Kartoffel] #444793
08/18/14 20:08
08/18/14 20:08
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
What about some kind of "displacement" shader or raytracing in the pixel shader against a plain and then clipping the pixel?


Visit my site: www.masterq32.de
Re: Smooth edges shader [Re: MasterQ32] #444794
08/18/14 20:16
08/18/14 20:16
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
well, that could work but it'd be ten times better and faster to just use actual geometry for this, I mean this is just a simple 45° bevel, nothing really detailed...
Also this would require silhoulette correction and that's just an overkill for such a simple thing.


POTATO-MAN saves the day! - Random
Re: Smooth edges shader [Re: Kartoffel] #444795
08/18/14 20:17
08/18/14 20:17
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Yep.


Visit my site: www.masterq32.de
Re: Smooth edges shader [Re: MasterQ32] #444802
08/18/14 22:55
08/18/14 22:55
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Alrighty then laugh
I will just bevel the geometry if I choose to go that route. Its not a necessity for what I am doing, but rather a brain tickler tongue and if it was possible I'd have been interested in looking further into it.

Always glad to get some tips from the pros laugh


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com

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