It is currently Sat May 25, 2013 1:11 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 12:35 am  (#1) 
Offline
GimpChat Member

Joined: Apr 20, 2011
Posts: 52
Location: Dane-ish Co., West Gonsin
Hopping around reading posts ("hyper-text tends to make me hyper that way), I find now that I've got a number of them all jumbled together in my brain--which the doc told ma would probably work best if kept below 25 pct fill. In short succession, I read/remembered:

1. pegleg44 was writing about making heightmaps

2. lianam was writing about draping things on heightmaps

and 3. going back a ways, in mahvin's picture-frame tute, ofnuts mentioned a script (now how'd he phrase it?) "to convert a profile/section into the matching black to white values for a bump map."

Now, best I can figure, 1 and 2 combined explosively to make me want to "drape human faces" on top "suitable cranial bumpmaps."

...which then, I further figure, made me think of 3, and almost immediately that "most human faces are more alike than they are different."

So if you're still humoring me--morbidly curious to see if there is a point--consider my Viss-ion (that's a vision and a mission):
--take a b&w portrait
--process it to remove "normalize the brights and darks" (I think I must mean brighten the shadows and mute the highlights
--drape the normalized face over a bump map created by a descendant of ofnut's tool which could parametrically generate heightmaps of generic human head (parameters are left to the imagination, but they're finite)

I know pegleg would want it: family comes into his studio, whiff-BAM, here's 3D portraits of the whole family, you're welcome, in laminated bubinga.

Don't know if it would have come up here, but MS has PhotoSynth (based on Bundler research) which synthesizes point clouds from 100s or even 1000s of random photos of the same thing from all angles. Trouble is that the free meshing software (meshlab) is a hard row to hoe.

