Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make dynamic lighting

#1
This is a question at the moment because i don't know the answer yet and am unable to find any resources Sad

a good example of what I'm trying to achieve is @3.55 of this q4 video
http://www.youtube.com/watch?v=tfT-fuW1w...re=related
A func_rotating fan with a dynamic light behind it.

I'd also like to create a other lighting effects like specified in this http://www.ehow.com/how_4488215_create-d...diant.html

The problem is when a light entity is selected and NOGRIDLIGHT is enabled the entity doesn't work, even when real time world dynamic lighting and shadows in game are enabled?

I think this is very important layer of detail all high skilled mappers need to apply their maps to be included in the xonotic release, so we need to find answers Smile
There's nothing better than getting off you butt and contributing to a community. There is no excuse when it comes to computers. Spend a little of you playing time, giving back Smile
Reply

#2
I know I already posted this in IRC, but I figured I'd put it up here as well for clarity's sake.

I recognize the lights in the video as rtlights. I'm unsure as to if they work in Xonotic, but in Nexuiz I was able to play around with them a bit. It sucks because you can only edit them in-game, as far as I know.

I went along with this: http://www.nexuizninjaz.com/forum/Thread...ights.html

Let me know if this isn't what you're talking about, or if they don't work in Xonotic, or the likes.
Once upon a time, I wrote a forum post. And this is what it said.
Reply

#3
posted by fabzor3
http://www.nexuizninjaz.com/forum/Thread...ights.html
These work great except they are apart of "Realtime world lighting" not "Realtime dynamic lighting"
Quote:There are 2 main kinds of lights in Nexuiz; realtime lights (rtlights) and radiosity based lights(the regular kind you see in radiant).

You can place the radiosity type of light in your map editor, typically GTkRadiant with an operation as simple as place light, but the realtime lights need to be placed ingame with use of the console and various commands.

the console commands are as follows…

Settings:
r_editlights : enable/disable editing mode
r_editlights_cursordistance : maximum distance of cursor from eye
r_editlights_cursorpushback : push back cursor this far from surface
r_editlights_cursorpushoff : push cursor off surface this far
r_editlights_cursorgrid : snap cursor to grid of this size
r_editlights_quakelightsizescale : imported quake light entity size scaling
Commands:
r_editlights_help : this help
r_editlights_clear : remove all lights
r_editlights_reload : reload .rtlights, .lights file, or entities
r_editlights_save : save to .rtlights file
r_editlights_spawn : create a light with default settings
r_editlights_edit command : edit selected light - more documentation below
r_editlights_remove : remove selected light
r_editlights_toggleshadow : toggles on/off selected light’s shadow property
r_editlights_importlightentitiesfrommap : reload light entities
r_editlights_importlightsfile : reload .light file (produced by hlight)

Edit commands:
origin x y z : set light location
originx x: set x component of light location
originy y: set y component of light location
originz z: set z component of light location
move x y z : adjust light location
movex x: adjust x component of light location
movey y: adjust y component of light location
movez z: adjust z component of light location
angles x y z : set light angles
anglesx x: set x component of light angles
anglesy y: set y component of light angles
anglesz z: set z component of light angles
color r g b : set color of light (can be brighter than 1 1 1)
radius radius : set radius (size) of light
colorscale grey : multiply color of light (1 does nothing)
colorscale r g b : multiply color of light (1 1 1 does nothing)
radiusscale scale : multiply radius (size) of light (1 does nothing)
sizescale scale : multiply radius (size) of light (1 does nothing)
style style : set lightstyle of light (flickering patterns, switches, etc)
cubemap basename : set filter cubemap of light (not yet supported)
shadows 1/0 : turn on/off shadows
corona n : set corona intensity
coronasize n : set corona size (0-1)
ambient n : set ambient intensity (0-1)
diffuse n : set diffuse intensity (0-1)
specular n : set specular intensity (0-1)
normalmode 1/0 : turn on/off rendering of this light in rtworld 0 mode
realtimemode 1/0 : turn on/off rendering of this light in rtworld 1 mode
<nothing> : print light properties to console



