GimpTalk Announcement :
Try your digital-art skills against your fellow gimpers in GIMPtalk's Biweekly Art competition !


Board index » GimpTalk » GIMP Tutorials and Tips Web Development Services . Convert FLV to Cell Phone Format
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 84 posts ]   Go to page 1, 2, 3, 4  Next


Author Message
Offline
 Post subject:
PostPosted: Fri Mar 17, 2006 10:55 pm 
User avatar

Joined:
Thu Jun 02, 2005 5:42 pm

Topics:
Posts: 523

Find User's Topics

This is the end result:-
Image

For this tutorial you will need both Sketch Script-fuand Glass Script-fu please download them if you dont already have them installed.
You will find them under

image => Script-fu => gimp-talk.com =>Sketch...
image => Script-fu => gimp-talk.com =>glass...


[*]First find the pic that you wish to have engraved and open it with gimp the layer must not have an alpha channel to make sure it doesnt flatten the image. and the Mode is RGB
Image

[*]Run the Sketch script-fu (image => Script-fu => gimp-talk.com =>Sketch...) using the standard setting of a white background (if this option is greyed our go back to the first step as you have missed part of it)
[*]Tidy up the sketch removing lines that you dont want to be etched (take care to check around the edges as the script sometimes leaves so stray marks ( I prefer to select an oval around the image then press ctrl+ i to invert the selection then ctrl+ k to cut it so that the edges of the sketch as more subtle)
[*]Delete the white layer so that you are left with just a black sketch image on a transparent layer (if you want to use a image you have sketched yourself you could sketch it on paper then use alpha to image to remove the paper background)
Image
[*]save the image as a gif

[*]Open up a new transparent image at whatever size you want your glass background
[*]Name the layer as glass
[*]Draw onto the layer what you want the glass shape to be using a colour other then black (it doesn't matter but just helps to see what you are doing when you start to use the other layers)
Image
[*]now goto file => open as Layer and open the saved sketch
[*]Position the sketch where you want it to be sketched (as well as moving the layer around you may have to scale the layer to fit)
Image

[*]Create a text layer and type in any text you have this works best if you use a fine script style font
Image
[*]make sure all layers are the size of the image by going to layer => layer to image size on each of the layers

now you are ready to turn you layers into glass

[*]select the layer you named glass and goto image => Script-fu => gimp-talk.com =>glass...

[*]run the script with these settings
Image
Image

[*]Now select the Sketch layer and goto image => Script-fu => gimp-talk.com =>glass... again
[*]run the script with these settings
Image
Image

[*]Now select the Text layer and goto image => Script-fu => gimp-talk.com =>glass... again
[*]run the script with these settings
Image
Image

[*]Create a new layer and name this layer background
[*]Fill the layer with the background you want this can be anythink other then white or black because if you use these the shadows wont apper properly
[*]move this layer right down to the bottem
Image
merge all visable layers


_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject:
PostPosted: Fri Mar 17, 2006 11:41 pm 
User avatar

Joined:
Tue Mar 01, 2005 4:40 pm

Topics:
Posts: 2454

Find User's Topics
YEAH!

I can't wait to try this out. Thanks so much for sharing. This is a fabulous effort.

Art


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 12:38 am 
User avatar

Joined:
Sat Feb 25, 2006 3:06 am

Topics:
Posts: 10

Find User's Topics
That is a great effect, I love my turnout! :h:
Image
Thanks :l:


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 1:00 am 

Joined:
Sun Jan 22, 2006 1:04 pm

Topics:
Posts: 63

Find User's Topics
AMAZING, simply...ty soo much


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 8:06 am 
User avatar

Joined:
Thu Jun 02, 2005 5:42 pm

Topics:
Posts: 523

Find User's Topics
Thanks I'm glad you like it,

_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 11:33 am 
User avatar

Joined:
Sun Jan 08, 2006 12:23 pm

Topics:
Posts: 185
Location: Sweden

Find User's Topics
Hmm, the scetch script doesn't work for me. It's in the list, but I can't press it.

_________________
Image


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 11:35 am 
User avatar

Joined:
Thu Jun 02, 2005 5:42 pm

Topics:
Posts: 523

Find User's Topics
Quote:
Hmm, the scetch script doesn't work for me. It's in the list, but I can't press it.
flattern the image iand make sure it is set to RGB as this is the only mode that this wil work on

_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 2:03 pm 

Joined:
Sun Jan 29, 2006 2:40 am

Topics:
Posts: 35

Find User's Topics
umm when i try and download the sketch thing i get this msg when i click download to desktop

Quote:
(define (spline-sketch)
(let*
((a (cons-array 18 'byte)))
(set-pt a 0 0 0)
(set-pt a 1 190 0)
(set-pt a 2 191 1)
(set-pt a 3 210 210)
(set-pt a 4 220 220)
(set-pt a 5 230 230)
(set-pt a 6 240 240)
(set-pt a 7 250 250)
(set-pt a 8 255 255)

a))

(define (sketch inimage indraw bg-colour)

(set! theImage inimage)
(set! theDraw indraw)
(gimp-image-undo-group-start theImage)
(set! height (car (gimp-drawable-height theDraw)))
(set! width (car (gimp-drawable-width theDraw)))

(plug-in-edge 1 theImage theDraw 2 1 0)
(gimp-equalize theDraw 0)
(gimp-desaturate theDraw)
(set! highpass (car (gimp-layer-copy theDraw 1)))
(gimp-image-add-layer theImage highpass 1)
(gimp-curves-spline highpass 0 18 (spline-sketch))
(gimp-invert theDraw)
(gimp-layer-add-alpha theDraw)
(set! imagemask (car (gimp-layer-create-mask theDraw 0)))
(gimp-layer-add-mask theDraw imagemask)
(gimp-edit-copy highpass)
(set! copy-paste (car (gimp-edit-paste imagemask 0)))
(gimp-floating-sel-anchor copy-paste)
(gimp-context-set-background bg-colour)
(set! background (car (gimp-layer-new theImage width height 1 "background" 100 0)))
(gimp-drawable-fill background 1)
(gimp-image-add-layer theImage background 0)
(gimp-image-remove-layer theImage highpass)
(gimp-image-lower-layer theImage background)

(gimp-image-undo-group-end theImage)
(gimp-displays-flush)
)
(script-fu-register "sketch"
"<Image>/Script-Fu/Gimp-talk.com/sketch..."
"Turns a image into a sketch if the image is a alpha layer it must be flatterned first"
"Karl Ward"
"Karl Ward"
"Feb 2006"
"RGB"
SF-IMAGE "SF-IMAGE" 0
SF-DRAWABLE "SF-DRAWABLE" 0
SF-COLOR "Background Colour" '(255 255 255)

)


and almost the same thing with the glass one too :s:


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 3:39 pm 
User avatar

Joined:
Thu Jun 02, 2005 5:42 pm

Topics:
Posts: 523

Find User's Topics
Quote:
umm when i try and download the sketch thing i get this msg when i click download to desktop

Quote:
(define (spline-sketch)
(let*
((a (cons-array 18 'byte)))
(set-pt a 0 0 0)
(set-pt a 1 190 0)
(set-pt a 2 191 1)
(set-pt a 3 210 210)
(set-pt a 4 220 220)
(set-pt a 5 230 230)
(set-pt a 6 240 240)
(set-pt a 7 250 250)
(set-pt a 8 255 255)

a))

(define (sketch inimage indraw bg-colour)

(set! theImage inimage)
(set! theDraw indraw)
(gimp-image-undo-group-start theImage)
(set! height (car (gimp-drawable-height theDraw)))
(set! width (car (gimp-drawable-width theDraw)))

(plug-in-edge 1 theImage theDraw 2 1 0)
(gimp-equalize theDraw 0)
(gimp-desaturate theDraw)
(set! highpass (car (gimp-layer-copy theDraw 1)))
(gimp-image-add-layer theImage highpass 1)
(gimp-curves-spline highpass 0 18 (spline-sketch))
(gimp-invert theDraw)
(gimp-layer-add-alpha theDraw)
(set! imagemask (car (gimp-layer-create-mask theDraw 0)))
(gimp-layer-add-mask theDraw imagemask)
(gimp-edit-copy highpass)
(set! copy-paste (car (gimp-edit-paste imagemask 0)))
(gimp-floating-sel-anchor copy-paste)
(gimp-context-set-background bg-colour)
(set! background (car (gimp-layer-new theImage width height 1 "background" 100 0)))
(gimp-drawable-fill background 1)
(gimp-image-add-layer theImage background 0)
(gimp-image-remove-layer theImage highpass)
(gimp-image-lower-layer theImage background)

(gimp-image-undo-group-end theImage)
(gimp-displays-flush)
)
(script-fu-register "sketch"
"<Image>/Script-Fu/Gimp-talk.com/sketch..."
"Turns a image into a sketch if the image is a alpha layer it must be flatterned first"
"Karl Ward"
"Karl Ward"
"Feb 2006"
"RGB"
SF-IMAGE "SF-IMAGE" 0
SF-DRAWABLE "SF-DRAWABLE" 0
SF-COLOR "Background Colour" '(255 255 255)

)


and almost the same thing with the glass one too :s:


This has been addressed several time before in other threads all you need to do is copy and paste the whole of the script into something sush as notepad then save it with the extension .scm then save it into your script folder and restart GIMP see FAQ's if you need more specific instructions about where to save it

_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject:
PostPosted: Sat Mar 18, 2006 3:53 pm 
User avatar

Joined:
Fri Feb 10, 2006 12:54 am

Topics:
Posts: 333

Find User's Topics
If you're using Firefox, right click the LINK and press Save Link As. Save it directly to your Scripts folder as {name}.scm

Otherwise, copy it all and paste it into Notepad, save it as a .scm, and then put it into your scripts folder.

The Firefox thing may work with IE, but I don't think so. I'll confirm later.

_________________
Image


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Tue Apr 11, 2006 5:16 pm 
User avatar

Joined:
Mon Apr 10, 2006 12:39 am

Topics:
Posts: 12

Find User's Topics
Awesome tutorial... I'm new to Gimp for over a week now and have been creating images for the past few days.

My results...

Image

Image

Image


You can say I'v been going crazy with this... Thanks for the tut.


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Tue Apr 11, 2006 5:49 pm 

Joined:
Mon Dec 26, 2005 6:59 pm

Topics:
Posts: 90

Find User's Topics
Looks like this'll be GREAT for text.

I'll grab the scripts and edit, later.

_________________
Image


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Tue Apr 11, 2006 9:54 pm 
User avatar

Joined:
Thu Jun 02, 2005 5:42 pm

Topics:
Posts: 523

Find User's Topics
Quote:
Looks like this'll be GREAT for text.

I'll grab the scripts and edit, later.


What do you you need to edit it for it can be used on text as it is all you need to do is create the a text layer then run the script

_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject:
PostPosted: Thu Jun 22, 2006 2:39 am 
User avatar

Joined:
Wed Apr 26, 2006 5:39 am

Topics:
Posts: 378

Find User's Topics
how on earth did i miss this?

ive been looking for something like this.

_________________
Weird is intresting, who wants to be normal?


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Thu Jun 22, 2006 3:18 am 
User avatar

Joined:
Mon Apr 03, 2006 4:38 pm

Topics:
Posts: 980

Find User's Topics
wow .. :o: ive never seen this, i gotta try it it looks nice!!

_________________
Newest
Image
Sub-Zero Tut|Gift From Vo1ture


Top
 Profile E-mail  
 
Offline
 Post subject:
PostPosted: Thu Jun 22, 2006 4:35 am 

Joined:
Sun Jun 04, 2006 4:23 am

Topics:
Posts: 85

Find User's Topics
great script and tut ;D going to be using in an upcoming project

_________________
Image
My Deviant Art Page


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sat Jun 24, 2006 3:17 am 
User avatar

Joined:
Sat Jun 10, 2006 9:32 pm

Topics:
Posts: 3178

Find User's Topics
I'm trying to make a window right now :l: :l:

_________________
Image
I know, I'm good :)


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun Jun 25, 2006 10:10 pm 
User avatar

Joined:
Thu May 26, 2005 2:55 am

Topics:
Posts: 49

Find User's Topics
Im trying to dl the scripts but when I click the button a window pops up for like 2 seconds sthen it closes


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Mon Jun 26, 2006 4:41 pm 

Joined:
Mon Jun 26, 2006 4:39 pm

Topics:
Posts: 2

Find User's Topics
First post, just wondering but this does use alpha doesnt it (whence the see throughness). If any one could awnser this question, Would it be possible to use this as a texture in Blender (blender3d.org) with it still looking like glass..?

Very nice effect well done, Will try later.


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Thu Jun 29, 2006 9:58 am 

Joined:
Thu Jun 29, 2006 9:52 am

Topics:
Posts: 28

Find User's Topics
I've been lurking for a bit, working through the tutorials and this is one of the first images I've done. This is a great tutorial, very easy to follow once I'd sorted out installing the scripts. Many thanks.

[img]http://i29.photobucket.com/albums/c273/MotorbikeMan/XKRGlass.gif[/img]

Edit - Anyone any ideas why I can't get the image to show?


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Thu Jun 29, 2006 4:26 pm 
User avatar

Joined:
Wed Jun 28, 2006 10:07 pm

Topics:
Posts: 7

Find User's Topics
You have to post it in quick reply box.


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Thu Jun 29, 2006 4:32 pm 

Joined:
Thu Jun 29, 2006 9:52 am

Topics:
Posts: 28

Find User's Topics
Ok, I'll try again :h:

Image

That works :l: Many thanks. Looking at it again, I could have been more careful with the edges as they's gone a bit straight in places and gone a bit pixely, but considering I've only had Gimp for a couple of days, I'm relatively happy :l:


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Thu Jun 29, 2006 5:20 pm 
User avatar

Joined:
Mon May 15, 2006 5:31 am

Topics:
Posts: 790

Find User's Topics
A minor variation on this AWESOME tut. (Not hijacking ) I took the camera picture, and got rid of the background with the path tool
and Selection from path. Used the glass script to make the glass outline (keep cropped camera image.) I used threshold on the
cropped camera layer, selected the black and cleared it Used the glass script on the remaining white part. This is what I got.

Image

Greg

_________________
Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Mon Jul 03, 2006 10:47 am 

Joined:
Mon Jul 03, 2006 10:03 am

Topics:
Posts: 1

Find User's Topics
Hello! I'm new to this forum, just so you know...

This is an awesome effect! I tried it and it turned out really neat!
Ill see if I can post a picture...

Image

_________________
There's only 10 sorts of people, those who understand binary and those who doesn't...


Top
 Profile  
 
Offline
 Post subject:
PostPosted: Mon Jul 03, 2006 10:06 pm 

Joined:
Mon Jul 03, 2006 6:18 am

Topics:
Posts: 7

Find User's Topics
I don't find any of the folders where I am supposed to put the Scm files I have no Idea where


Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 84 posts ]  Go to page 1, 2, 3, 4  Next



Who is online

Users browsing this forum: jntucehyd and 17 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

Jump to:  
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB