Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Display Shadows on invisible objects #268159
05/27/09 17:57
05/27/09 17:57
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
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

Re: Display Shadows on invisible objects [Re: kasimir] #268609
05/30/09 08:43
05/30/09 08:43
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
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

Re: Display Shadows on invisible objects [Re: bart_the_13th] #268899
05/31/09 17:27
05/31/09 17:27
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
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

Re: Display Shadows on invisible objects [Re: kasimir] #268971
06/01/09 05:18
06/01/09 05:18
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: Display Shadows on invisible objects [Re: Orange Brat] #269020
06/01/09 11:56
06/01/09 11:56
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
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;
}


Re: Display Shadows on invisible objects [Re: kasimir] #280712
07/23/09 21:33
07/23/09 21:33
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline
Member
yorisimo  Offline
Member
Y

Joined: Mar 2007
Posts: 197
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?


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: Display Shadows on invisible objects [Re: yorisimo] #282784
08/03/09 18:19
08/03/09 18:19
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline
Member
yorisimo  Offline
Member
Y

Joined: Mar 2007
Posts: 197
I figured out that the problem was really just the CAST flag. If I reset CAST then everything looks fine.

Last edited by yorisimo; 08/04/09 15:50. Reason: resolved

Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing

Moderated by  HeelX, Spirit 

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