Heightmap [script]
 1-4  5-24  25-44  45-64  65-67

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

Previous
Next
 From:  phlatt5th (P5TH)
7547.35 In reply to 7547.20 
Hello Mac users, I made the change with Text Edit to line 7 of Max's script as per Michael's instructions and the script works beautifully on My Mac.
Many Thanks to Max and Michael.
Cheers.
  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.36 
Works fine on mine too!
www.jameselliott.co.uk
  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.37 
phlatt5th, Marbleman
update this script to v.0.6
  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:  phlatt5th (P5TH)
7547.38 In reply to 7547.37 
Just did :)
Thanks again Max.
Cheers!
  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:  Mindset (IGNITER)
7547.39 
Hey Max:

Another Heightmap idea would be to include a clipping plan to remove the background (black) or to ignore an alpha channel.
Again thanks for all your terrific scripts.

Bravissimo!
  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 (ORION20036)
7547.40 
Will this script work with MOI V2?
  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.41 In reply to 7547.40 
Hi Michael,
sorry. it works with v3 only.
  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 (ORION20036)
7547.42 In reply to 7547.41 
Okay Max that is okay, does it use a command that is not in V2?
  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.43 In reply to 7547.42 
Yes, v3 based on different javascript engine, and my script uses specific v3 commands.
  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 (ORION20036)
7547.44 In reply to 7547.43 

I tried the delimiter format to "//" instead of "\\" but no luck as it still stops at the delimiter line 8 of the script.

Thanks Anyway Max!.

  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-4  5-24  25-44  45-64  65-67