Urban Terror Forums: shader help, transparency and lightglow - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

shader help, transparency and lightglow Rate Topic: -----

#11 User is offline   Richardyourgod Icon

Posted 10 November 2010 - 12:45 PM

ok , so here is the image Posted Image

it needs to lighted up like this Posted Image

and the background texture will be something like this : Posted Image

#12 User is offline   Kolossus Icon

  • Account: kolossus
  • Joined: 28-September 10
  • Posts: 386

Posted 10 November 2010 - 01:20 PM

That comes from The Lord of the Rings. It's the Moria's Door. (Yes, I love that book)...

Are you sure you can use the concept?

This post has been edited by kolossus: 10 November 2010 - 01:20 PM


#13 User is offline   Richardyourgod Icon

Posted 10 November 2010 - 01:34 PM

yes, my theme is moria, jumpmap btw

This post has been edited by Richardyourgod: 10 November 2010 - 01:35 PM


#14 User is offline   Kolossus Icon

  • Account: kolossus
  • Joined: 28-September 10
  • Posts: 386

Posted 10 November 2010 - 01:37 PM

Off-Topic = Provide the door to open only if you say Mellon. lol

#15 User is offline   Richardyourgod Icon

Posted 10 November 2010 - 01:39 PM

View Postkolossus, on 10 November 2010 - 01:37 PM, said:

Off-Topic = Provide the door to open only if you say Mellon. lol


haha, yes ( means friend :happy:)

bullet_loaderAdvertisement

#16 User is offline   Kolossus Icon

  • Account: kolossus
  • Joined: 28-September 10
  • Posts: 386

Posted 10 November 2010 - 02:00 PM

I know I know lol

#17 User is offline   Drewfin Icon

  • Account: drewfin
  • Country:
  • Joined: 26-April 10
  • Posts: 107

Posted 10 November 2010 - 11:11 PM

Got a decent result (compiled with Bumpy, so your milage may vary.)

Inverted the image so that black is white, and then deleted the background (alpha 0). Saved as TGA. Made a second copy, tinted it blue and made it blurry.

Shader looks like this:


textures/test/moria
{
	
	qer_editorimage textures/test/moria.tga
	surfaceparm nodlight
	surfaceparm nolightmap
	q3map_lightRGB 0.51764 0.97254 0.96862
	polygonOffset
	sort 6
	
	{
		map textures/test/moria.tga
		rgbGen identity
		blendfunc blend
	}
	{
		map textures/test/moria_blurblue.tga 
		blendfunc add
		rgbGen identity
	}
}



Posted Image

#18 User is offline   postit Icon

  • Account: postit
  • Country:
  • Joined: 28-February 10
  • Posts: 76

Posted 11 November 2010 - 12:37 AM

Doesn't this shader need a q3map_surfacelight?

View PostDrewfin, on 10 November 2010 - 11:11 PM, said:


textures/test/moria
{
	
	qer_editorimage textures/test/moria.tga
	surfaceparm nodlight
	surfaceparm nolightmap
	q3map_lightRGB 0.51764 0.97254 0.96862
	polygonOffset
	sort 6
	
	{
		map textures/test/moria.tga
		rgbGen identity
		blendfunc blend
	}
	{
		map textures/test/moria_blurblue.tga 
		blendfunc add
		rgbGen identity
	}
}




#19 User is offline   mindriot Icon

Posted 11 November 2010 - 12:42 AM

Nice, Drewfin. I did the same with the image but then thickened the lines with a Gaussian blur and then added white layer set to dodge to increase the glow. I also put the original inside a 512x512 alpha canvas so Q3 wouldn't scale down and distort the image.




I'll put up an the example .pk3 shortly. Granted, this is copyrighted material so you use it at your own risk.

#20 User is offline   Richardyourgod Icon

Posted 11 November 2010 - 01:07 AM

@drewfin and mindriot, wow thanks for the help :-)

btw mindriot, I don't think copyrights will cause any problems, and looking forward to that pk3, btw could you include that water shader also? looks really nice too heh

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942