Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Object adapt to terrain

  1. #11
    Master Gunnery Sergeant Rydygier's Avatar
    Join Date
    Aug 22 2011
    Location
    Poland, Pomerania
    Posts
    1,063
    I didn't know that. If that is true, then indeed problem is solved far simplier.

    ---------- Post added at 21:48 ---------- Previous post was at 21:18 ----------

    I did some tests. First spawn the building:

    PHP Code:
    bld="Land_A_BuildingWIP" createvehicle (getposasl tr1);bld setdir (getdir player); 


    (some sleep)

    then adapted to the surface with both methods:

    1.
    PHP Code:
    bld setVectorUP (surfaceNormal [(getPosATL bldselect 0,(getPosATL bldselect 1]); 



    2.
    PHP Code:
    bld setPos (getpos bld); 


    As we can see both methods give acceptable effects, but slightly different on given slope. Another vector calculating method, or something else in my code makes a difference? As this is here for precision adjustment, this may be important difference.

  2. #12
    That kind of makes sense, when using the vector your only tilting the building from it's current position which will be higher than normal due to the uneven ground.

    If that makes sense.

  3. #13
    Model makes difference too dont forget

    http://community.bistudio.com/wiki/O...al#LandContact

    AND

    placement Assigns specific deformation according to the terrain shape map surface

    slope
    // the model is SKEWed according to the terrain shape, vertical lines remain vertical. Better than vertex property “Keep height “ in many cases


    SlopeLandContact

    placement=slopeZ

    placement=slopeX

    // variants where the transformation counts with landcontact defined points (1-3)

    placement=vertical

    // added for RADAR station (CHANGELOG 1.05 - 1.06)

    A chopper cup of Coffee in a chopper coffee pot
    TOH Now with added Coffee
    http://www.helpivanmartin.org/

  4. #14
    All I want is that my object that i made this way is the same as the way it has been created in that editor mod, so far that has not worked yet.

  5. #15
    Maybe a config issue if you made it, how does it line up on flat ground.

    I found setpos does level some things but not all, using the setVectorUP (surfaceNormal code fixed that.

  6. #16
    I made this thread to not having to redo all the 75 manual soldier coordinates, though I realized theres no use of continuing this thread, unless someone has the exact same way as the creator of Map Editor Upgrade mod of placing objects, i'll just redo the coordinates.
    I found a nice building that is already in the game... grid 114078, same building as i used to have, theres also one in chernogorsk, but for a hostage rescue mission i'd like it more in an abandoned place.

    thanks for your efforts, all of you.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Making an Object form to terrain
    By FuzzySquirrel in forum ARMA 2 & OA : MODELLING - (O2)
    Replies: 1
    Last Post: Jul 2 2012, 13:17
  2. Align object/multiple objects to terrain?
    By McNools in forum ARMA 2 & OA : TERRAIN - (Visitor)
    Replies: 16
    Last Post: Nov 17 2011, 06:37
  3. Matching the object to the terrain texture
    By jezpops in forum ARMA : O2 MODELLING
    Replies: 0
    Last Post: Feb 21 2008, 04:48
  4. how can i adapt a finnished mission in the editor?
    By lorence_lin in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 5
    Last Post: Mar 20 2007, 05:19
  5. Getting a forest object to follow terrain
    By SelectThis in forum OFP : O2 MODELLING
    Replies: 1
    Last Post: Jul 19 2002, 04:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •