hidden weapon

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
arnir
Competition winner
Posts: 154
Joined: Sat Jan 20, 2007 4:36 pm
Location: Czech Republic

hidden weapon

Post by arnir »

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?
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

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.
arnir
Competition winner
Posts: 154
Joined: Sat Jan 20, 2007 4:36 pm
Location: Czech Republic

Post by arnir »

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.
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.
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.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

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.
arnir
Competition winner
Posts: 154
Joined: Sat Jan 20, 2007 4:36 pm
Location: Czech Republic

Post by arnir »

byl to ten automaticky odstrel polygonů
diky moc :)
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

arnir wrote:diky moc :)
That doesn't sound so good :P
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

How does it sound? :)
Post Reply