Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: setposasl madness

  1. #1


    All of these wall sections have the same absolute altitude and vector.

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setPosASL &#91;&#40;getPosASL this select 0&#41;, &#40;getPosASL this select 1&#41;,203&#93;; this setVectorUp &#91;0, 0, 1&#93;;[/QUOTE]

    But they all at different heights. What is this madness?
    Documentation is not a dirty word.
    : TeamSPAFF : PRACS : RKSL : Stella Artois : Creme Eggs : GITS :

  2. #2
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,059
    Author of the Thread
    And these two huts are 10 cm apart. One is 202.1 and the other is 202.2


  3. #3
    Never used the code you do, so I can&#39;t tell. Maybe the position is relative to terrain ?

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setpos &#91;getpos this select 0, getpos this select 1, &#40;getpos this select 2&#41; +1&#93;[/QUOTE]
    - works fine for me

  4. #4
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,059
    Author of the Thread
    There is another topic about it I&#39;ve found since I wrote this. setposasl is supposed to be absolute to sea level, but when you stack to on top of the other, things get all weird. In those pics, the big stone pedestal is placed using setposasl to get all 3 parts of it level, but then trying to put stuff on top makes it go all screwy.

    Men and vehicles fall to the ground (or what ever object they are on) when the game starts, but buildings stay exactly where they start. They don&#39;t seem to be subject to gravity.

    Anyhow, I&#39;ve used setpos for the buildings on top and that seems to work, though it takes masses of fine tuning. Setposasl really is a dropped ball here. If it worked as advertised, it&#39;d be fantastic, but as with so many things under the bonnet of ArmA, it&#39;s badly flawed.

  5. #5
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,059
    Author of the Thread
    Quote Originally Posted by (Deadfast @ Nov. 29 2007,16:43)
    Never used the code you do, so I can&#39;t tell. Maybe the position is relative to terrain ?

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setpos &#91;getpos this select 0, getpos this select 1, &#40;getpos this select 2&#41; +1&#93;
    - works fine for me[/QUOTE]
    No that&#39;s the whole point of setposasl, it&#39;s relative to sea level, so should be constant around the whole game world. It&#39;s supposed to ignore terrain heights. Setpos is indeed height above terrain.

  6. #6
    Quote Originally Posted by (TankbusterSPAFF @ Nov. 29 2007,17:05)
    though it takes masses of fine tuning.
    Thats why we need some sort of 3d Editor so things like this can be done in one swift movement.

    MattXR ( MxR )

    Check out my Twitter BIS Fans and Sub!
    -- MRKCCO Twitter --


  7. #7
    Maybe it takes wave height into consideration

  8. #8
    Quote Originally Posted by (TankbusterSPAFF @ Nov. 29 2007,22:14)
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setPosASL &#91;&#40;getPosASL this select 0&#41;, &#40;getPosASL this select 1&#41;,203&#93;; this setVectorUp &#91;0, 0, 1&#93;;
    [/QUOTE]
    I havent had issue with it.
    Is it in the right position BEFORE you setVectorUp ?

  9. #9
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,059
    Author of the Thread
    Yes, it was.
    I dropped the objects in, position them, then setposasl them, then last of all, set the vector.

  10. #10
    its the roadway/pathway lods they mess with heights(even setposasl as in ofp) especially near steps

    try modeltoworld from biki.

    for experimenting combine it with boundingbox . this way you can find max z extremity of the founder building and set according to this using RELPOS

Page 1 of 2 12 LastLast

Posting Permissions

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