[Plugin] Bitmap To Mesh

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby TIG » Fri Sep 23, 2011 6:43 pm

What's inside the TT_Lib2 folder ?
When you say, 'It does not work...', what do you mean ?
For example...
Are there no menu items visible ? [see my recent post for detail of these]
Or do the menu items seem to do nothing ?
Are there are error messages displayed in the Window > Ruby Console when you run it ?
If you type [or copy+paste] this
TT::Plugins::BitmapToMesh.bitmap_to_mesh_tool()
+ <enter> in the Ruby Console what happens ?
It it works recheck the menu items I mentioned... :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby marcomartim » Fri Sep 23, 2011 6:43 pm

TIG wrote: That folder us called TT_Lib2 and it goes into the Plugins folder. It should contain lots of files and some subfolders inside it after the extraction, just as they are in the zip file when you view its contents... :?


I know the plugin and its installation.; Used often
Everything is correct, the files are all present, but for some reason does not work.


tested with various BMP 100x100 pixels.

It does not work, nothing happens.
0
Last edited by marcomartim on Fri Sep 23, 2011 7:24 pm, edited 1 time in total.

marcomartim 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby marcomartim » Fri Sep 23, 2011 6:53 pm

TIG wrote:If you type [or copy+paste] this
TT::Plugins::BitmapToMesh.bitmap_to_mesh_tool()
+ <enter> in the Ruby Console what happens ?:


He opens the window to call the bimap,
made the selection BMP + enter​​,
window appears after the figure:

0
Last edited by marcomartim on Fri Sep 23, 2011 7:25 pm, edited 1 time in total.

marcomartim 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby marcomartim » Fri Sep 23, 2011 7:02 pm

Test File (bimap)
quadrado.bmp
0

marcomartim 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby marcomartim » Fri Sep 23, 2011 7:21 pm

I discovered what may be causing the problem

I put the file "quadrado.bmp" at the root of C: / / and it worked.

Thus probably a plugin or library has problems with Win7 versions in other languages (not find the BMP)




Thanks for the help
0
Last edited by marcomartim on Fri Sep 23, 2011 8:10 pm, edited 1 time in total.

marcomartim 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby TIG » Fri Sep 23, 2011 7:37 pm

I can see a problem :idea: - accented-characters in file-paths can cause problems in some Ruby functions - like File reading and checking.
When you moved the bitmap file to C:/quadrado.bmp it worked because there were no accents in the path, BUT Usuário [your name!] has the accent in the path to the file on your Desktop!
Try renaming your account to Usuario and it should then work!
So the lesson is avoid accented-characters in folder-names and file-names that might be needed in Ruby code...
:roll:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby marcomartim » Fri Sep 23, 2011 7:57 pm

TIG wrote:I can see a problem :idea: - accented-characters in file-paths can cause problems in some Ruby functions - like File reading and checking.
When you moved the bitmap file to C:/quadrado.bmp it worked because there were no accents in the path, BUT Usuário [your name!] has the accent in the path to the file on your Desktop!
Try renaming your account to Usuario and it should then work!
So the lesson is avoid accented-characters in folder-names and file-names that might be needed in Ruby code...
:roll:


These folder names are standard Windows version in Portuguese, rename it can cause problems in other software

Probably, other users have the same problem and without discovering the cause, leave this excellent plugin, at least if they read these posts will know why.

Thank you, hugs ...
0

marcomartim 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby TIG » Fri Sep 23, 2011 9:02 pm

You misunderstood me...

The user-folder path is always
C:/Users/THE_USERS_NAME/
'Usuário' [=='User'] is the default user-name in Portuguese.
BUT if it were me it would become
C:/Users/TIG/Desktop/quadrado.bmp
So for you the account ought to be something like
C:/Users/MARCO/Desktop/quadrado.bmp
or
C:/Users/MARCOMARTIM/Desktop/quadrado.bmp
Why would you use 'User' as your account name - it's supposed to be personalized !

You are NOT renaming a standard path - it's meant to be customized.

All I'm saying is avoid accented letters in the folder path / file names :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby marcomartim » Fri Sep 23, 2011 10:02 pm

TIG wrote:You misunderstood me...


