HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Camera High Height Issue

10-09-2007, 11:50 PM#1
Salbrismind
Recently when I applied a camera scaling system I found an annoying problem...

After the camera gets to a certain height (above 5000 or so i bet) the whole map begins to fade to black to the point where the units are invisible.

Does anyone know of a way to prevent this?

I have already thought of scaling down all the units and speeds and such in my map then the camera would not have to ever go to a large height but such things require work.

Code:
Trigger:
Keep Camera On
Collapse Events
Time - Every 0.03 seconds of game time
Conditions
Collapse Actions
Set camerax = (((X of (Position of ship[1])) x -1.00) + (X of (Position of ship[2])))
Set cameray = (((Y of (Position of ship[1])) x -1.00) + (Y of (Position of ship[2])))
Set camerax = (camerax / 2.00)
Set cameray = (cameray / 2.00)
Set unitdistance = ((Distance between (Position of ship[1]) and (Position of ship[2])) x 1.00)
Collapse For each (Integer Cameraloop) from 1 to 10, do (Actions)
Collapse Loop - Actions
Camera - Set (Player(Cameraloop))'s camera Angle of attack to 270.00 over 0.00 seconds
Camera - Set (Player(Cameraloop))'s camera Height Offset to unitdistance over 0.00 seconds
Camera - Lock camera target for (Player(Cameraloop)) to ship[1], offset by (camerax, cameray) using Default rotation

Map: Movement Test(1).w3x

-Thanks for any help
Attached Files
File type: w3xMovement Test(1).w3x (22.2 KB)
10-10-2007, 02:00 AM#2
midiway
you only need to increase the Far Clipping Z value. Use this action:

Trigger:
Camera - Set Player 1 (Red)'s camera Far Z to XXX over 0.00 seconds

try something around 10000
10-10-2007, 02:13 AM#3
Salbrismind
Thanks, I'll try it. Does it increase the view distance or something?

Updated:Unfortunately your suggestion did not work. I tried it in many forms, first with it first at the start of the map only ran once, then constantly along with the other triggers. Then I reverse the number to negative 10k. None of this work, but then I had this thought to try field of view and it worked out with good results so i am going to keep at that for a bit. Thanks for the effort though.

Updated: (again) Not even the field of view works good. It offsets the camera way too high up.
10-10-2007, 03:53 AM#4
Ammorth
That is the game fog. Increase the z-start and end either in the map options, or using triggers.
10-10-2007, 10:52 AM#5
Salbrismind
Quote:
Originally Posted by Ammorth
That is the game fog. Increase the z-start and end either in the map options, or using triggers.

OHHH I see it now, Thank you so much! I'll test it now.

Updated: Thanks alot, It works perfectly. +rep