Display Shadows on invisible objects

Posted By: kasimir

Display Shadows on invisible objects - 05/27/09 17:57

hello,

its long time ago, i am worked on a project!
So i want to start with a 2.5D P&C-Adventure.
I want to set 3D-Character-models onto a 2D Backgroundmap. This is no problem, but i want to know how it is possible to display shadows on invisible objects (instead a 3D-Background) - is there a way to get this working?! a small alpha doesn't work frown

THX kasimir
Posted By: bart_the_13th

Re: Display Shadows on invisible objects - 05/30/09 08:43

I havent tried it yet, I mean projecting shadow from invisible object, but it think using this projected texture will work, with some tweaking here and there...

Projected Texture by XD1v0:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=264490#Post264490
Posted By: kasimir

Re: Display Shadows on invisible objects - 05/31/09 17:27

Thx, but i cannot see any solution for my problem...
I don't want to use shaders if there is a better way to get this working.

Is it possible or do anyone know somethink so i can get an object invisible without disabling it's shadow.

Translucent and Alphatextures doesn't work frown
Posted By: Orange Brat

Re: Display Shadows on invisible objects - 06/01/09 05:18

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=120556&

See if anything in there helps you.
Posted By: kasimir

Re: Display Shadows on invisible objects - 06/01/09 11:56

THX - that works perfectly:

Code:
MATERIAL* mat_none =
{
    effect = "
        technique whatever
        {
            pass p1
            {
                AlphaBlendEnable = true;
                srcBlend = zero;
                destBlend = one;
            }
        }
    ";
}


void my_level ()
{
	my.material = mat_none;
}

Posted By: yorisimo

Re: Display Shadows on invisible objects - 07/23/09 21:33

I also want to cast shadows on a transparent surface. I am using the same method, applying the mat_none material to my model. I have a duplicate of the model in the same place which has the transparency I want. The problem is that the "invisible surface" blocks the view of my object when it penetrates the surface as seen in the bottom picture and the small inset picture:




The arm moves around with bones and is one model. The red ball is a separate model that is always placed at the tip of the finger using vec_for_bone. I had to add dummy vertices to the ball so it would not get clipped (this is simalr to a method i used to make an out of view object cast a shadow into the view explained here ). I have dummy vertices in the arm (upperbody) model, but they do not seem to help. I split up the upper and lower body to get the legs to show up under the surface. Without doing that I got this result:



Any ideas how to get the hand to be visible through the transparent surface?
Posted By: yorisimo

Re: Display Shadows on invisible objects - 08/03/09 18:19

I figured out that the problem was really just the CAST flag. If I reset CAST then everything looks fine.
© 2024 lite-C Forums