| 10-09-2007, 11:50 PM | #1 |
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
![]() Conditions
![]() 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)
![]() ![]() For each (Integer Cameraloop) from 1 to 10, do (Actions)
![]() ![]() ![]() 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 rotationMap: Movement Test(1).w3x -Thanks for any help |
| 10-10-2007, 02:00 AM | #2 |
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 secondstry something around 10000 |
| 10-10-2007, 02:13 AM | #3 |
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 |
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 | |
Quote:
OHHH I see it now, Thank you so much! I'll test it now. Updated: Thanks alot, It works perfectly. +rep |
