Bug #3983

modelToWorld bug

Added by Mandoble almost 6 years ago. Updated over 4 years ago.

Status:Expired Start date:08/24/2009
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Scripting: Problem
Target version:-
Affected ArmA II version:1.05.62017 First affected build:
Reproduced by another DH user:Yes First affected ArmA II version:
I am using some Mods:No Single / Multi Player?:
I am using: BIForumURL:
Reproducible for you:No NGUrl:
Related to content of DLC: WIKIurl:

Description

ModelToWorld command returns totally wrong coods when the resulting coords are over buildings or big ships. While for a camera object all seems to work well, using camSetTarget and camSetRelPos the resulting placement of the camera seems correct always. While placing an object on the resulting coords of modelToWorld fails almost always when the over structures like the LHD, buildings, etc.

The attached mission is quite self explanatory and shows how some commands fails and how the camera ones works, and how distance command returns 13m when getPos command returns similar coords for both objects involved in the test.

I would say this is a CRITICAL bug that might cause all kind of problems when placing objects over these structures. These problems might also be present for ASL commands, while not tested yet.

modelToWorld_bug.utes.zip (2 kB) Mandoble, 08/24/2009 23:55


Related issues

related to ARMA2 Community Issue Tracker - Bug #2139: setPos/getPos is relative to the nearest roadlevel Closed 06/19/2009 08/20/2009
related to ARMA2 Community Issue Tracker - Feature #4993: modelToWorldASL/worldToModelASL/worldToScreenASL commands Assigned 10/03/2009
related to ARMA2 Community Issue Tracker - Bug #5109: Battlefield Clearance Module - Units fall through buildings Closed 10/11/2009
related to A.C.E. for OA - Bug #10981: SACLOS guidance system missiles stall when fired from a s... Closed 06/03/2010 06/04/2010

History

Updated by zGuba almost 6 years ago

  • Due date set to 09/10/2009
  • Category set to Scripting: Problem
  • Status changed from New to Feedback

Updated by zGuba almost 6 years ago

  • Affected ArmA II version changed from Please select... to 1.03.58627

Updated by zGuba almost 6 years ago

  • Due date changed from 09/10/2009 to 09/25/2009
  • Status changed from Feedback to Assigned

Updated by zGuba over 5 years ago

  • Due date changed from 09/25/2009 to 10/25/2009
  • Status changed from Assigned to Feedback
  • Assignee set to Mandoble
  • Reproduced by another DH user set to No

Updated by zGuba over 5 years ago

  • Due date changed from 10/25/2009 to 11/25/2009
  • Status changed from Feedback to Assigned
  • Affected ArmA II version changed from 1.03.58627 to 1.04.59026
  • Reproduced by another DH user changed from No to Yes

Updated by zGuba over 5 years ago

  • Subject changed from modelToWorld bug and possible getPos bug too to modelToWorld bug

There already is getPosATL command.

Updated by Mandoble over 5 years ago

That seems to be a little of nonsense command, as it returns height above terrain even when at sea (height over sea bottom), your ATLPos over sea and at sea level might be +83m. So we definitively lack of something as basic as a credible command to get your position over ground (including sea as ground). Current getPosATL is in no way an option over getPos, and getPos returns wrong heights over buildings (returns your height over the building without considering the height of the building itself, this happens also with getPosASL), while setpos pos you at the indicated height over a building, instead of the indicated height over terrain.

Updated by zGuba over 5 years ago

So it needs separate feature request / bug report...

Updated by zGuba over 5 years ago

  • Due date changed from 11/25/2009 to 01/01/2010

Updated by kju over 5 years ago

  • Due date changed from 01/01/2010 to 03/02/2010

Updated by zGuba over 5 years ago

  • Due date changed from 03/02/2010 to 05/02/2010
  • Affected ArmA II version changed from 1.04.59026 to 1.05.62017

Updated by zGuba about 5 years ago

  • Assignee deleted (Mandoble)

Updated by zGuba about 5 years ago

  • Due date changed from 05/02/2010 to 09/14/2010

Updated by Vigilante about 5 years ago

what about using a cameraobject as 'helperobject'? ie.. positioning the camera to the correct position, then use the following after placing this helperobjectcamera..
_worldPos = positionCameraToWorld _helperCamPos;
.. then deleting the helperobject cameraobject.. ? that should give out the 'corrected' position for any object? would that fix your problem?

Updated by kju about 5 years ago

  • Due date changed from 09/14/2010 to 07/15/2010
  • Status changed from Assigned to Feedback

Mando does the suggestion help?

Updated by kju over 4 years ago

  • Due date deleted (07/15/2010)
  • Status changed from Feedback to Expired

Please reopen if still true.

Also available in: Atom PDF