It is currently Tue Nov 12, 2019 3:09 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Self Shadows
PostPosted: Wed Apr 17, 2019 11:51 pm 
Offline
User
User

Joined: Wed Oct 24, 2007 12:28 pm
Posts: 17
Hi all
I haven't used purebasic in while and never used the 3D side of it. So I was wonder how self shadowing is done using a texture map not stencils.

Or is it possible to use stencil shadows with alpha objects like trees?

Thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: Self Shadows
PostPosted: Thu Apr 18, 2019 12:21 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 29, 2012 10:33 pm
Posts: 736
Location: United States
Hello,

Purebasic's texture shadows don't use any depth information which means self shadowing is not possible. It works by rendering the caster entity shadows onto a texture and then applying them to the receiver entities. It's an older fixed function technique, but it supports a wider range of hardware.
More modern approaches use shaders which allow depth textures for calculating self shadowing, but for now they are not usable in Purebasic.

Stencil shadows rely on the entities' geometry so they won't work properly with alpha.


Top
 Profile  
Reply with quote  
 Post subject: Re: Self Shadows
PostPosted: Thu Apr 18, 2019 4:22 am 
Offline
User
User

Joined: Wed Oct 24, 2007 12:28 pm
Posts: 17
So a custom shadow shader is out the question aswell?

If that's the case is there any 3d engine libraries that are still supported by there creator worth using?

Thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: Self Shadows
PostPosted: Thu Apr 18, 2019 8:37 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 29, 2012 10:33 pm
Posts: 736
Location: United States
Yes, currently Purebasic's 3D library doesn't allow us any way to use shadow shaders.

If your goal is modern techniques then you'll probably have some trouble with the 3D libraries around here.


Top
 Profile  
Reply with quote  
 Post subject: Re: Self Shadows
PostPosted: Thu Apr 18, 2019 11:05 am 
Offline
User
User

Joined: Wed Oct 24, 2007 12:28 pm
Posts: 17
Ok cheers I thought I would give it ago considering I own a copy but I shell move on.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye