Jump to content
Sign in to follow this  
PurpleGaga27

For those modders having trouble with the camera settings involving skyboxes

Recommended Posts

Modders, take note of this when doing a C&C/KW mod using skyboxes.

 

A Chinese modder (C1CTWC) positioned the camera settings correctly with the custom skyboxes he inputted into C&C Generals 2 mod for C&C3. No other C&C3/RA3 mod I have seen has those camera settings corrected as it should be. With this, the geometry health boxes should not be affected when zooming in or out.

 

From the gamedata.ini (with this portion of the camera settings and draw skybox must be set to yes):

 

  DownwindAngle = -0.785    ; Northeast! AKA "Away and to the right"

  DrawSkyBox = Yes



    //------------------------------------------------------------------------------------------------------------

    //These are the primary camera settings

    //****CHANGING ANY OF THESE VALUES WILL AFFECT CINEMATICS*****

    //------------------------------------------------------------------------------------------------------------

    DefaultCameraMinHeight            = 100.0    ;The minimum height of the camera relative to the terrain.

    DefaultCameraMaxHeight            = 500.0    ;The maximum height of the camera relative to the terrain.

    DefaultCameraPitchAngle            = 37.5    ;The pitch angle of the camera off top down view.

    DefaultCameraYawAngle            = 0.0    ;The direction the camera faces by default.

    DefaultCameraScrollSpeedScalar            = 1.0    ;How much faster or slower all scrolling is.

    //------------------------------------------------------------------------------------------------------------

    //****DO NOT CHANGE ABOVE VALUES *********

    //****PS: These values haven't been changed since original Generals anyways, this is an educational message.

    //------------------------------------------------------------------------------------------------------------

    //------------------------------------------------------------------------------------------------------------

        

    JoypadScrollScalar = 1.0

    CursorMagnetismMode = 2

    CameraLockHeightDelta = 150.0

    CameraTerrainSampleRadiusForHeight = 1.0 ;Controls how sensitive the camera height adjust is to nearby terrain. If you move the camera near a mountain, it'll raise up sooner with a large value.



  ;;OK TO UNCOMMENT ;;  CameraEaseFactor = 0.2 ;for softening the tethered camera (while locked to an object or a drawable)

 

  ;These figures are compatible with the new 25-degree projection angle

  MaxCameraHeight = 400.0  ;230.0

  MinCameraHeight = 100.0

 

  UseCameraInReplay = No    ; Not working, don't use it yet.

  CameraAdjustSpeed = 0.5       ; between 0 and 1 - this is how fast the camera snaps to the desired height

  ScrollAmountCutoff = 50.0      ; arbitrary units - above this value, we don't update height while scrolling

  ScrollPitchMultiplier = 0.63     ; The amount the camera pitches when zooming in and out.

  EnforceMaxCameraHeight = No      ; Obey max camera height while scrolling?

  TerrainHeightAtEdgeOfMap = 100.0

  UnitDamagedThreshold = 0.66

  UnitReallyDamagedThreshold = 0.33

  GroundStiffness = 0.8

  StructureStiffness = 0.3

Share this post


Link to post

1. If you refer to the issue of the growing pickbox+healthbar while scrolling when zoomed in...that still happens with those settings.

 

2. Most of the camera settings are slaved to the map settings, so changing min and max zoom is arbitrary for the most part, changing the pitch above 45 usually tends to end in clipping the ground, so i wouldnt recommend that.

 

So this either solves nothing or am i missing the issue?

Share this post


Link to post

Pickbox and healthbar doesn't get bigger arbitrary, it gets bigger because... well it takes up more space on the screen.

Share this post


Link to post

Pickbox and healthbar doesn't get bigger arbitrary, it gets bigger because... well it takes up more space on the screen.

i meant that part in relation to the map vs gamedata settings. If you set a camera min and max of 0 and 1000, that it wont work if the map is set to 100 and 500. vice versa would work iirc. So to an extent the camera settings in the ini file are secondary to the map settings. Always been told to make your map "bigger" then what you need it to be, to leave room for camera angles and hide ofscreen spawns out of the borders etc. And ofc in relation to min and max height to always leave room to work between and never use absolute values.

Share this post


Link to post

I didn't mean to contradict you, just the other people here.

Yes settings in the gamedata.ini are default settings for the WorldBuilder basically, but these settings are saved per map. Also yes making your map about 20 units bigger at the sides is important, otherwise you have really ugly cutoffs which are especially visible on uneven terrain.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×