Page 1 of 1

casting shadows with fx and v1.12.11

Posted: Tue May 04, 2021 12:18 am
by loath
hey paroj,

this mentions getting shadows to work with the particle fx plugin:
https://www.ogre3d.org/2021/02/12/ogre-1-12-11-released

are these the changes needed? (or am i missing something?)
https://github.com/OGRECave/ogre/commit ... 535eb0906d
https://github.com/OGRECave/ogre/commit ... 2775a64fb8

thanks!

Re: casting shadows with fx and v1.12.11

Posted: Tue May 04, 2021 3:59 am
by loath
for some reason, i had mShadowCasterRenderBackFaces set to true and my custom particles (based loosely on fx) were not showing shadows. turning off render back faces fixes the issue though.

thanks!

Re: casting shadows with fx and v1.12.11

Posted: Tue May 04, 2021 1:49 pm
by paroj
yes, the last change in that series addressed culling:
https://github.com/OGRECave/ogre/commit ... 4d6ea9416e

you could also disable backface-culling on particles altogether..

Re: casting shadows with fx and v1.12.11

Posted: Tue May 04, 2021 4:02 pm
by loath
nice, i'll upgrade right away. thanks!

Re: casting shadows with fx and v1.12.11

Posted: Tue May 04, 2021 6:28 pm
by loath
super easy to upgrade ogre these days. it only took 20 minutes to switch to 1.12.12.

for some reason my particles are shadowing even if i set the mCastShadows = false in the movable. does the render group override a movable's mCastShadows setting? (note this happened prior to upgrade and is most likely my code, just need to figure out what i'm doing wrong)

> you could also disable backface-culling on particles altogether..
i will also try this, thanks!

Re: casting shadows with fx and v1.12.11

Posted: Tue May 04, 2021 7:46 pm
by paroj
loath wrote: Tue May 04, 2021 6:28 pm for some reason my particles are shadowing even if i set the mCastShadows = false in the movable. does the render group override a movable's mCastShadows setting? (note this happened prior to upgrade and is most likely my code, just need to figure out what i'm doing wrong)
no, that should be sufficient. The render group setting mostly affect shadow receiving.

Re: casting shadows with fx and v1.12.11

Posted: Wed May 05, 2021 3:15 am
by loath
thanks, that helped narrow it down.