[Plugin] Bitmap To Mesh
-
What image are you feeding it?
How large?
If you keep the Ruby Console open, do you get error messages? -
@thomthom said:
What image are you feeding it?
How large?
If you keep the Ruby Console open, do you get error messages?
I am using a jepg emage that I exported as a bmp. emage. It is 395x640px.I set the width at 6 5/8" and typed in the depth at 1/8". The ruby console showes Bitmap to mesh.
processing data took:4.6175s
After a few min. console goes blank with a white screen and the curser turns to a hour glass. This is the way it stays. -
For how long?
Can you post the image you're using? -
-
Impressive plugin ThomThom! Wow!
(I obviously need a better displacement map for this tile now.)
-
Further testing... just want to re-iterate what a great plugin you have here.
-
It's fun to see all the creations from this.
-
What if you could make an image file that could encode for overhangs?
Basically it would be a flat image with a curvy perimeter within the rectangle that when smooshed would make a rectangular-based object that would include overhangs, and potentially tunnels (A perimeter within a perimeter, matched with another across the map.) Also a different color perimeter or lack thereof would create sphere or bumpy boulder, or even a planet if your memory can handle it.
So right now is is black and white for basic z-height. How much information could be encoded using rgb? Red values might indicate what pixels it lines up with, blue indicates order and green indicates height or distance.
Using the perimeter as an encoding medium for the flattened surface for distance it must go for the final product.
This was just a random idea I had a few minutes ago while thinking about this plugin, it is possible but the way might not be very straight-forward. The image format might have to be something more than a .bmp. Also a good thing that might come out of this is large scale compression potential. Also organic shapes...
Bryan
-
hey, excellent tool, similar to the terrain editor in vue but with your script you can work to a scale.
2 questions;how do you map a texture to a non flat surface in su?
I usually un soften/smooth edges and muck around with the eyedropper in the material toolbar which is a long process at the best of times, but with the hundreds/thousands of faces generated using this plugin thats not an option.I was also wondering if it would be possible to use a bitmap from an object in your scene to generate the mesh, say like you have texture mapped a cube for example, with 1 texture on all faces, you select the object, then generate mesh on all the mapped faces.Possible? too difficult? Just an idea from someone with no idea.
Thanks again for the plugin. -
just found the answer to my first question, projected texture. much easier
-
@keyston said:
I was also wondering if it would be possible to use a bitmap from an object in your scene to generate the mesh, say like you have texture mapped a cube for example, with 1 texture on all faces, you select the object, then generate mesh on all the mapped faces.Possible? too difficult? Just an idea from someone with no idea.
It'd be challenging to make the mesh work between faces, but the biggest problem is that it would most likely create a mesh that is all too dense for SketchUp to handle.
-
wow every good I like this plugin
becouse I am used it in ornamentation
thnx
-
Thomas, I love it. I have the mesh made, but struggling to find the right image size to make the mesh workable. I've broken the image down into 6 parts and I have a mesh, but can't get a texture applied. SU crashes.
I've been able to apply the texture when it's grouped, but the image gets applied rotated 180 deg.
So, for anyone, is there a way to simplify the mesh first? Would that actually help in applying the projected texture?
SU8.0.3117, File is 98mb
-
ItΒ΄s a great plugin. Thanks Thomas.
-
@ben ritter said:
So, for anyone, is there a way to simplify the mesh first? Would that actually help in applying the projected texture?
If you need a simpker mesh, resample the bitmap you generated it from down. Less pixels - simpler mesh.
-
I will try the resampling. Any idea why the image gets turned around?
-
@ben ritter said:
I will try the resampling. Any idea why the image gets turned around?
Got a screenshot? I'm not sure if I understand what you describe.
-
Dear tomtom, I'ven;t tested your plugin yet, seems to be great and so many thanx, but as a suggestion to reduce faces and improvement, maybe you could add an option for merging co-planar faces
-
@thomthom said:
@ben ritter said:
I will try the resampling. Any idea why the image gets turned around?
Got a screenshot? I'm not sure if I understand what you describe.
Thomas, thanks for your help, I can't seem to recreate that scenario now, but here's what happens when I try to project the texture above it. I get bits and pieces onto the mesh.
-
@majid said:
Dear tomtom, I'ven;t tested your plugin yet, seems to be great and so many thanx, but as a suggestion to reduce faces and improvement, maybe you could add an option for merging co-planar faces
You could run CleanUp afterwards.
Advertisement