Radiance

Onos Ate MeOnos Ate Me Join Date: 2010-12-31 Member: 76072Members, NS2 Playtester, Squad Five Blue
edited June 2012 in Modding
<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-->
«13

Comments

  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    I'm impressed you are updating the map to save the changes. Very cool.
  • simon kamakazisimon kamakazi Join Date: 2009-04-28 Member: 67296Members
    dude this looks great
  • WilsonWilson Join Date: 2010-07-26 Member: 72867Members
    edited November 2011
    Sexy! Really awesome dude.
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    edited November 2011
    This looks amazingly useful. I thought the editor already updated the lighting dynamically, does loading the actual map in the game change very much? Are more lights added when the map loads than what is displayed in the editor? Also, do these remixed maps work on servers running the normal version? I imagine you would run into consistency issues if that was the case. Please forgive my ignorance.

    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.
  • FlayraFlayra Game Director, Unknown Worlds Entertainment San Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
  • KalabalanaKalabalana Join Date: 2003-11-14 Member: 22859Members
    Seeing this sort of community development makes me very excited
  • JibrailJibrail Join Date: 2009-04-16 Member: 67200Members
    nothing short of amazing, this just shows the engine's capabilities and the true talent we have here in our little community.
  • RulgrokRulgrok Join Date: 2007-04-04 Member: 60559Members
    Someone give this man a _____________
  • DY357LXDY357LX Playing since day 1. Still can&#39;t Comm. England Join Date: 2002-10-27 Member: 1651Members, Constellation
    Holy Crap "Onos Ate Me"! This is superb! Well done, keep up the awesome work.
  • culpritculprit Join Date: 2005-01-07 Member: 33527Members, Constellation
    edited November 2011
    Is this multi-user capable or could it be made to work with multiple players making edits? That would be super awesome. You could have teams of lighting designers running around a map making tweaks!

    This is really great tool even for a single user! Tools like this show how Spark is truly a robust 3D development platform.
  • twilitebluetwiliteblue bug stalker Join Date: 2003-02-04 Member: 13116Members, NS2 Playtester, Squad Five Blue
    What a fantastic tool for mappers! I love those modified lighting on Summit!
  • Onos Ate MeOnos Ate Me Join Date: 2010-12-31 Member: 76072Members, NS2 Playtester, Squad Five Blue
    <!--quoteo(post=1885113:date=Nov 15 2011, 08:33 PM:name=culprit)--><div class='quotetop'>QUOTE (culprit @ Nov 15 2011, 08:33 PM) <a href="index.php?act=findpost&pid=1885113"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Is this multi-user capable or could it be made to work with multiple players making edits? That would be super awesome. You could have teams of lighting designers running around a map making tweaks!

    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.
  • SmaugSmaug Join Date: 2011-05-23 Member: 100283Members
    edited November 2011
    Does this come in multiplayer?

    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!
  • ObraxisObraxis Subnautica Animator & Generalist, NS2 Person Join Date: 2004-07-24 Member: 30071Super Administrators, Forum Admins, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Silver, WC 2013 - Supporter, Subnautica Developer, Pistachionauts
    Very impressive work there! Great stuff - I'll be using this with my map. Thanks! :D
  • BarerRudeROCBarerRudeROC Join Date: 2010-10-01 Member: 74264Members
    Nothing short of impressive.
    Well done!
  • snooopssnooops Germany Join Date: 2008-12-08 Member: 65702Members, Reinforced - Shadow
    Wow thats really cool!!! How much time did you spent for this?
  • InsaneInsane Anomaly Join Date: 2002-05-13 Member: 605Members, Super Administrators, Forum Admins, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, NS2 Map Tester, Subnautica Developer, Pistachionauts, Future Perfect Developer
    Wow, impressive! And that shot of the golden lighting bursting up between the floor panels looks really cool.
  • SewlekSewlek The programmer previously known as Schimmel Join Date: 2003-05-13 Member: 16247Members, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Developer
  • pSyk0mAnpSyk0mAn Nerdish by Nature Germany Join Date: 2003-08-07 Member: 19166Members, NS2 Playtester, Squad Five Silver, NS2 Community Developer
    Holy crap, that's amazing!
    Good job!
  • Electr0Electr0 Join Date: 2011-10-31 Member: 130337Members
    Very cool indeed, this will make lighting a map much more enjoyable, editor performance sucks when you turn lights on, i don't get how there can be such a difference in performance between the two, ideally they need to use the same engine and make it so you can jump in and out of the map like you're actually playing, similar to the crysis editor. :D
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    I like how you're using round-trip web-requests to escape the Lua-sandbox, very clever thinking indeed.
  • FloodinatorFloodinator [HBZ] Member Join Date: 2005-02-22 Member: 42087Members, Reinforced - Shadow
    People like you make wan't to learn programing!
    Really nice tool and its fun to mess around with the lights on the actual maps.
  • ZekZek Join Date: 2002-11-10 Member: 7962Members, NS1 Playtester, Constellation, Reinforced - Shadow
    <!--quoteo(post=1885098:date=Nov 15 2011, 09:37 PM:name=Onos Ate Me)--><div class='quotetop'>QUOTE (Onos Ate Me @ Nov 15 2011, 09:37 PM) <a href="index.php?act=findpost&pid=1885098"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><a href="http://imageshack.us/photo/my-images/507/2011111500002x.jpg/" target="_blank"><img src="http://img507.imageshack.us/img507/7829/2011111500002x.th.jpg" border="0" class="linked-image" /></a><!--QuoteEnd--></div><!--QuoteEEnd-->
    Finally someone that understands real next-gen lighting. Take notes, UWE.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Amazing stuffs, I want this in SparkE... Somehow this feels like the start of Gmod for NS2 :P
  • KoruyoKoruyo AUT Join Date: 2009-06-06 Member: 67724Members, Reinforced - Shadow
    edited November 2011
    Wow, really cool stuff!!!


    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?
  • LPCLPC Join Date: 2002-04-07 Member: 384Members, Reinforced - Diamond
    massive... west stains massive.... booyakasha
  • NurEinMenschNurEinMensch Join Date: 2003-02-26 Member: 14056Members, Constellation
    This is really cool! One thing I don't understand though. Isn't the editor supposed to do that already? I thought that was one of the selling points. I haven't really worked with the editor much, so maybe I am missing the obvious.
  • ObraxisObraxis Subnautica Animator & Generalist, NS2 Person Join Date: 2004-07-24 Member: 30071Super Administrators, Forum Admins, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Silver, WC 2013 - Supporter, Subnautica Developer, Pistachionauts
    I've webbed/pinned this topic :-) Don't want it lost to the void.
  • WheeeeWheeee Join Date: 2003-02-18 Member: 13713Members, Reinforced - Shadow
    adding to the chorus of praise. +1
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    +1 to the op's awesomeness and for making this part of the Spark tools.

    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.
Sign In or Register to comment.