Heightmap [script]  1-20  21-40  41-51

Next
 From:  Max Smirnov (SMIRNOV)
7547.1 
Using this script you can import jpeg/png image as a heightmap.

!! Due of security reasons MoI doesn't allow to process images from any directory. :( In this case I need to make temporary copies of images in the MoI directory.
To use this script you should run MoI with Administrator rights or use a portable version.
I can't see any way to solve this problem.



EDITED: 24 Aug 2015 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.2 
Funny script :)




Took about 5 minutes in total.

  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.3 
Does this perform similarly to zsurf4?
How does the resolution compare?

- 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:  bemfarmer
7547.4 
Did not work with C drive Moi.
Did work with Moi on USB drive.

For a surface from test flora.bmp, converted with photoshop to jpg and png,
The png gave much better result, but the picture file size was 4 times larger.
The 3dm loft of the png was slightly larger than for the 3dm of the jpg.
The png is on the right.

zsurf4 uses bmp. The heightmap version, lofted, was very much better than the zsurf4 ersion, IMHO.

- Brian

EDITED: 16 Aug 2015 by BEMFARMER

Image Attachments:
Size: 23.5 KB, Downloaded: 53 times, Dimensions: 143x144px
Size: 91.4 KB, Downloaded: 60 times, Dimensions: 143x144px
  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:  ed (EDDYF)
7547.5 
Another amazing script Max!

I had a quick play with it below. Rendered in KeyShot. (I'm sure with more experimenting I can get better resolution))

Maybe use Photoshop to reduce the number of gray levels and thus smooth out the roughness in the jpg?

Ed Ferguson




EDITED: 16 Aug 2015 by EDDYF

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:  BurrMan
7547.6 In reply to 7547.5 
Hi ed,
When doing heightmap/emboss work, you can look at adding some blur to cleanup results... a very slight amount like 1's and 2's pixel blurs will help fix. Fwiw.
  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:  ed (EDDYF)
7547.7 In reply to 7547.6 
Another test with a smoother map (blurred as BurrMan suggested). Rendered in KeyShot using wood material.

Ed Ferguson




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:  Finema
7547.8 In reply to 7547.7 
Hi,
How i can run this script on mac ? I haven't access to the MOI directory.
Thanks
  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:  TpwUK
7547.9 In reply to 7547.8 
Use finder, go to where you have moi - usually applications - Right click on Moi and then Show Contents, then drive_c, then moi.

Martin
(TpwUK)
  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:  Finema
7547.10 In reply to 7547.9 
Thanks martin...
My problem is to access at the .png file
If i put it on MoI directory i can't load it when i run heightmap script in MoI.
If i load directly the png file on my finder heightmap scrip don't run
  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:  Mik (MIKULAS)
7547.11 
Hi Max,

excellent script as usual!

Many thanks for sharing.

... Height map + flow + rendered in Octane :-)

Mik

EDITED: 17 Aug 2015 by MIKULAS

Image Attachments:
Size: 463.9 KB, Downloaded: 169 times, Dimensions: 1920x1080px
Size: 318.4 KB, Downloaded: 75 times, Dimensions: 2160x1080px
  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.12 
So very Great Max!!

Just a possible suggestion:
Wonder if the script could be augmented to operate in both directions... It currently reads a bitmap to generate height... might it possible to analyze a surface and produce a height map.
That way, we could iterate between raster software and MOI to refine the surface iteratively in each, making adjustments each time.

For instance one might create a height map in say Photoshop, use your excellent script to bring it into MOI... use MOI to twist of otherwise modify the surface, and then have an auxiliary script write out the revised height map so it can be further tweaked back in Photoshop. With the various layer blending options in Photoshop, imagine the myriad of results that may not otherwise be practical or even discovered.

Just a thought... again great script.
I am sure that the entire community is equally as grateful as am I.

Thanks 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

Previous
Next
 From:  Frenchy Pilou (PILOU)
7547.13 
Another magic one!
French version ;) http://moiscript.weebly.com/heightmap.html



PS I have not your problem of images path!
My image can be anywhere! :)

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:  Mike (MGG942)
7547.14 In reply to 7547.1 
Oh! I shall enjoy this. Creating my own Lithopanes via MOI, this wonderful script and 3D printing.

Thanks, Max!

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:  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
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-40  41-51