Gimptalk - Premier Gimp Community: Sketched Glass Tutorial - Gimptalk - Premier Gimp Community

Jump to content

  • 5 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Sketched Glass Tutorial

#1 User is offline   kward1979uk 

  • Member
  • PipPip
  • Group: Members
  • Posts: 527
  • Joined: 02-June 05

Posted 17 March 2006 - 10:55 PM

This is the end result:-
Posted 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
Posted 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)
Posted 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)
Posted 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)
Posted Image

[*]Create a text layer and type in any text you have this works best if you use a fine script style font
Posted 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
Posted Image
Posted Image

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

[*]Now select the Text layer and goto image => Script-fu => gimp-talk.com =>glass... again
[*]run the script with these settings
Posted Image
Posted 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
Posted Image
merge all visable layers
Posted Image
0

#2 User is offline   fencepost 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 2,643
  • Joined: 01-March 05

Posted 17 March 2006 - 11:41 PM

YEAH!

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

Art
0

#3 User is offline   Hunting King 

  • Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 25-February 06

Posted 18 March 2006 - 12:38 AM

That is a great effect, I love my turnout! :h:
Posted Image
Thanks :l:
0

#4 User is offline   Wolf 

  • Member
  • PipPip
  • Group: Members
  • Posts: 63
  • Joined: 22-January 06

Posted 18 March 2006 - 01:00 AM

AMAZING, simply...ty soo much
0

#5 User is offline   kward1979uk 

  • Member
  • PipPip
  • Group: Members
  • Posts: 527
  • Joined: 02-June 05

Posted 18 March 2006 - 08:06 AM

Thanks I'm glad you like it,
Posted Image
0

#6 User is offline   Nevon 

  • Member
  • PipPip
  • Group: Members
  • Posts: 185
  • Joined: 08-January 06
  • LocationSweden

Posted 18 March 2006 - 11:33 AM

Hmm, the scetch script doesn't work for me. It's in the list, but I can't press it.
Posted Image
0

#7 User is offline   kward1979uk 

  • Member
  • PipPip
  • Group: Members
  • Posts: 527
  • Joined: 02-June 05

Posted 18 March 2006 - 11:35 AM

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
Posted Image
0

#8 User is offline   Kronos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 35
  • Joined: 29-January 06

Posted 18 March 2006 - 02:03 PM

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"
"/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:
0

#9 User is offline   kward1979uk 

  • Member
  • PipPip
  • Group: Members
  • Posts: 527
  • Joined: 02-June 05

Posted 18 March 2006 - 03:39 PM

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"
"/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
Posted Image
0

#10 User is offline   Andarel 

  • Member
  • PipPip
  • Group: Members
  • Posts: 333
  • Joined: 10-February 06

Posted 18 March 2006 - 03:53 PM

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.
Posted Image
0

#11 User is offline   willman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 10-April 06

Posted 11 April 2006 - 05:16 PM

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

My results...

Posted Image

Posted Image

Posted Image


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

#12 User is offline   Drago 

  • Member
  • PipPip
  • Group: Members
  • Posts: 90
  • Joined: 26-December 05

Posted 11 April 2006 - 05:49 PM

Looks like this'll be GREAT for text.

I'll grab the scripts and edit, later.
Posted Image
0

#13 User is offline   kward1979uk 

  • Member
  • PipPip
  • Group: Members
  • Posts: 527
  • Joined: 02-June 05

Posted 11 April 2006 - 09:54 PM

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
Posted Image
0

#14 User is offline   FunkyFloyd 

  • Member
  • PipPip
  • Group: Members
  • Posts: 378
  • Joined: 26-April 06

Posted 22 June 2006 - 02:39 AM

how on earth did i miss this?

ive been looking for something like this.
Weird is intresting, who wants to be normal?
0

#15 User is offline   monkey_360 

  • Member
  • PipPip
  • Group: Members
  • Posts: 980
  • Joined: 03-April 06

Posted 22 June 2006 - 03:18 AM

wow .. :o: ive never seen this, i gotta try it it looks nice!!
0

#16 User is offline   Admiral 

  • Member
  • PipPip
  • Group: Members
  • Posts: 85
  • Joined: 04-June 06

Posted 22 June 2006 - 04:35 AM

great script and tut ;D going to be using in an upcoming project
0

#17 User is offline   stefcho_94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 3,178
  • Joined: 10-June 06

Posted 24 June 2006 - 03:17 AM

I'm trying to make a window right now :l: :l:
Posted Image
I know, I'm good :)
0

#18 User is offline   Socom2player 

  • Member
  • PipPip
  • Group: Members
  • Posts: 49
  • Joined: 26-May 05

Posted 25 June 2006 - 10:10 PM

Im trying to dl the scripts but when I click the button a window pops up for like 2 seconds sthen it closes
0

#19 User is offline   Mandoragon 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 26-June 06

Posted 26 June 2006 - 04:41 PM

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.
0

#20 User is offline   Motorbikeman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 29-June 06

Posted 29 June 2006 - 09:58 AM

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.

Posted Image

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

Share this topic:


  • 5 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic