HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lock camera/Set Camera angel of attack no working

04-12-2008, 09:53 PM#1
Salbrismind
Edit: I fixed my previous problem, but I have a new one.

I did this before in a map, where I was able to set the camera pretty high up. I need to do this again, but I can't remember how to fix this problem. Whenever The camera is pretty high up the game starts cutting out everything that is about 7000 or so away. Any ideas?
04-12-2008, 11:22 PM#2
Toadcop
set camera FarZ to 10K ? (it's the hardcoded limit)
Collapse JASS:
    constant camerafield CAMERA_FIELD_TARGET_DISTANCE       = ConvertCameraField(0)
    [b]constant camerafield CAMERA_FIELD_FARZ                  = ConvertCameraField(1)[/b]
    constant camerafield CAMERA_FIELD_ANGLE_OF_ATTACK       = ConvertCameraField(2)
    constant camerafield CAMERA_FIELD_FIELD_OF_VIEW         = ConvertCameraField(3)
    constant camerafield CAMERA_FIELD_ROLL                  = ConvertCameraField(4)
    constant camerafield CAMERA_FIELD_ROTATION              = ConvertCameraField(5)
    constant camerafield CAMERA_FIELD_ZOFFSET               = ConvertCameraField(6)


you can apply this via
Collapse JASS:
native SetCameraField               takes camerafield whichField, real value, real duration returns nothing

->

call SetCameraField(CAMERA_FIELD_FARZ,10000,0)

^^ hf
04-12-2008, 11:25 PM#3
Gorman
In game you can use control+mouse wheel to change it
04-12-2008, 11:32 PM#4
Salbrismind
FAR Z Jeez man, I saw that, but it didn't sound like what I used before XD. Thanks for the help!