Okay then. Glad to have that out and have my 4K RAM free for other Grand Schemes. (It occurs to me that if I was in the carnival, I'd be the guy setting up the ducks to be shot down...)

Thanks. It's a pleasure to be here.

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Profile  
 

 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 8:08 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1776
Location: Dallas, TX
:rofl I love the way you think, serious, intelligent thought patterns on a given subject, mixed with a great sense of humor and a hint of scrambled brains. Reminds me of my own "ADHD-ish-ness" when I'm trying to explain something.

On a serious note (if that's possible here) I think you will find there are several here who are interested in ANY method for creating a mesh grid and shaping it, or using it to shape a layer similar to the one in PS. I think there are two or three threads about what might be coming in 2.8, if it ever comes out. Too lazy to dig 'em up for ya though.

Anyway, gramp, I enjoy your posts. Never, ever, ever forget how to play!

This has been a Drac Atak.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 9:25 am  (#3) 
Offline
GimpChat Member

Joined: Apr 20, 2011
Posts: 52
Location: Dane-ish Co., West Gonsin
Draconian wrote:
... I think you will find there are several here who are interested in ANY method for creating a mesh grid and shaping it, or using it to shape a layer similar to the one in PS. I think there are two or three threads about what might be coming in 2.8, if it ever comes out. Too lazy to dig 'em up for ya though.
...


[Ah, Drac, don't start. But thank you. See what I mean? Nice people here. Just remember you once thought this when I finally revert to type. Would your opinion change if you knew my wife dictates my posts?]

I had forgot to mention that I have, actually experimented with the first, "shadow reduction," step by making an inverted brightness layer (does anyone even know what a "negative" is anymore?) and using a layer mask, and screening/overlaying/multiplying/subtracting (chimpanzee at the typewriter approach--no time to think--must press pretty buttons...)

I haven't really done "draping" exc. as trying to use a gradient fill might pertain to it.

Experiments "painting" a heightmap have been disappointing because it's an unnatural art. I have though reached for Wings3D (modeler) and Blender which (even as I used it) I imagined would work soooo much better in the hands of people from here.

I found Wings (wings3d.com) to have a very natural interface, and there are a number of tutorials about how to use it and model particular things. Like heads. [Ad mode off]

I just want you to know that my wife... that I... sometimes even try the ideas herself before posting.

Cheers!

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Profile  
 
 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 10:24 am  (#4) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 9030
Location: "Looking for my eraser" =P
Gramps have you tried Hexagon?
The download is still free at this time.
Very simple interface and easy to use. :)
http://www.daz3d.com/i/3d-models/free-3 ... e?cat=1486
Some nice beginner tutorials can be found here
http://www.cgdreams.co.uk/hexagon_vid/
Some vids do not work, but most do.

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 10:44 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1776
Location: Dallas, TX
gramp wrote:
Would your opinion change if you knew my wife dictates my posts?]


No problem, women sometimes make me CRAZY too! :hehe

Back to the subject, sort of....I have wings 3D and Hexagon and I guess I'm either too inept or too lazy to figure everything out so I don't use them. Just don't have the time for the learning curve.....buttons.......buttons......pretty buttons!

_________________
Image


Top
 Profile  
 
 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 10:55 am  (#6) 
Offline
GimpChat Member

Joined: Feb 14, 2012
Posts: 159
gramp wrote:
So if you're still humoring me--morbidly curious to see if there is a point--consider my Viss-ion (that's a vision and a mission):
--take a b&w portrait
--process it to remove "normalize the brights and darks" (I think I must mean brighten the shadows and mute the highlights
--drape the normalized face over a bump map created by a descendant of ofnut's tool which could parametrically generate heightmaps of generic human head (parameters are left to the imagination, but they're finite)

I know pegleg would want it: family comes into his studio, whiff-BAM, here's 3D portraits of the whole family, you're welcome, in laminated bubinga.

Well it certainly sounds like something I would like since I am in the business of creating height map raster files for my 3D CNC machine. And I have tried that normalizing kind of thing I think your talking about, which was kind of cool but still produced different results depending on the photo. I would kind of use the curves to make most of the face 50% grey and then select the darker portions of the nose and make them darker to raise it up and then the eyes and make them lighter and stuff like that but still there was a lot of work and not to good of results.

The autodesk 123d catch program is certainly neet looking and have heard of people getting good results with it http://www.123dapp.com/catch but I have not tried it yet.

I think since a photo of a face is actually captureing light reflecting it doesn't automatically make a good height map image. Therefore there will always be work that needs to be done to make a better image. A good height map will look much like an X-Ray negative.
Image

I made a proetty good height map face one time by taking a video of myself with a vertical red laser and camera strapped onto a jig that pulled horizontally from one side to the other. The camera took a video as the laser scanned across my face. The laser scanned straight on in front and the camera was at a 45% angle as it shot the video. Then I chopped up the video using vegas video and then took the batch of photos into photoshop and made a script to make each frame of red squiggly lines into a selection that contained a gradeint blend, and then took that gradient blend and smeared it across the canvas, and then made a one pixel verticle selection out of that smear, thus taking a contoured selection that contained a gradient and making it straight vertically. Then all I had to do was take each vertilce line of pixels and line them all up in one raster file to create a very detailed looking height map. Now if someone could make a peice of software to cut up a video and do all the steps I just described that would be cool.

Alan


Top
 Profile  
 
 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 11:03 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1776
Location: Dallas, TX
Wow pegleg, that bear looks like frosted glass. Put a spout on it and filler up with honey. What you are described sounds like a huge undertaking, IMO, to write something like that for GIMP. I dunno, maybe it's easier than I think. I hope someone does try though.

_________________
Image


Top
 Profile  
 

 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 4:00 pm  (#8) 
Offline
GimpChat Member

Joined: Feb 14, 2012
Posts: 159
Ya thats a gummy bear. The arms can be done on a layer by drawing with the circle 19 brush set to Use Color From Gradient inverted while the brush spacing itself has to be set to 1. The body and head are simply rounded radial blend tool blends on their own layer. The ears too. and I used the curves dialog box to make the snout raised up a little and the nose at the end. You kind of use the curves to draw out the profile you know. And then its all meshed in seamlessly by setting each layer mode to Darken Only.

The final product could then actually be inverted and colorized to look 3D
Image

Or take it into Sculptis to give it a nice metalized look. You increase the mesh count and draw with the raster as a brush.
Image

Alan


Last edited by PegLeg44 on Thu Mar 22, 2012 4:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 4:12 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1776
Location: Dallas, TX
Sweet! You da man.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Heightmap mashup? 2D photo to 3D heightmap? Possimus?
PostPosted: Thu Mar 22, 2012 4:39 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 5025
Hope you don't mind, but I inverted your gummy bear and saved the depth map for future use (stereograms). As for a way to create depth maps, Tom's G'MIC preset might be of use. :)

http://www.flickr.com/groups/gmic/discu ... 634319265/

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group