Heightmap [script]
 1-5  6-25  26-45  46-65  66-67

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: 273 times, Dimensions: 1920x1080px
Size: 318.4 KB, Downloaded: 114 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

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
 

Reply to All Reply to All

 

 
Show messages:  1-5  6-25  26-45  46-65  66-67