Ok!
What you said makes sense.
This laptop is new and has already come configured as the manufacturer, will change the user name.
Thanks for everything ...
0

marcomartim 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby thomthom » Mon Sep 26, 2011 8:30 am

Ah yes. It's an annoying limitation of the Ruby version that comes with SU under Windows. No way to work around it.

I'll see to that I add some error checking and give the user feedback when reading the files fail.
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.4.0b) — 08 February 2011

Postby gr8fzy1 » Fri Oct 07, 2011 4:37 pm

I can't even seem to get the plugin to show up for me! I have both the ruby and the TT Lib folder in my plugins folder, but when I start Sketchup it won't show in the plugins pull down menu. (I'm using Sketchup 8 Pro. My OS is Vista Basic)


0

gr8fzy1 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby david_h » Fri Oct 07, 2011 4:52 pm

I had the same problem.

Look in the DRAW menu. "Mesh to Bitmap"
0
If I make it look easy. . .then it probably is.
User avatar
david_h 
Top SketchUcator
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby TIG » Fri Oct 07, 2011 4:54 pm

If it's not under the 'Draw' menu look here - you probably have limited permissions to Plugins and haven't really installed them...
Look in the linked 'Compatibility Files' folder and move them across - it's Vista being over cautious again!!

Capture.PNG
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby thomthom » Fri Oct 07, 2011 5:24 pm

It is worth having a look at the description of the plugin, espesially whrn you have problems.
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.4.0b) — 08 February 2011

Postby gr8fzy1 » Sat Oct 08, 2011 4:57 pm

TIG wrote:If it's not under the 'Draw' menu look here - you probably have limited permissions to Plugins and haven't really installed them...
Look in the linked 'Compatibility Files' folder and move them across - it's Vista being over cautious again!!


I clicked on compatibility files, and these are the only ones listed. TT Bitmap to Mesh isn't included.



David_H wrote:I had the same problem.

Look in the DRAW menu. "Mesh to Bitmap"

I just looked in the DRAW menu, and found something called "Mesh from Heightmap"
Is this something included in sketchup, or is it the same as "Mesh to Bitmap"? I've never used the Draw pulldown before so I don't know what's usually there.

Clicking on "Mesh from Heightmap" seems to do the same thing as the TT ruby, right down to the red scaling box and asking me to input a depth measurement. So I THINK it might be the same thing...








It's megaman!
0

gr8fzy1 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby Rich O Brien » Sat Oct 08, 2011 5:16 pm

Did you read the first post of this thread? It instructs the user to access this 'mesh from height map' in the 'draw' menu.
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby gr8fzy1 » Tue Oct 11, 2011 6:53 pm

Rich O'Brien wrote:Did you read the first post of this thread? It instructs the user to access this 'mesh from height map' in the 'draw' menu.


I did, but since I don't have my own internet connection I can only read so many pages in the 60 minutes of internet time I get at the public library. And combine that with having to fill out online applications for work and checking my email, I last read page one about 2 weeks ago. Please forgive me...
0

gr8fzy1 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby thomthom » Tue Oct 11, 2011 6:56 pm

gr8fzy1 wrote:
Rich O'Brien wrote:Did you read the first post of this thread? It instructs the user to access this 'mesh from height map' in the 'draw' menu.


I did, but since I don't have my own internet connection I can only read so many pages in the 60 minutes of internet time I get at the public library. And combine that with having to fill out online applications for work and checking my email, I last read page one about 2 weeks ago. Please forgive me...

No need to read all the other posts, but the first post - the one that describes the plugin.
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.4.0b) — 08 February 2011

Postby gr8fzy1 » Sat Oct 15, 2011 5:28 pm

thomthom wrote:No need to read all the other posts, but the first post - the one that describes the plugin.


But I also read all the other posts in case problems are noticed and discussed, that way I won't be calling attention to a problem that has already been fixed, or at least see if anyone else is having the same problem I'm having. Which I failed on both counts. Oh well, At least I know my problem was a non issue. Thanks.
0

gr8fzy1 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby gidominik » Tue Nov 08, 2011 2:07 am

