Home   Help Search Login Register  

Author Topic: Camera focusing  (Read 1482 times)

0 Members and 1 Guest are viewing this topic.

Offline Jffsieg

  • Members
  • *
Camera focusing
« on: 07 Apr 2007, 00:07:22 »
Ok, what I need to know is if you can focus your camera on someone while everything else it blurred.  Is it even possible?

Offline Cheetah

  • Former Staff
  • ****
Re: Camera focusing
« Reply #1 on: 07 Apr 2007, 00:11:35 »
You're probably looking for one of these:

camPrepareFocus
and/or
camSetFocus

I don't know what it exactly blurs, can't say that after reading the description, but I'm sure that you can work it out after some trail-and-error.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Jffsieg

  • Members
  • *
Re: Camera focusing
« Reply #2 on: 07 Apr 2007, 00:19:10 »
Nope, I dont think it blurs anything, unless it takes a long time.  Any other suggestions?

Offline Cheetah

  • Former Staff
  • ****
Re: Camera focusing
« Reply #3 on: 07 Apr 2007, 01:04:13 »
Damn, it sounds easy, but there is something preventing me from getting it working. I tried _a lot_ of values for the distance and blur, but nothing seemed to work. I guess there is something I forgot which prevents this from working.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Camera focusing
« Reply #4 on: 10 Apr 2007, 01:16:05 »
It's done in the beginning of the campaign. Check the intro script that comes with the first campaign mission (sharp soldiers, blurred background). I intend to open it up next weekend, but if you run out of patience that's where you'll find a solution.

ArmA cameras seems to be on a constant auto focus by default. If something passes the line of sight of the camera, it will adjust it's focus to the nearest target, closest to the central viewpoint of the lens - just as a real camera does.

I'm guessing here, but I would say that [50,1] from the script example in the comref refers to the distance where either the focus or the blur will be set to 100% (1 being 100%, since BIS is fond of scales ranging from 0 to 1 in almost all other commands, such as fadeSound and fadeMusic). The focus seems most likely, since the blur should appear at closer range as well as longer ranges than the selected focal point, while there is only one focus.

Will try this as soon as I have any testing opportunities. Supposedly, the changes doesn't occur until the camCommit X command is given.

EDIT: spelling

OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Jffsieg

  • Members
  • *
Re: Camera focusing
« Reply #5 on: 12 May 2007, 03:53:10 »
I still cant seem to get it to blur up.  I want the soldiers face to be clear but everything else blured, or smudged.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Camera focusing
« Reply #6 on: 12 May 2007, 04:03:38 »
Rub vaseline on your monitor.
urp!

Offline Jffsieg

  • Members
  • *
Re: Camera focusing
« Reply #7 on: 12 May 2007, 04:04:31 »
didnt work either ;)