Radiance
Onos Ate Me
Join Date: 2010-12-31 Member: 76072Members, NS2 Playtester, Squad Five Blue
<div class="IPBDescription">An in-game light editor</div>Radiance is a real-time light and sound editor.
<center><object width="450" height="356"><param name="movie" value="http://www.youtube.com/v/YE5CgpLuW-Q"></param><embed src="http://www.youtube.com/v/YE5CgpLuW-Q" type="application/x-shockwave-flash" width="450" height="356"></embed></object></center>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo--><a href="http://dl.dropbox.com/u/53107776/radiance/Radiance.zip" target="_blank">Download Radiance</a><!--sizec--></span><!--/sizec-->
<a href="https://github.com/DamienHauta/NS2Radiance" target="_blank">GitHub</a>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->System Requirements<!--sizec--></span><!--/sizec-->
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=17113" target="_blank">Microsoft .NET Framework 4 Client Profile</a>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->Getting Started<!--sizec--></span><!--/sizec-->
<ol type='1'><li>Extract <i>Radiance.zip</i></li><li>Run <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/1.png" target="_blank"><i>MapExtractor/Rebuilder.exe</i></a></li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/2.png" target="_blank">Select the level</a> that you want to edit
<b>Optional</b>: <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/3.png" target="_blank">Select the folder</a> that you want to save backups to.
Backups will be created in this folder with the naming convention of mapname_{n}.level (e.g. ns2_summit_1.level, ns2_summit_2.level, etc.)</li><li>Click <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/3.png"" target="_blank"><i>Extract entities</i></a> to allow this the level to be loaded into Radiance</li><li>When the <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/5.png" target="_blank">entities are extracted</a>, run <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/5.png" target="_blank">Radiance/Run NS2 + Radiance.exe</a>
(Note: keep Rebuilder.exe open while using Radiance)</li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/7.png" target="_blank">Create a new server</a> on the map that you are going to edit.</li><li>When the level has loaded up, type <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/8.png" target="_blank">radiance </a>into the console</li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/9.png" target="_blank">Modify the map</a> and press <i>F8 </i>to save the changes when you are finished</li><li>Rebuilder.exe will automatically detect the changes and saves the changes to the .level file. It will also create a backup beforehand if a backup folder has been supplied</li><li>When the level has been rebuilt, it is safe to <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/11.png" target="_blank">load up the level in the level editor</a></li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/15.png" target="_blank">Make changes to the level</a> and <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/12.png" target="_blank">save the map</a></li><li>Rebuilder.exe will automatically detect the changes to the level and <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/13.png" target="_blank">extract the entities</a></li><li>When Rebuilder finishes extracting the entities, type <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/14.png" target="_blank">radiance</a> into the console in NS2 to resync with the changes from the level editor</li></ol>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->Shortcuts<!--sizec--></span><!--/sizec-->
<b>F2</b>: Brings up the mouse cursor
<b>Left click</b>: Select the entity that the mouse is over
<b>Ctrl + Left click</b>: Selects additional entities
<b>F4</b>: Deselect selected entities
<b>F3</b>: Create an ambient sound
<b>Shift + F3</b>: Create a reverb
<b>F9</b>: Create a point light
<b>Shift + F9</b>: Create or select the fog control
<b>F10</b>: Create a spot light
<b>F11</b>: Create an ambient light
<b>Shift + F11</b>: Create a fog area modifier
<b>Left click drag on an entity</b>: Move the entity
<b>Alt + Left click</b>: Selected spot lights will look to where your mouse is pointing
<b>Shift + Left click</b>: Moves the selected entity to where your mouse is pointing
<b>Ctrl + H</b>: Brings up the HSV editor
<b>Numpad 8</b>: Move the selected entities forward
<b>Numpad 2</b>: Move the selected entities backward
<b>Numpad 4</b>: Move the selected entities leftward
<b>Numpad 6</b>: Move the selected entities rightward
<b>Numpad 9</b>: Move the selected entities upward
<b>Numpad 3</b>: Move the selected entities downward
<b>F5</b>: Undo
<b>F6</b>: Redo
<b>F8</b>: Save
<b>Ctrl+U</b>: Updates all the radii for the lights. Use this if a light isn't rendering properly
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo--><a href="http://dl.dropbox.com/u/53107776/radiance/Radiance.zip" target="_blank">Download Radiance</a><!--sizec--></span><!--/sizec-->
<center><object width="450" height="356"><param name="movie" value="http://www.youtube.com/v/YE5CgpLuW-Q"></param><embed src="http://www.youtube.com/v/YE5CgpLuW-Q" type="application/x-shockwave-flash" width="450" height="356"></embed></object></center>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo--><a href="http://dl.dropbox.com/u/53107776/radiance/Radiance.zip" target="_blank">Download Radiance</a><!--sizec--></span><!--/sizec-->
<a href="https://github.com/DamienHauta/NS2Radiance" target="_blank">GitHub</a>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->System Requirements<!--sizec--></span><!--/sizec-->
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=17113" target="_blank">Microsoft .NET Framework 4 Client Profile</a>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->Getting Started<!--sizec--></span><!--/sizec-->
<ol type='1'><li>Extract <i>Radiance.zip</i></li><li>Run <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/1.png" target="_blank"><i>MapExtractor/Rebuilder.exe</i></a></li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/2.png" target="_blank">Select the level</a> that you want to edit
<b>Optional</b>: <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/3.png" target="_blank">Select the folder</a> that you want to save backups to.
Backups will be created in this folder with the naming convention of mapname_{n}.level (e.g. ns2_summit_1.level, ns2_summit_2.level, etc.)</li><li>Click <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/3.png"" target="_blank"><i>Extract entities</i></a> to allow this the level to be loaded into Radiance</li><li>When the <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/5.png" target="_blank">entities are extracted</a>, run <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/5.png" target="_blank">Radiance/Run NS2 + Radiance.exe</a>
(Note: keep Rebuilder.exe open while using Radiance)</li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/7.png" target="_blank">Create a new server</a> on the map that you are going to edit.</li><li>When the level has loaded up, type <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/8.png" target="_blank">radiance </a>into the console</li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/9.png" target="_blank">Modify the map</a> and press <i>F8 </i>to save the changes when you are finished</li><li>Rebuilder.exe will automatically detect the changes and saves the changes to the .level file. It will also create a backup beforehand if a backup folder has been supplied</li><li>When the level has been rebuilt, it is safe to <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/11.png" target="_blank">load up the level in the level editor</a></li><li><a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/15.png" target="_blank">Make changes to the level</a> and <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/12.png" target="_blank">save the map</a></li><li>Rebuilder.exe will automatically detect the changes to the level and <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/13.png" target="_blank">extract the entities</a></li><li>When Rebuilder finishes extracting the entities, type <a href="http://dl.dropbox.com/u/53107776/radiance/4/readme/images/14.png" target="_blank">radiance</a> into the console in NS2 to resync with the changes from the level editor</li></ol>
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->Shortcuts<!--sizec--></span><!--/sizec-->
<b>F2</b>: Brings up the mouse cursor
<b>Left click</b>: Select the entity that the mouse is over
<b>Ctrl + Left click</b>: Selects additional entities
<b>F4</b>: Deselect selected entities
<b>F3</b>: Create an ambient sound
<b>Shift + F3</b>: Create a reverb
<b>F9</b>: Create a point light
<b>Shift + F9</b>: Create or select the fog control
<b>F10</b>: Create a spot light
<b>F11</b>: Create an ambient light
<b>Shift + F11</b>: Create a fog area modifier
<b>Left click drag on an entity</b>: Move the entity
<b>Alt + Left click</b>: Selected spot lights will look to where your mouse is pointing
<b>Shift + Left click</b>: Moves the selected entity to where your mouse is pointing
<b>Ctrl + H</b>: Brings up the HSV editor
<b>Numpad 8</b>: Move the selected entities forward
<b>Numpad 2</b>: Move the selected entities backward
<b>Numpad 4</b>: Move the selected entities leftward
<b>Numpad 6</b>: Move the selected entities rightward
<b>Numpad 9</b>: Move the selected entities upward
<b>Numpad 3</b>: Move the selected entities downward
<b>F5</b>: Undo
<b>F6</b>: Redo
<b>F8</b>: Save
<b>Ctrl+U</b>: Updates all the radii for the lights. Use this if a light isn't rendering properly
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo--><a href="http://dl.dropbox.com/u/53107776/radiance/Radiance.zip" target="_blank">Download Radiance</a><!--sizec--></span><!--/sizec-->
Comments
So theoretically you could light your entire map in realtime in the game, then save the map like that? I imagine that would save an immense amount of time than getting everything just right in the editor, then loading it up and having it look different in the game due to height differences and such. Ideally, you would want your mouse to control the x,y,z of these light placements, so it would be even easier to flesh out lighting in your rooms. Simply create a light at the cursor, then drag it with the mouse to where you want it.
This is really great tool even for a single user! Tools like this show how Spark is truly a robust 3D development platform.
This is really great tool even for a single user! Tools like this show how Spark is truly a robust 3D development platform.<!--QuoteEnd--></div><!--QuoteEEnd-->
Multiplayer editing is disabled right now for security and project scope reasons. It's possible to edit maps on servers with other players playing vanilla ns but they wont see the changes.
Those that really want multiplayer editing right now could enable, <a href="http://stackoverflow.com/questions/443640/httplistener-start-accessdenied-error-on-vista/445044#445044" target="_blank">in theory</a>, if the host changes the source code on line 24 in Server.cs in the Radiance.Server project from:
public readonly string UrlPrefix = "http://localhost:24852/";
to:
public readonly string UrlPrefix = "http://+:24852/";
then running this command in cmd.exe:
netsh http add urlacl url=http://+:24852/app user=domain\user
and connecting players change line 6 in Mod/lua/Radiance.lua from:
Server = "http://localhost:24852",
to:
Server = "http://<i><radiance host ip></i>:24852",
This is a huge security risk for the host however as there is no authentication or safety measures in place when saving and anyone on the internet would be able to connect to the server. Multiplayer (that is safe) is one of my top priorities for the next version but that might not come for a week or two.
Working on a map with a friend, would be amazing if we could both do this together and have it to save it to one/both computers.
This mod is a godsend, thank you.
Edit: Nevermind!
Well done!
Good job!
Really nice tool and its fun to mess around with the lights on the actual maps.
Finally someone that understands real next-gen lighting. Take notes, UWE.
Now i wish, this would work as a basic feature from the map editor...
So you could kinda jump from editor view into ingame view (so no need to start an extra session of the game) where you can change stuff like this mod (which feels kinda like gmod)
+ have some kind of multiplayer feature so you could share a mapping session and do stuff live on the same map with multiple ppl over the internet...
Kinda like Crysis2 editor made a baby with Gmod.
Why dont we get this?
PS: Why dont we have light bouncing/<a href="http://www.youtube.com/watch?v=k34H_JEp2aw" target="_blank">radiosity</a>, <a href="http://www.youtube.com/watch?v=t7Qw05BUuss" target="_blank">translucency/sss</a> in spark yet btw?
Will any of this come at some point?
I also wonder if all this cool stuff is heading towards an engine that will let mappers make maps while in-game rather than with an out-of-game editing tool. At the very least, allowing mappers to tweak moderate to major pieces of their map (think moving tech/res/power node locations, lighting, adding/deleting/changing props, etc) in-game would be a great addition to the spark engine imo.