hello i have any weapon mesh.
i set as parrent camera.
but sometimes where i see for example to sky , weapon is hidden.
on some targets of camera is weapon non showed
why?
hidden weapon
v zdrojovem kodu neni chyba a kod je prilis dlouhy na to abych ho sem dal.dela to i pri terrain example pri pridani jakehokoli objektu ke kamere.arras wrote:It's hard to help you without code or screenshots.
Ukaz nam tvoj zdrojovy kod, z toho co si napisal je tazke posudit kde je problem.
jednoduse pokud se divam tak pri nejakem pohledu zmizi zbran. mozna je to chyba optimalizace, ze engine mysli ze zbran neni v zaberu a neni videt.
Napadaju ma len dve veci:
-frustrum culling
Pre svoju zbran ho mozes zmenit cez ISceneNode::setAutomaticCulling(E_CULLING_TYPE state) alebo dokonca vypnut celkom.
-minimalna vzdialenost pri ktorej kamera zobrazuje objekty
Pre kameru ju zmenis cez ICameraSceneNode::setNearValue(f32 zn). Skus ju zmensit. Predvolena hodnota je myslim 1.0f.
-frustrum culling
Pre svoju zbran ho mozes zmenit cez ISceneNode::setAutomaticCulling(E_CULLING_TYPE state) alebo dokonca vypnut celkom.
-minimalna vzdialenost pri ktorej kamera zobrazuje objekty
Pre kameru ju zmenis cez ICameraSceneNode::setNearValue(f32 zn). Skus ju zmensit. Predvolena hodnota je myslim 1.0f.