It is currently Sat Jul 06, 2024 3:37 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Profile-map for Mahvin
PostPosted: Mon Mar 14, 2011 3:30 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Is there http://sourceforge.net/projects/gimp-wrapmap/files/

Too lazy to make a write-up for it.But you'll figure out I'm sure.

_________________
Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Mon Mar 14, 2011 3:40 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Can we download it too or is it just for Mahvin? :lol

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Mon Mar 14, 2011 5:26 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
He is the one who asked for it :)

_________________
Image


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Mon Mar 14, 2011 6:29 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I dunno. Do I feel like sharing? Hahahahaha.

Thanks ofnuts, many blessings in return, a thousand fold. :)

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Mon Mar 14, 2011 6:52 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Same here ofnuts you are an awesome scripter. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Mon Mar 14, 2011 11:50 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Be careful what you ask for, you might get it?

Wow! A bit of a learning curve here, but my original thought was that wrap map was somehow involved. Guess not. I get the level layer, but not sure where to go with it from that point, so I will wait, patiently, for a brief explanation.

:)

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Tue Mar 15, 2011 3:13 am  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
mahvin wrote:
Be careful what you ask for, you might get it?

Wow! A bit of a learning curve here, but my original thought was that wrap map was somehow involved. Guess not. I get the level layer, but not sure where to go with it from that point, so I will wait, patiently, for a brief explanation.

:)
Ok , quickie:

Assume you want a 300px rim around something:

- draw the profile in black on white in a 300px-wide layer (can be in the same image or not). Height is irrelevant, ProfileMap will consider that the full height is produce values of 255.
- run ProfileMap. This creates a 300x1px "Levels" layer where the profile height has been converted to values. You can scale the profile vertically if you want to see what it looks like comfortably.
- to use the result, use WrapMap to wrap the "Levels" layer around a selection
- use that as a bump map on another layer.


Attachments:
ProfileSample.xcf [1.56 MiB]
Downloaded 191 times

_________________
Image
Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Tue Mar 15, 2011 4:13 am  (#8) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Thank you very much, ofnuts, it works splendidly, now that I got your instructions. I figured wrapmap was involved but my tired mind never thought to make the drawing twice as large.

I also managed to find some interesting results from attempts to get it working correctly (pre-instructions). I'll be sure to share those when I get back.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Tue Mar 15, 2011 8:42 am  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
You can also use ProfileMap to create rods with arbitrary sections (well, almost...). This how I produced those three (even if they aren't that arbitrary).

Bonus points for finding how I got these realistic intersections :)

Attachment:
Triangle.png
Triangle.png [ 37.5 KiB | Viewed 4389 times ]

_________________
Image


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Tue Mar 15, 2011 7:51 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I'm running this process through my head now, trying to figure it out. Something tells me it was "simple" to do, but probably not the first thing someone will think of. From just looking at it, it appears you created 3 separate layers, because I don't see how it could wrap 3 different profiles on the same selection, separately.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Tue Mar 15, 2011 10:42 pm  (#11) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
i downloaded the xcf and just to play i set in difference mode the finaql layer with the bunpmap layer below..

curious effect ...


Attachments:
difference.png
difference.png [ 147.23 KiB | Viewed 1983 times ]

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress
Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Wed Mar 16, 2011 12:08 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Neato - bandito!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Wed Mar 16, 2011 3:40 am  (#13) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
mahvin wrote:
I'm running this process through my head now, trying to figure it out. Something tells me it was "simple" to do, but probably not the first thing someone will think of. From just looking at it, it appears you created 3 separate layers, because I don't see how it could wrap 3 different profiles on the same selection, separately.
Indeed:

- Define three profile layers
- Run ProfileMap on each to obtain three one-pixel high Levels layers
- scale the Levels layer to 300px high
- rotate Levels layers +15,+75,-45 and assemble triangle.
- (secret operation to produce final bump map)
- add gray layer, apply bump map.

Hint: the "secret operation" will work with any bump maps you may throw at it :)

(now to find a way to have the three rods in different colors with correct cut out)

_________________
Image


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Wed Mar 16, 2011 2:43 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Interesting possibilities, ofnuts. I was thinking of performing something similar with rectangle selections (like picture frames with 4 different sides or graduating wraps in steps) Profile map eliminates the need for the latter.

I did notice for the first time, that using wrapmap takes up some mega resources (a blank 1024 x 768 frame, topped out at 1.4 gig, almost froze up and crashed GIMP, but I waited it out and it recovered) I used a 100 pixel level profile layer to frame the blank image.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Profile-map for Mahvin
PostPosted: Wed Mar 16, 2011 5:07 pm  (#15) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
mahvin wrote:
Interesting possibilities, ofnuts. I was thinking of performing something similar with rectangle selections (like picture frames with 4 different sides or graduating wraps in steps) Profile map eliminates the need for the latter.

I did notice for the first time, that using wrapmap takes up some mega resources (a blank 1024 x 768 frame, topped out at 1.4 gig, almost froze up and crashed GIMP, but I waited it out and it recovered) I used a 100 pixel level profile layer to frame the blank image.
Yes, as implemented, WrapMap is a resource hog. But usually one gets bored waiting before the memory fills up :-)

_________________
Image


Top
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Mahvin?

7

No new posts mahvin?

2

No new posts mahvin.com is no more

11

No new posts Assign ICC Color Profile from procedure

1

No new posts Attachment(s) Mahvin's Messes

50



* Login  



Powered by phpBB3 © phpBB Group