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.

DarkBASIC Professional Discussion / Disable shadow shading on specific object

Author
Message
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 10th Jul 2013 04:54 Edited at: 10th Jul 2013 13:47
I think I've already found the answer to this but I'm hoping it's wrong.
I made a very low poly model for use in casting a shadow of my large poly main character (got the idea from Shenmue), then set alpha mapping to 0.
The problem is The shadow also is being cast onto the visible character and I can't find a way to exclude it. The only things that seem to work is to turn ghost object on my visible character, which is not a good option, and zdepth off, which also doesn't work very well. Any ideas? I've tried to make sure the shadow casting object is inside the visible model but even so.
I can't use any of the shadow shaders floating around because the object is made of limbs using multiple shaders so shadow shading seems to be my only option. Just need help getting those shadows off my visible character.

http://mattsmith.carbonmade.com/
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 11th Jul 2013 00:14
Wow, nothing?

http://mattsmith.carbonmade.com/
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 11th Jul 2013 00:21
All I can think of....


set object No, wire, trans................. light off

with just ambient, and no light effects it might turn off the shadows.

wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 11th Jul 2013 01:30
Sadly, doesn't work but thanks for the suggestion. I'm open to all suggestions here as the technique works perfectly and is extremely fast, except for the problem described.

http://mattsmith.carbonmade.com/
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 11th Jul 2013 02:28
I heard the built in shadows are bad. If you use a shader method you can generate the shadows using a second camera with the player object hidden. Sync Mask is used to specify which cameras are synced when sync is called.

If your player model has shaders already it shouldn't be an issue. A shadow shader as far as I know would never be applied or need not be applied to it. I'm pretty sure it'll be applied to what ever you want shadows to be drawn onto like the ground.

wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 11th Jul 2013 02:31
The ground has multiple shaders applied, too.
The build in command is the only thing I've seen that works without having to change everything around. Worst case scenario I'll muck around with the shadow model till I get it perfect, but here's to hoping there's some way to turn shadows off on the visible character.

http://mattsmith.carbonmade.com/
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 11th Jul 2013 21:50
Alright, I know it's annoying when people bump threads so I'll just do it one more time. (sorry) If anyone has any other suggestions, no matter how basic they may seem, please throw them out there.

http://mattsmith.carbonmade.com/
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 11th Jul 2013 22:53
combine your shaders with shadow shading shader

Login to post a reply

Server time is: 2026-07-07 02:19:54
Your offset time is: 2026-07-07 02:19:54