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

Jump to content

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

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

#1 User is offline   Richardyourgod Icon

Posted 06 November 2010 - 01:09 PM

I have a picture, and its a black and white (like a drawing), now I wanna make it so that the white is transparent(goes onto the texture), and the black is like a light-glow, and then I need to paste that picture onto a normal texture. can anyone help ?Posted Image

#2 User is offline   Kolossus Icon

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

Posted 06 November 2010 - 04:24 PM

You should set the part you want to be transparent as alpha channel... :D I don't know if that makes sense in english, but I think it's correct eheh

#3 User is offline   Richardyourgod Icon

Posted 06 November 2010 - 04:33 PM

Could you explain more please? give an example or something? ty lol

#4 User is offline   Kolossus Icon

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

Posted 06 November 2010 - 04:42 PM

I'm not really that expert, but I'll tell you what I would do. Open the image with some image editor, like Gimp.

Use the "magic wand", click on the part you want to be transparent, it should be "highlighted" in some way, now delete that area... You should see a pattern of squares behind. If so, save and export. I'm not sure it will work, this is just what I'd try to do.

#5 User is offline   Richardyourgod Icon

Posted 06 November 2010 - 05:29 PM

ah yes, i see what you mean, any ideas for the shader glowing?

#6 User is offline   Kolossus Icon

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

Posted 06 November 2010 - 05:57 PM

You tried it? It worked?

#7 User is offline   Richardyourgod Icon

Posted 06 November 2010 - 06:04 PM

not yet

#8 User is offline   Sneaks Icon

  • Account: sneaks
  • Main tag: =-KMA-=
  • Country:
  • Joined: 01-March 10
  • Posts: 404

Posted 10 November 2010 - 06:49 AM

View PostRichardyourgod, on 06 November 2010 - 06:04 PM, said:

not yet
Ill try and find my old post on the subject

I use the gimp.

add an alpha [transparent] channel
Save as .tga when transparent

[edit]
misc. issues solved
http://forums.urbant...-issues-solved/
was on page 19, found the particle studio while I was looking

This post has been edited by Sneaks: 10 November 2010 - 06:59 AM


#9 User is offline   Kolossus Icon

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

Posted 10 November 2010 - 11:12 AM

In order to make the alpha channel work in game, you need to write a shader for that textures so that q3map2 applies the effects you want to be seen in game.

#10 User is offline   Richardyourgod Icon

Posted 10 November 2010 - 12:32 PM

yea, but how, perhaps ill have a look at the a shader thats partitially transparent, but idk how to do the light glowing stuff

anyone was an example?

This post has been edited by Richardyourgod: 10 November 2010 - 12:33 PM


  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • 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-2019 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