[2.1]You must call ForwardPlusBase::collectLights first! Topic is solved

Design / architecture / roadmap discussions related to future of Ogre3D (version 2.0 and above)
Post Reply
Jay721
Halfling
Posts: 48
Joined: Mon Jan 29, 2018 8:19 am

[2.1]You must call ForwardPlusBase::collectLights first!

Post by Jay721 » Mon Feb 04, 2019 6:46 pm

Hi! I'm trying to use the code from the ShadowMapFromCode example in my program. Everything is working fine (but no lighting) until I add this line of code:

Code: Select all

	mSceneManager->setForwardClustered(true, 16, 8, 24, 96, 0, 5, 500);
After I add this, usually the program crashes immediately with

Code: Select all

File: O...\OgreFor...ase.cpp
Line: 458
Expression: upToDate && "You must call ForwardPlusBase::collectLights first!"
Sometimes the program renders for a bit (properly, with shadows and everything) but then crashes after.
I'm not too sure what can be causing this.

Thanks.
0 x

Jay721
Halfling
Posts: 48
Joined: Mon Jan 29, 2018 8:19 am

Re: [2.1]You must call ForwardPlusBase::collectLights first!

Post by Jay721 » Mon Feb 04, 2019 8:04 pm

Oops, I was modifying the camera's position in the wrong thread.
0 x

Post Reply