How do you add coronas / lens flares on maps?

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators


  • Been mapping for Nexuiz for a little while (working on my first map for it really but I know Radiant well enough to use it) but there's one thing I just couldn't find out; How do you add corona / lens flare effects on light sources in maps? I tried looking at a quake mapping tutorial but the instructions on how to place coronas there don't seem to apply to Nexuiz too (Radiant 1.5.0).

    I seen the Corona option exists in the settings and also seen a screenshot of a Nexuiz map with coronas so I know they're possible, so where in gtkRadiant for Nexuiz can coronas be found and placed? Also, if coronas use custom textures, could someone also mention the texture group where lens flare textures can be found?
    <Taoki> ... So maybe the new colored bars under the sbar weapons could indicate ammo level rather than accuracy stats.
    <Morphed> great now there is a place to show current phase of moon on hud
    User avatar
    MirceaKitsune
    Keyboard killer
     
    Posts: 593
    Joined: Thu Aug 14, 2008 6:48 am
    Location: Romania - Bucharest

Wed Sep 24, 2008 4:53 pm

  • In the 2D view, RMB->misc->misc_light_flare to create the flare. Move it to the desired location and press M while it is still selected. Set it's radius and shader name to the desired values. The shader can be one from any map that already has flares.
    Taiyo.uk
    Alien trapper
     
    Posts: 436
    Joined: Mon Apr 17, 2006 8:48 pm
    Location: Reading, IN-GER-LUND!!!

Wed Sep 24, 2008 6:02 pm

  • Taiyo.uk wrote:In the 2D view, RMB->misc->misc_light_flare to create the flare. Move it to the desired location and press M while it is still selected. Set it's radius and shader name to the desired values. The shader can be one from any map that already has flares.


    Weird, I don't have that option there under the misc menu. This is how it looks like for me:

    Image
    <Taoki> ... So maybe the new colored bars under the sbar weapons could indicate ammo level rather than accuracy stats.
    <Morphed> great now there is a place to show current phase of moon on hud
    User avatar
    MirceaKitsune
    Keyboard killer
     
    Posts: 593
    Joined: Thu Aug 14, 2008 6:48 am
    Location: Romania - Bucharest

Wed Sep 24, 2008 11:53 pm

Thu Sep 25, 2008 12:18 am



  • Done that... I overwrited the entities.def in nexuiz.game/data in gtkRadiant with the one in the data(numbers).pk3 file in the Nexuiz data folder. However, that entities.def does not seem to contain any information about the lens flare and only cut away two more of the options under the misc mini-menu. Does anyone know where I can get a correct entities.def? Or should I try the one in SVN as posted in that topic?
    User avatar
    MirceaKitsune
    Keyboard killer
     
    Posts: 593
    Joined: Thu Aug 14, 2008 6:48 am
    Location: Romania - Bucharest

Thu Sep 25, 2008 3:54 am

  • ctrl+f for the svn one yielded nothing pertaining to what Taiyo.uk was referring to... not sure where he got that information from. Someone else will have to clarify.
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Thu Sep 25, 2008 6:38 pm

  • There are two ways to do lensflares/coronas in Nexuiz. The first one is the oldschool way that uses a shader and a texture. You can take a closer look on how it's done on the map "pushme": http://hagger.rbi.informatik.uni-frankf ... pushme.pk3

    The shader (taken from the map above) looks like that:
    Code: Select all
    models/mapobjects/flares/Light_flare

    {
            deformVertexes autosprite
            surfaceparm   trans
       surfaceparm nomarks
       surfaceparm nolightmap
       q3map_surfacelight   3000   
            cull none

       {
          map models/mapobjects/flares/light_flare.tga
          blendFunc GL_ONE GL_ONE
          rgbGen identityLighting
       }

    }

    The important part is the line "deformVertexes autosprite" which tells the engine to let the texture always face in the direction of the player.

    The second possibility to do coronas is using the rtlights in Nexuiz. The coronas then will only show if the player enables dynamic world lights of course.
    To create those, start the ingame rtlights editor. Then spawn a light and edit the attributes for the corona.
    Code: Select all
    r_editlights 1
    r_editlights_spawn
    r_editlights_edit corona <value>      (sth. like 1 seems normal)
    r_editlights_edit coronasize <value>      (sth. like 1 seems normal)


    To edit the attributes of a specific light you need to focus it. The attributes then are visible in the upper right corner of your screen.
    For more info on rtlights use
    Code: Select all
    r_editlights_help

    And don't forget to save your rtlights with
    Code: Select all
    r_editlights_save

    Your lights will then be saved in a yourmapname.rtlights file. Add it to your pk3 into the /maps folder and your done.
    bleach->aneurysm->straledm5->dieselpower->space-fun->o-fun->runningman->runningman1on1->aggressor(conversion)->soylent->bloodprison->bluesky->ruiner->reslimed->strength
    User avatar
    Strahlemann
    Keyboard killer
     
    Posts: 676
    Joined: Wed Mar 01, 2006 12:11 am
    Location: Ulm/Germany

Fri Jan 29, 2010 10:23 am

  • Strahlemann wrote:The second possibility to do coronas is using the rtlights in Nexuiz. The coronas then will only show if the player enables dynamic world lights of course.


    Not if you use
    Code: Select all
    r_editlights_edit normalmode 1
    which makes it appear in normal mode too.. But it's best to also use
    Code: Select all
    r_editlights_edit diffuse 0
    r_editlights_edit specular 0
    if you do that, so that the light is a corona only (no real lighting), these render pretty cheaply.
    LordHavoc
    Site Admin
     
    Posts: 191
    Joined: Wed Mar 29, 2006 7:39 am
    Location: western Oregon, USA



Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest