sketchucation logo sketchucation
    • Login
    1. Home
    2. aile009
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Groups 1

    aile009

    @aile009

    10
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    aile009 Unfollow Follow
    registered-users

    Latest posts made by aile009

    • RE: [Plugin] Heightmap from model

      @didier bur said:

      Hi,
      Before using the tool, open the Ruby console and type:

      Sketchup.active_model.bounds.min.z  (Enter)
      > Sketchup.active_model.bounds.max.z  (Enter)
      

      This will output the minimum and maximum altitudes in your model (in inches).
      Hope this helps,

      Thank you very much.
      I have got some code and made a .rb file by myself,
      it can label the min and max elevation value (in current unit setting)
      Anyway, thanks again for your reply.

      posted in Plugins
      A
      aile009
    • RE: Terrain elevation calculator

      @sdmitch said:

      To find the location of the highest and lowest points, you would need to look at every edge making up the terrain mesh. The only way to do this efficiently would be a plugin such as

      
      > def label_high_low
      > mod = Sketchup.active_model
      > ent = mod.active_entities
      > sel = mod.selection
      > hi_pt=nil;lo_pt=nil;hi=-1e9;lo=1e9
      > hi_vec=[0,0,2400];lo_vec=[0,0,-2400]
      > grp=sel.first;#select the GE 3D terrain 
      > grp.entities.each{|e|
      >   if e.class==Sketchup;;Edge
      >     (hi=e.start.position.z;hi_pt=e.start) if e.start.position.z>hi
      >     (lo=e.start.position.z;lo_pt=e.end) if e.start.position.z<lo
      >     (hi=e.end.position.z;hi_pt=e.end) if e.end.position.z>hi
      >     (lo=e.end.position.z;lo_pt=e.end) if e.end.position.z<lo
      >   end
      > }
      > ent.add_text(hi.to_s,hi_pt.position,hi_vec)#label the high point
      > ent.add_text(lo.to_s,lo_pt.position,lo_vec)#label the low point
      > end
      > 
      

      This episode code is the right thing i'm looking for. It provides an addititonal option
      for Mesh2Heightmap. because the mesh2heightmap generate a greate heightmap but not provide
      the minimum and maximum elevation values without which i can not use this map to generate
      an accurate terrain.

      posted in Plugins
      A
      aile009
    • RE: [Plugin] Heightmap from model

      @didier bur said:

      Hi all,
      After a long silence, here is another toy I wrote to export SU terrains to Unity3D game engine, which uses RAW heightmaps to create terrains. I thought it could be of any interest to others, so here it is.
      Features:

      • creates BMP or RAW images, greyscale or color, 8 bits or 16 bits from any view of your model (top view recommanded of course)
      • creates a colored mask where no faces found in the view
      • can crop the image to the model projection
      • can blur the heightmap before writing it.

      Extract in Plugins folder, PDF doc included.

      Regards,

      EDIT: new release May 5th 2010, instant bugsplat fix ๐Ÿ˜›

      hi, i'm using heightmap from model plugin, and have got the heightmap. but i don't know the minimum and maximum elevation of the mode. Does the plugin provide these values? Without these values i can't generate a accurate terrain in other 3D software.

      posted in Plugins
      A
      aile009