Jump to content

BlobShadow instead of ProjectedShadow


irei1as

Recommended Posts

I wanted to experiment with blob shadows for a retro feel so I tried:


In \source\lighting\basic\basicSceneObjectLightingPlugin.cpp

After

#include "lighting/common/projectedShadow.h"

add

#include "lighting/common/blobShadow.h"


Around line 107 that used to be:

mShadow = new ProjectedShadow( mParentObject );

change it to:

mShadow = new BlobShadow( mParentObject );




But it gravely failed because the class BlobShadow has a different constructor (it has more params).



So, how can I use the shadows defined in "lighting/common/blobShadow.h"?

Are they just an abandoned legacy thing? I can't find documentation for them anywhere so any help is very welcome.



Note: blob shadows are the circle shadows right under the actors independent of lightning direction as seen here

http://i.imgur.com/V3FTq.jpg

Link to comment
Share on other sites

I'm not able to find the option to switch between shadows in the documentation.


Should I just disable shadows and use raycasts and a "moving decal" with that texture to simulate these?



As side note let me post an inside engine image:

http://i.imgur.com/LF8VWRH.png

The projected shadow is what we have by default. Note the angle from the jumping point due to the sun angle.

The blob shadow is right under the character so the jump landing can be targeted easily -an old school thing-.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...