Changeset 1878 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule
- Timestamp:
- 12/11/06 16:21:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreChildParticlesystemRenderingRun.cpp
r1722 r1878 64 64 impostorCamera->setPosition(mainCam->getPosition()); 65 65 66 psysNode->setPosition(center);66 // psysNode->setPosition(center); 67 67 ParticleSystem* psys = Root::getSingleton()._getCurrentSceneManager()->getParticleSystem(childParticleSystemName); 68 68 … … 73 73 sysRad = r; 74 74 center = bb.getCenter(); 75 Vector3 dir = center - mainCam->getPosition(); 75 //Vector3 dir = center - mainCam->getPosition(); 76 Vector3 dir = mainCam->getDirection(); 76 77 float d = dir.normalise(); 77 78 … … 79 80 { 80 81 d = r * 1.2; 81 impostorCamera->setPosition( center - dir *d);82 impostorCamera->setPosition(dir * -d); 82 83 } 83 84 … … 97 98 else 98 99 { 99 impostorCamera->setPosition( center);100 impostorCamera->setPosition(Vector3(0,0,0)); 100 101 impostorCamera->setProjectionType(PT_ORTHOGRAPHIC); 101 102 Matrix4 m;
Note: See TracChangeset
for help on using the changeset viewer.