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 / shadow texture (kasapin je ljut)

Author
Message
kasapin
13
Years of Service
User Offline
Joined: 11th Dec 2012
Location:
Posted: 12th Dec 2012 03:35
Hi gygabytes

I`m wrecking my head with this thing for days and stil can`t find out what to do.
I want to add just a litle code modification inside the DBPro`s "stencilshadow.fx" so that the shadow mesh can take some alpha image
and subtruct all alpha information from the mesh{for example[trees,
grass,bushes,etc.....(i.e.transparent objects]}, but no luck at all.
At the end i start to ask my self this:

is this shadow a mesh or is it a image?

if it`s a mesh wher it is stored and could you for example texture this mesh
or
if it`s a image could you modify it a litle with some blending ..... ?

please HELP


have a nice microcycle
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 12th Dec 2012 19:44
it's a mesh. What you want to do can be achieved with shadow mapping

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Dec 2012 21:45
I posted an example three years ago here:

shadow mapping with alpha

Login to post a reply

Server time is: 2026-07-07 03:22:59
Your offset time is: 2026-07-07 03:22:59