Heightmap [script]
 1-14  15-34  35-54  55-67

Previous
Next
 From:  raytownmike (HOPPER)
7547.15 In reply to 7547.14 
Administrator rights? How would I do this?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7547.16 In reply to 7547.15 
In Windows system
Right Click on a programme : "Run as Administrator" ;)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7547.17 
@Max
Does it possible to have density of curves ? (number of curves)

don't shown here :)
Curves result from your rendered image! So fractal process! :)

EDITED: 17 Aug 2015 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  raytownmike (HOPPER)
7547.18 In reply to 7547.16 
Wouldn't you know it, I am on a Mac!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7547.19 In reply to 7547.16 
OK, in my Windows7 taskbar, right click on Moi lightbulb icon,
then again right click on the next icon and Moi 3.0, (lightbulb Moi 3.0), and select "run as administrator," works.

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7547.20 In reply to 7547.1 
Hi Max - so the reason it doesn't work right on Mac is that on Mac moi.filesystem.getOpenFileName() is not returning a Mac native path, it's returning the "virtualized" windows path which uses the z:\ drive (with Windows path delimiters). So for instance when the user selects a file really named /Users/michael/desktop/file.png , the path returned from moi.filesystem.getOpenFileName() will actually be z:\Users\michael\desktop\file.png

So for this particular case just treat it always the same as the windows version and it will then work.

I guess it's probably a bug though that moi.filesystem.getOpenFileName() does not return a Mac native path when some other functions do - right now it's kind of a mix with mainly things that are meant to be displayed in the UI end up with the Mac native path in them and others that don't map directly to some display in the UI use the virtualized Windows path instead which is basically the default in the current version. This will probably be different in v4 with more things returning Mac native paths because v4 won't have the whole virtualized Wineskin system in it anymore for the Mac version.

Anyway to get this working on mac right now edit _Heightmap.js and change line 7 to:

var dlm = '\\';

And that should then get it to work.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike (MGG942)
7547.21 In reply to 7547.1 
Make my first 3D prints using Max's great script.
The image is of a child's hand. Cropped from a much larger photo. And then edited to remove any light coloured elements near the hand.
The blue image is a lithopane with light coming through the differing thickness of a translucent material.
The white one is more opaque to light and looks more like a carving.
Image Attachments:
Size: 247 KB, Downloaded: 110 times, Dimensions: 1414x1181px
Size: 642.1 KB, Downloaded: 95 times, Dimensions: 1459x1297px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  raytownmike (HOPPER)
7547.22 
Is that code all that would be in line 7?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7547.23 In reply to 7547.22 
Hi raytownmike,

re:
> Is that code all that would be in line 7?

Yup, the current code on line 7 in the file _Heightmap.js looks like this:

code:
	var dlm = moi.filesystem.getPathDelimiter();


If you change that to be what I wrote above, like this:

code:
	var dlm = '\\';


Then after that it should work on the Mac. You need to open the file _Heightmap.js in TextEdit.app and edit the 7th line from the top of the file.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  raytownmike (HOPPER)
7547.24 In reply to 7547.23 
Got it I suppose I had a character off! Yours worked great and thank you.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7547.25 
v.0.6

Increased points density
Increased scale speed
Added support of bmp-files
Changed path delimiter to "//" (seems it works good with windows version also)
Added image size info

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7547.26 
bemfarmer
>> Does this perform similarly to zsurf4?
I don't know. I never used it. :)

Mindset
>>.. might it possible to analyze a surface and produce a height map
Yes, it's possible. We can use PGM as output format. You can open it with photoshop.
Maybe later I'll write such a script.

Michael
Thanks for advice with delimiter

Frenchy Pilou
>>Does it possible to have density of curves
Right now it's not possible. But you can resize an image. If you want to get 60 curves, resize image to 60x60 pixels.

ed
Interesting work. Try to use the new version. It can produce much more detailed surface.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike (MGG942)
7547.27 In reply to 7547.25 
Mas, I've tried twice to process an image that I successfully processed with the previous version of your excellent script. Moi crashed both time. The original image was 2761x2761 pixels.
It imports OK - I used a scale factor of 7.
I then scaled down to about 1/25 of size to give a 395 curves of xyz of 100 100 5.62.
Then loft OK but MOI locks up when I tried to extrude by -5mm.
I guess that it's run out of memory.

Had another go but reduced the original image to 1381x1381 before importing it.
Much the same, still couldn't extrude.

Any chance of making the point density adjustable?

Mike.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7547.28 
>> If you want to get 60 curves, resize image to 60x60 pixels.

Tricky!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike (MGG942)
7547.29 In reply to 7547.28 
Thanks, I can experiment. Any idea what number of curves the original script gave?
That would be my starting point
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 7547.30 deleted 20 Aug 2015 by BURRMAN

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7547.31 In reply to 7547.27 
Mike

>>Any chance of making the point density adjustable?
Maybe later. Right now you can adjust it by resizing a source image.

>>Any idea what number of curves the original script gave?
If you will load an image 60x60 pixels, you will get 60 curves with 60 points per curve. 500x500 -> 500 curves, 500 points per curve.
If image larger than 600px it will be downscaled automatically.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Marbleman
7547.32 
Thanks Max

Awesome script!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  moritzbock (MORITZ)
7547.33 In reply to 7547.1 
Hello Max,
it doesn't seem to work on a Mac.
When I start this script, the dialogbox to choose an image appears - but with a click on the OPEN button the scriptwindow (marked in red) is closed immediately and nothing else happens.
Can you help?

Andreas





some minutes later ......

Hi Max, forget about that.

Your script works great with the note from Michael (thanks):

code: var dlm = moi.filesystem.getPathDelimiter();

If you change that to be what I wrote above, like this:

code: var dlm = '\\';

EDITED: 23 Aug 2015 by MORITZ

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7547.34 In reply to 7547.33 
Hi Andreas,

This issue was fixed in the last version of the script. Download it.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-14  15-34  35-54  55-67