Author Topic: LOFTEMPS Viewer 3D  (Read 378 times)

Offline vdbomber

  • Squaddie
  • *
  • Posts: 4
    • View Profile
LOFTEMPS Viewer 3D
« on: April 11, 2024, 09:25:31 am »
Program made to see/check loftemps geometry.
  • Uses code to generate 3d from xcom files directly.
  • Uses MapView2 settings files to get to map blocks and other necessary files like MCD and DAT.
  • Made in Godot.

Example video
Spoiler:

Notes
  • Win64 version
  • Makes one text cfg file in exe folder to hold path to MapView2
  • TTFD files not tested

V6.51 update
Search by mapblock name.
Spoiler:

« Last Edit: April 16, 2024, 04:35:11 pm by vdbomber »

Offline kevL

  • Colonel
  • ****
  • Posts: 471
  • pitchforks and torches
    • View Profile
Re: LOFTEMPS Viewer 3D
« Reply #1 on: April 11, 2024, 09:36:11 pm »
sweet, nice job. @bulletdesigner was looking for something like this (but i wouldnt/couldnt do it that good in Mv2)

personal curiosity: did you use quaternions for camera movement?

Offline vdbomber

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: LOFTEMPS Viewer 3D
« Reply #2 on: April 12, 2024, 12:50:20 pm »
personal curiosity: did you use quaternions for camera movement?

Quaternion is used for rotation in Godot v4.
But i start writing code in Godot v3 with "ready to use script" for camera mouselook, when go for newer version, was need to make changes.
now its look like this, "basis" is current rotation
Spoiler:
   
# Mouse look by mouse position.
_mouse_motion.y = clamp(_mouse_motion.y, -1550, 1550)
transform.basis = Basis( Quaternion.from_euler( Vector3(_mouse_motion.y * Crotation, _mouse_motion.x * Crotation, 0) ))

Offline kevL

  • Colonel
  • ****
  • Posts: 471
  • pitchforks and torches
    • View Profile
Re: LOFTEMPS Viewer 3D
« Reply #3 on: April 13, 2024, 02:58:24 am »
nice :)

Offline vdbomber

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: LOFTEMPS Viewer 3D
« Reply #4 on: April 13, 2024, 12:01:59 pm »
as Godot is game engine.. something will work without much problem

first try
Spoiler:

second try
Spoiler:

second try different map
Spoiler:

Offline kevL

  • Colonel
  • ****
  • Posts: 471
  • pitchforks and torches
    • View Profile
Re: LOFTEMPS Viewer 3D
« Reply #5 on: April 14, 2024, 06:53:27 am »
looks like an excellent tool to check lofts and parts placement

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 678
    • View Profile
Re: LOFTEMPS Viewer 3D
« Reply #6 on: April 16, 2024, 12:45:50 pm »
great tool! also works easy and intuitive, only issue i got was giving the path i only manage to do it in the .cfg document ( i got the paths on desktop, maybe that was the issue)

Offline vdbomber

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: LOFTEMPS Viewer 3D
« Reply #7 on: April 16, 2024, 04:33:42 pm »
great tool! also works easy and intuitive, only issue i got was giving the path i only manage to do it in the .cfg document ( i got the paths on desktop, maybe that was the issue)
Thanks.
Should work with any path to "MapView2", only thing - path you choose should have "settings" folder and MapResources.yml and MapTilesets.yml in this "settings" folder.
If paths an issue i can remade it directly to "choose folder with files" or make two "text input" fields with "select files option".
Not hard to do.

Also found bug.
For some reason Godot string function "rstrip" is removed extra char from name of MCD file.
It was only one file name of them i tested.
Fixed, version 6.511 in first post.

« Last Edit: April 16, 2024, 04:43:50 pm by vdbomber »