Urban Terror Forums: Shader for lighting area - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Shader for lighting area Rate Topic: -----

#1 User is offline   n4w4k Icon

  • Account: n4w4k
  • Main tag: chic.
  • Joined: 05-August 12
  • Posts: 24

Posted 24 May 2014 - 07:52 PM

Hello,

Instead of a light entity which emits lighting from a point, I want to create a shader for an area light emitting.
So this shader would be invisible and emit light.

I've tried (randomly) that but I've got the missing texture in game instead of invisible one:

textures/test/lightarea
{
    qer_editorimage "textures/common/white.jpg"
    qer_trans 0.2
    q3map_surfaceLight 400
    q3map_lightSubdivide 512
    surfaceparm nolightmap
    surfaceparm nonsolid
    surfaceparm nomarks
    surfaceparm noimpact
    surfaceparm detail
}


Do you know how I can fix this?


#3 User is offline   n4w4k Icon

  • Account: n4w4k
  • Main tag: chic.
  • Joined: 05-August 12
  • Posts: 24

Posted 24 May 2014 - 08:59 PM

With nodraw param, the brush is invisible but there is no lighting anymore.


#5 User is offline   n4w4k Icon

  • Account: n4w4k
  • Main tag: chic.
  • Joined: 05-August 12
  • Posts: 24

Posted 24 May 2014 - 11:09 PM

Yeah, it works. Thank you :)

bullet_loaderAdvertisement

#6 User is offline   rayne2 Icon

  • Account: rayne2
  • Joined: 17-May 13
  • Posts: 102

Posted 25 May 2014 - 10:55 AM

I think there's another way of doing this, Gsigms and i discussed it a while ago.
But can't remember how it's done anymore, ask him.

#7 User is offline   Nudrat Icon

  • Account: nudrat
  • Joined: 31-October 14
  • Posts: 1

Posted 31 October 2014 - 07:18 AM

nah. 3 times (as described in my OP link) should be good to go. :) (implied that you dont find a bug afterwards....)
also there are quite some compile scripts out there. some even with GUIs and stuff. i've written my own things in batch, so that it automatically does an backup and cleanup of the .map file, a full compile and a bsp.exe run to integrate the surface sounds.

Also, radiant (i used to use 1.5) has all those options built it. (it might not have the most recent version of q3map2, but that actually doesnt matter) You could just do check out the built menu there. (if i recall correctly it even has a final compile built button, which does all necessary things; you could also add/customize built options)
nudrat

Page 1 of 1
  • 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