Dont panic, you dont need to remember all of these, but its important to know these few as they are often used

r_editlights 1 = turns on rtlight editing
r_editlights 0 = turns off rtlight editing

r_editlights_edit shadows 0 = turns off shadows to save speed and processing time

r_editlights_edit color 0 0 1 = will make a light red
r_editlights_edit color 0 1 1 = will make a light yellow
r_editlights_edit color 1 0 1 = will make a light purple
r_editlights_edit color 0.3 0.3 0.3 = will make a light dimmer whilst keeping the lights radius

r_editlights_edit radius 150 = small light
r_editlights_edit radius 320 = medium light
r_editlights_edit radius 475 = largeish light
r_editlights_edit radius 550 = large light
r_editlights_edit radius 650 = pretty huge light
r_editlights_edit radius 900 = huge light

r_editlights_save

you get the idea, radius scales the light sources and is very important

be very careful to put in as few lights as possible, and to make the overlap as little as possible.

this work of lighting your map is a constant tradeoff between visual quality and speed.

after you have finished placing you lights dont forget to r_editlights_save
LordHavoc said:
Quote:It is particularly important to pay attention to these r_editlights_ commands:
r_editlights_copyinfo (saves properties of current light)
r_editlights_pasteinfo (applies saved properties to a light)
r_editlights_edit normalmode 1 (causes a light to be visible in normal rendering, without the world dynamic lights option)
r_editlights_edit diffuse 0 (causes a light to emit no diffuse light)
r_editlights_edit specular 0 (causes a light to emit no specular light)
r_editlights_edit ambient 1 (causes a directionless light effect in the area of the light, different from diffuse and specular, it is soft lighting, which has some uses...)

It is worth noting that diffuse, specular, and ambient can be set to values above 1 if you desire a particularly strong effect, when all are 0 the light renders no lighting at all (but can still do a corona).
There's nothing better than getting off you butt and contributing to a community. There is no excuse when it comes to computers. Spend a little of you playing time, giving back Smile
Reply

#4
Be sure to read LordHavoc's response there, too.
Reply

#5
Morphed sent a link using a different method Smile
www.morphed.planetnexuiz.com/map_fan.zip

Also answered my own question! Big Grin
r_editlights_edit normalmode 1
This allows dynamic lighting with shadow to work with lower settings Big Grin Big Grin !!!! highly recommend other players do some of this!
There's nothing better than getting off you butt and contributing to a community. There is no excuse when it comes to computers. Spend a little of you playing time, giving back Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Lighting works fine on -medium but comes out awful on the final pass.... Notavi 3 2,674 08-04-2018, 04:57 AM
Last Post: Notavi
  Can I Make an Edge Shader? MrDetonia 3 4,872 04-16-2015, 02:30 AM
Last Post: zeeshan002
  How to make a vault door in NetRadiant aa 4 5,873 11-03-2013, 08:29 PM
Last Post: tZork
  [PSA] Lighting is NOT spelled "lightNing" Mr. Bougo 14 12,480 12-28-2012, 02:30 AM
Last Post: aa
  how do i make the axis on a rotating door horizontal? tangerian 5 5,748 07-15-2012, 12:06 PM
Last Post: hutty
  Dynamic sky (day/night cycle) monad 14 15,967 05-14-2012, 12:14 PM
Last Post: Nahuel
  about lighting hutty 9 8,813 04-23-2012, 07:20 AM
Last Post: Maddin
  What traps should I make? Fireball 2 4,038 09-17-2011, 01:57 AM
Last Post: Fireball
Question Request textures. I'll make. Ihsan 20 23,281 12-06-2010, 03:19 PM
Last Post: unfa
  Anyway to take a .bsp and make it a .map file again? MintOX 6 11,831 10-28-2010, 02:30 PM
Last Post: MintOX

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-