Hi Thomthom, Just wondering, I installed the plugin to the plugin folder, but it didn't show the cursor, or when I right click the bitmap it didn't show the selection of bitmap to mesh.Any suggestion?? :oops:
0

gidominik 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby thomthom » Tue Nov 08, 2011 8:10 am

Is the .rb file placed directly in the plugins folder?

Do you have TT_Lib2 installed?

Are you right clicking an Image entity?
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.4.0b) — 08 February 2011

Postby gidominik » Wed Nov 09, 2011 5:01 am

thomthom wrote:Is the .rb file placed directly in the plugins folder?

Do you have TT_Lib2 installed?

Are you right clicking an Image entity?



Yes Sir, everything was in placed
0

gidominik 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby TIG » Wed Nov 09, 2011 10:46 am

Doy
Can you post a screen-shot of the folder[s] please...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby gidominik » Wed Nov 09, 2011 5:37 pm

TIG wrote:Doy
Can you post a screen-shot of the folder[s] please...



Hi Tig,

Thanks. see the screen shot.
0

gidominik 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby thomthom » Wed Nov 09, 2011 5:42 pm

That's your problem right there. That TT_Lib2 - 2.6.0 should contain a TT_Lib2 folder, and that is the folder which should be in the plugins folder. Note the footprint which is described for both TT_Lib and Bitmap to Mesh.

...though you should have gotten an error message when you loaded SketchUp when Bitmap to Mesh failed to load TT_Lib2. ...unless that also is wrapped in a folder...?
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.4.0b) — 08 February 2011

Postby thomthom » Wed Nov 09, 2011 5:44 pm

Ah! I see it right there, a folder named "QuadFaceTools - (0.4.1)". When downloading the plugins, copy the content of the zip files to the plugins folder, do not let the extracter wrap it in another folder.
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.4.0b) — 08 February 2011

Postby gidominik » Thu Nov 10, 2011 1:10 am

thomthom wrote:That's your problem right there. That TT_Lib2 - 2.6.0 should contain a TT_Lib2 folder, and that is the folder which should be in the plugins folder. Note the footprint which is described for both TT_Lib and Bitmap to Mesh.

...though you should have gotten an error message when you loaded SketchUp when Bitmap to Mesh failed to load TT_Lib2. ...unless that also is wrapped in a folder...?


Hi Thom, Problem solved...Thanks so much, :thumb: :thumb: :thumb: :enlight: one of my favorite plugin....
0

gidominik 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby gidominik » Thu Nov 10, 2011 1:51 am

thomthom wrote:Ah! I see it right there, a folder named "QuadFaceTools - (0.4.1)". When downloading the plugins, copy the content of the zip files to the plugins folder, do not let the extracter wrap it in another folder.


I got it right this time... :thumb: :thumb: :thumb: :thumb: 8-) Thank you
0

gidominik 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby Mistro11 » Sat Dec 15, 2012 12:51 am

Hi ThomThom! Another great plugin I discovered by you! I been flirting with Blender, Terragen 2, and shopping around for terrain generating solutions for a couple months now. I was planning on using Artisan and your useful Vertex Tools (perfect for fine tuning natural shapes I imagine) to sculpt terrain and do a composite in other software. I will still use those plugins but this just cut all kinds of time down for that process. I have terrains that have specific landmarks and features so knowing I can work from greyscale images in sketchup is blowing my mind right now. Thank you again.

Just one concern before really diving in... When I go to the draw menu I only see Mesh from Heightmap option and not the added BMP to Mesh. I just downloaded the version on page one. Should I be seeing the 2 options you show?


As you can see it's different from example on page 1
BMP2M-Draw-Menu.jpg


I put the ruby file in the plugins folder and I'm on Win XP. And is there any more documentation for this?
0
i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
Structural Integrity is Not Just Physical...It's in the Design and Purpose
User avatar
Mistro11 
 

Re: [Plugin] Bitmap To Mesh (0.4.0b) — 08 February 2011

Postby thomthom » Sat Dec 15, 2012 1:02 pm

MeshBitmap.png


;)

Beware that you get a very dense mesh! Keep the bitmaps small! Very small!
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: camystevan, laughoutloud99, xdesaxde and 35 guests

Visit our sponsors: