sniper code

Blitz3D Forums/Blitz3D Programming/sniper code

anyone has a free sniper rifle zoom code ?

i need a idea
camerazoom and so on

You mean getting a gradual zooming effect when you use CameraZoom and displaying an overlay over the screen when you go into "sniper scope mode"? Not sure how specifically, but it shouldn't be a hard problem to solve.

camerazoom look for it in the 3D section of your code FAQs...

I use just increments on camerazoom.
Like...

zoomfactor#=zoomfactor#+.01
CameraZoom camera,zoomfactor.

If you run it through a frame based script you could get a nice zooming effect.

Problem is when you use your main camera for hud sprites etc. too.

In this case I would do a seperate sniper camera render.

Either that or just Renderworld(1) when zooming.

thx @ all