It is currently Tue Jul 23, 2024 2:29 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Not bevel, just Reflect... Script (Experimental)
PostPosted: Fri Mar 09, 2018 3:10 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
Input grayscale image (used as height map) and select a spherical emap image.
Image
Result:
Image
Result bumped map (using the same grayscale input as bump map):
Image

more info: https://www.gimplearn.net/viewtopic.php ... f=3&t=1289

_________________
TinT


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: Not bevel, just Reflect... Script (Experimental)
PostPosted: Fri Mar 09, 2018 4:06 pm  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
Notice the difference from the bevel and reflect in that BRL applies the same environment to each pixel
so all your letters look like they have the same reflection.
This script tries (because it's a hack) to reflect the dynamic environment as each letter is in a different position each letter will look different depending on where they are located.

_________________
TinT


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Fri Mar 09, 2018 5:53 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
There was an aspect ratio bug so i fixed it in version 2.
Test run with Wallace's Basketball Jones emap.
Image

_________________
TinT


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Fri Mar 09, 2018 6:07 pm  (#4) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
:coolthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Fri Mar 09, 2018 6:22 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Boy, you weren't kidding about the script being slow...

Attachment:
reflect.jpg
reflect.jpg [ 243.67 KiB | Viewed 7132 times ]


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Fri Mar 09, 2018 11:24 pm  (#6) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
Thanks for trying it out racer-x, you got good looking result.
I just uploaded version 3 of script (12 times faster)... from my 400x200 image that took 9 min 45 seconds
now finishes in 48 seconds.

_________________
TinT


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Fri Mar 09, 2018 11:57 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Looks like intaglio on metal. Pretty cool stuff, Tran. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Sat Mar 10, 2018 12:55 am  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
thanks lylejk!
Image

_________________
TinT


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Sat Mar 10, 2018 4:56 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Just a suggestion.

I think it would be more useful if you used the image layer below the bump map instead of pointing to an E-Map. Don't resize either. That way the user can make the glassy text over any image they want.


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Sat Mar 10, 2018 5:18 pm  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
I see what you mean but to have reflections from an environment, the environment has to be bigger than the area shown. I have created a script called reflect emap which puts your image in center (1/2 width and 1/2 length or canvas) and then reflect/mirror around it to use as reflect map in order to have the desired image shown ...
https://www.gimplearn.net/viewtopic.php ... f=3&t=1294

_________________
TinT


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Sat Mar 10, 2018 6:48 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Your script already works with a flat image if I start with a square dimension image. The only problem is that it enlarges it before applying the effect.

Attachment:
Swan.jpg
Swan.jpg [ 389.58 KiB | Viewed 1330 times ]


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Sat Mar 10, 2018 7:35 pm  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
It needs information outside of the inner square to do reflections.
That's why that helper script is there so that you get your same image back if you turned it to reflect emap.
Flat area reflects directly, but areas with slopes will reflect from outside the image if they're close to the outer boundary of images.

Image
Above, the blue on top represents light shown to you.
short blue on bottom represents a flat area, where light just comes from inner square.
red on bottom represents a sloped area close to the border of image, see if i only used blue area on top as emap then I would have no information for red ray coming in... i need to make the emap larger to allow information from outside of the blue on top.

_________________
TinT


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Sun Mar 11, 2018 6:49 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
I figured out an easier and faster way to make beveled clear text. Thanks just the same.

I used BRL, followed by "Color to Alpha", De-Saturated, then added a drop shadow.

Attachment:
Butterfly_cleartext.jpg
Butterfly_cleartext.jpg [ 238.18 KiB | Viewed 1309 times ]


Top
 Post subject: Re: Not bevel, just Reflect... Script (Experimental)
PostPosted: Mon Mar 12, 2018 2:41 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
Here's another script that functions like you've mentioned which doesn't use emap but tries to reflect a layer that you choose. If it finds a pixel outside of layer you selected, it just tries to use modular math to calculate the layer's mirror to get pixel info.

https://www.gimplearn.net/viewtopic.php ... f=3&t=1301

_________________
TinT


Top
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Bevel Reflect Logo on Mac

5

No new posts Attachment(s) [Solved] Bevel Reflect

24

No new posts Attachment(s) bevel reflect tutorial

3

No new posts Bevel Reflect logo and sphere

10

No new posts Attachment(s) Bevel reflect logo [SOLVED]

8



* Login  



Powered by phpBB3 © phpBB Group