anear
28-02-2007 19:06:16
Due to some time lag problem between sensor movements and graphic models, I have to stick to old version of NxOgre.
I noticed that in NxOgre0.5preview2.0 version, all examples in tutorial have no shadow. Where shall I change to turn on shadows?
betajaen
28-02-2007 20:45:32
By adding some shadow code, or uncommenting it out. I can't remember which.
My I ask, why is there such a lag problem that you have to use such a horrible old version like that?
anear
01-03-2007 09:36:20
Thanks for your reply.
I've post the time lag problem here before:
http://www.ogre3d.org/phpBB2addons/view ... highlight=
The lag is significant and not acceptable in newer versions.
For the shadow problem in the old version, I have checked nxOgre_body.cpp of that version.
in body::body(.....)
if (_meshName != "") {
mEntity = owner->mSceneMgr->createEntity(mName, _meshName);
mEntity->setCastShadows(true);
mNode->attachObject(mEntity);
}
That seems okay that any body created should castShadows.
Also I checked TutorialSimples.h of that version.
TutorialSimples.h -> run()
mSceneMgr->setShadowTechnique( SHADOWTYPE_STENCIL_ADDITIVE );
seems fine as well.
Any clue where I shall change to add shadows in the old version?
I am now comparing the tutorialApplicationDragon.h of the latest version with the tutorialSimples.h of the old version. Still have no clue.