irei1as Posted December 30, 2015 Share Posted December 30, 2015 I wanted to experiment with blob shadows for a retro feel so I tried:In \source\lighting\basic\basicSceneObjectLightingPlugin.cppAfter#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 herehttp://i.imgur.com/V3FTq.jpg Quote Link to comment Share on other sites More sharing options...
Duion Posted December 30, 2015 Share Posted December 30, 2015 Isn't there a blob shadow by default? There is a texture for it at least. Quote Link to comment Share on other sites More sharing options...
irei1as Posted January 4, 2016 Author Share Posted January 4, 2016 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.pngThe 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-. Quote Link to comment Share on other sites More sharing options...
Duion Posted January 4, 2016 Share Posted January 4, 2016 Maybe it is in the engine somewhere, since there is a texture for it, first I thought the blob is used for basic lighting, but there seems to be already another kind of shadow used for basic lighting. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.