[Plugin] Bitmap To Mesh

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Scott M » Sun Oct 31, 2010 7:18 pm

thomthom wrote: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.
1

Scott M 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Sun Oct 31, 2010 7:23 pm

For how long?
Can you post the image you're using?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Scott M » Sun Oct 31, 2010 9:28 pm

thomthom wrote:For how long?
Can you post the image you're using?
Sorry it took so long to reply.It will stay that way as long as sketchup is up. I let it run for about 1 hour. I will attach the image.
0

Scott M 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Fletch » Tue Nov 16, 2010 10:19 pm

:shock: Impressive plugin ThomThom! Wow!
(I obviously need a better displacement map for this tile now.) :lol:
0

Fletch 
Twilight Render
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Fletch » Wed Nov 17, 2010 3:28 pm

Further testing... just want to re-iterate what a great plugin you have here.
0

Fletch 
Twilight Render
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Wed Nov 17, 2010 3:51 pm

It's fun to see all the creations from this. :D
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Ghalko » Tue Nov 23, 2010 11:22 pm

:idea: 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
0
Arrrggghhh! Why won't it make a face!!! Stupid, no good piece of... Oh look! The line went to the wrong point. Whew... moving on. (My fights with sketchup.)

Ghalko 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby keyston » Sat Dec 04, 2010 10:25 pm

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. :idea: :thumb: :thumbd: :?:
Thanks again for the plugin.
0

keyston 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby keyston » Sat Dec 04, 2010 11:53 pm

just found the answer to my first question, projected texture. much easier :roll:
0

keyston 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Mon Dec 06, 2010 7:01 pm

keyston wrote: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. :idea: :thumb: :thumbd: :?:

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby jamalito » Thu Dec 09, 2010 9:41 pm

wow every good I like this plugin
becouse I am used it in ornamentation
thnx
1
Albert Einstein:
((I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.))
User avatar
jamalito 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Ben Ritter » Mon Dec 13, 2010 6:28 pm

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
0

Ben Ritter 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Matias Germán » Tue Dec 14, 2010 1:47 am

It´s a great plugin. Thanks Thomas. :thumb:
0

Matias Germán 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Tue Dec 14, 2010 8:12 am

Ben Ritter wrote: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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Ben Ritter » Tue Dec 14, 2010 3:20 pm

I will try the resampling. Any idea why the image gets turned around?
0

Ben Ritter 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Tue Dec 14, 2010 3:21 pm

Ben Ritter wrote: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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby majid » Tue Dec 14, 2010 8:47 pm

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
0
My V-Ray book for architects: https://goo.gl/cz1oRc
User avatar
majid 
Top SketchUcator
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Ben Ritter » Tue Dec 14, 2010 9:47 pm

thomthom wrote:
Ben Ritter wrote: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.
0

Ben Ritter 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Tue Dec 14, 2010 11:46 pm

majid wrote: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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Fletch » Wed Dec 15, 2010 1:32 pm

Ben, look at my example of roof tile above very closely - you will see that you should use a TINY .bmp... I mean TINY.

Then scale the mesh that is generated UP in SketchUp, then PROJECT your texture DOWN onto the face. Be sure the texture position is set to PROJECTED.

Remember that BLACK is the lowest point, and WHITE is the HIGHEST point on the final mesh... so make sure to create your displacement map appropriately... a sketch like that is not likely to give you the exact results you want... depending on what you want I guess.

Thom Thom, I used your plugin to help me create this image... thanks again! :thumb:
It is KEY to use a very good displacement map and very small resolution.
0

Fletch 
Twilight Render
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Wed Dec 15, 2010 2:02 pm

Fletch - how did you do that?
A plugin that inserts components at vertices?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Dave R » Wed Dec 15, 2010 2:04 pm

Fletch, that is way cool! It looks like an On/Off button but makes me think it's label could be changed by controlling which pins are up and which are down.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Ben Ritter » Wed Dec 15, 2010 6:11 pm

Fletch wrote:Ben, look at my example of roof tile above very closely - you will see that you should use a TINY .bmp... I mean TINY.

Then scale the mesh that is generated UP in SketchUp, then PROJECT your texture DOWN onto the face. Be sure the texture position is set to PROJECTED.

Remember that BLACK is the lowest point, and WHITE is the HIGHEST point on the final mesh... so make sure to create your displacement map appropriately... a sketch like that is not likely to give you the exact results you want... depending on what you want I guess.

Thom Thom, I used your plugin to help me create this image... thanks again! :thumb:
It is KEY to use a very good displacement map and very small resolution.


Fletch, thanks for the reminders. The bmp was a scanned in sketch that I tried. Perhaps not the best to use. Thank you anyway.
0

Ben Ritter 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Gaieus » Thu Dec 16, 2010 1:21 pm

thomthom wrote:Fletch - how did you do that?
A plugin that inserts components at vertices?

Here is a bit of the workflow.
http://twilightrender.com/phpBB3/viewto ... =26&t=2208
0
User avatar
Gaieus 
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby thomthom » Thu Dec 16, 2010 1:28 pm

The board requires you to be registered and logged in to view this forum.

:(
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.2.0b) — 03 October 2010

Postby Gaieus » Thu Dec 16, 2010 1:35 pm

Ah yeah, that is a restricted area for license holders.

Anyway, it's drop.rb. ;)
0
User avatar
Gaieus 
 

Re: [Plugin] Bitmap To Mesh (0.3.0b) — 21 December 2010

Postby thomthom » Tue Dec 21, 2010 6:26 pm

Version 0.3.0b
  • Renamed Mesh From Bitmap to Mesh From Heightmap
  • Added new Mesh From Bitmap
MeshFromBitmap.png


Known bug:
Flipped image isn't properly recognised.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Bitmap To Mesh (0.3.0b) — 21 December 2010

Postby jeffschaid01 » Sat Feb 05, 2011 9:30 pm

Hello,

After importing the bmp, I've adjusted height, width, etc. The program then follows through by indexing points and generating a mesh. After that I'm attempting to export as a vrml and the program continues to crash at 49%. I'm sure doing something incorrectly but not sure what. Any suggestions?

Thanks,
Jeff
0

jeffschaid01 
 

Re: [Plugin] Bitmap To Mesh (0.3.0b) — 21 December 2010

Postby jeffschaid01 » Sat Feb 05, 2011 10:52 pm

Hello,

Are further steps needed prior to exporting as vrml after height, width and depth adjustments have been made along with point indexing and mesh generating? All of these steps have been completed but SU is crashing at the 49% mark while exporting as vrml. Any help will be greatly apprecaited.

Thanks,
Jeff
0

jeffschaid01 
 

Re: [Plugin] Bitmap To Mesh (0.3.0b) — 21 December 2010

Postby thomthom » Sun Feb 06, 2011 11:02 am

jeffschaid01 wrote:Are further steps needed prior to exporting as vrml after height, width and depth adjustments have been made along with point indexing and mesh generating? All of these steps have been completed but SU is crashing at the 49% mark while exporting as vrml. Any help will be greatly apprecaited.

VRML? What are you using to export that?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], chemotherapy, Google Bot, Magardi, Maria 12345, tamachan and 43 guests

Visit our sponsors: