Elvas Tower: 3D Import Ratios Guide - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

3D Import Ratios Guide Rate Topic: -----

#1 User is offline   Angel 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 10
  • Joined: 12-March 23
  • Gender:Male
  • Simulator:Open Rails New year 147
  • Country:

Posted 05 November 2023 - 11:55 AM

Could someone give me a proportions guide?, it's to make a 3D model and import it into Open Rails

#2 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 05 November 2023 - 02:02 PM

Hi,

Which 3d modelling tool are you using? If you are using Blender, for instance, the Blender measurement units get translated into OR as Metres automatically.

Geoff

#3 User is offline   pwillard 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 807
  • Joined: 03-March 08
  • Gender:Male
  • Location:Cumming, Ga
  • Simulator:OpenRails
  • Country:

Posted 05 November 2023 - 03:47 PM

However, metres are *default* and you might have tried to open a drawing file that used Imperial units (Those Americans... at it again)... in which case, you would need to scale the imported object by 0.3048 as we used to do with 3D Canvas/Crafter or `S 0.3048` in Blender.

Or in Blender Python


import bpy

# Set the desired metric scale factor (1 foot = 0.3054 meters)

scale_factor = 0.3054

# Set the units to metric
bpy.context.scene.unit_settings.system = 'METRIC'
bpy.context.scene.unit_settings.scale_length = scale_factor

# Iterate through all objects in the scene
for obj in bpy.data.objects:
    if obj.type == 'MESH':
        # Scale each object by the scale factor
        obj.scale.x *= scale_factor
        obj.scale.y *= scale_factor
        obj.scale.z *= scale_factor

# Update the scene to reflect the changes
bpy.context.view_layer.update()

# Print a message to confirm the conversion
print("Converted all objects to metric measurements.")









Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users