Projecting Images in Meshlab?

Discussion in 'Software and Applications' started by jaxelrod, Dec 16, 2012.

  1. jaxelrod
    jaxelrod New Member
    I have a project which requires me to orthogonally project an image directly onto a rectangular (in the xy plane) surface. The surface has large variation in z-elevation since it is a topographic dataset. However, whenever I try to project my raster layer onto the mesh in Meshlab, it never quite aligns correctly (the image is projected such that it does not entirely cover the mesh). I have a suspicion that this has something to do with Meshlab wanting to use perspective when calculating its projection, but I DON'T want that. I merely want to drop each pixel value from the image directly down onto the mesh.

    Does anyone know how to do this? It really doesn't even need to happen in Meshlab if it can be done elsewhere (I have Autodesk Maya, but have never used it before. I'm also proficient in MATLAB, which is where I have been generating the STL meshes I've been working with in Meshlab). I'm looking for a finished product ready to export as .x3d or .wrl for color printing in sandstone.

    -Thanks in advance from a first-time user
  2. neuralfirings
    neuralfirings New Member
    I've been experimenting with topo maps in Blender, I'm not as familiar with Meshlab though.

    Do you need hard edges or soft edges?

    If soft edges, I find that it's important to align it well (subdivisions to pixels) in Blender. If you email me and send the height map you're using, I can better help you out as well.

    nancy at

  3. jaxelrod
    jaxelrod New Member
    It would be difficult to send you the mesh(es) and image(s) since the mesh is about 40MB...
  4. Fredd
    Fredd New Member
    at 40MB its going to have enough mesh resolution to be sure. Blender does have UV project which sounds rather like what you are attempting. Blender is free and the technique only has maybe 7 steps. Might be worth looking into. There are several sites, and irc channels you can get help at.

  5. jaxelrod
    jaxelrod New Member
    Sorry, but I'm a total noob at GUI modeling programs for aesthetic creation. Can you please point me in the right direction?

    I've found that the problem in Meshlab is that when I project the image, it projects it onto the XY plane from the camera location, which means that anything in front of the XY plane will have a smaller image (like putting your hand in front of a slide projector). However, I cannot figure out how to make the camera have an orthogonal field of view (equivalent to having it infinitely far away with a FOV in the limit of 0 degrees) I'm stumped. It's SUCH a simple thing to do, so I can't imagine why it seems so hard. I have all of the data arranged, it's just not in the data structure (i.e. file format) that Shapeways needs to print. And so I'm having to delve into imprecise GUI stuff to make that leap.