klepto2 Posted November 5, 2010 Share Posted November 5, 2010 Hi, after long silence I want to present a small wip script/shader which replaces the Atmosphere script in the Editor with a dynamic sky tool. The other options from the old atmosphere script are all available through mine. [screen] [Download] DayNight.zip [installation] Unzip this in the models/Environment folder (or somewhere you like within your SDK/Editor folder) and restart the Editor. Keep in mind that this is still WIP and needs tweaking on various aspects, also I will add moving clouds in a later version. I hope you like it and I waiting for feedback. thx klepto2 Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
macklebee Posted November 5, 2010 Share Posted November 5, 2010 very cool Klepto! and very generous thanks! you should put this in the downloads section though... EDIT> appears to be missing the Intensity.lua and suncolor scripts... but no matter it still works thanks! Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
klepto2 Posted November 5, 2010 Author Share Posted November 5, 2010 thx macklebee, I will add it to the toolbox as soon as it is stable and balanced enough. Currently the dawn and dusk effect is a bit out of sync (the effect starts to early and stays to long). intensity.lua and suncolor.lua are data scripts i have used in an earlier version and i have forgotten to delete the references in the current script. They are not needed. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
macklebee Posted November 5, 2010 Share Posted November 5, 2010 thx macklebee, I will add it to the toolbox as soon as it is stable and balanced enough. Currently the dawn and dusk effect is a bit out of sync (the effect starts to early and stays to long). sounds great... nice work. intensity.lua and suncolor.lua are data scripts i have used in an earlier version and i have forgotten to delete the references in the current script. They are not needed. good. thats what i did already as well. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Flexman Posted November 5, 2010 Share Posted November 5, 2010 I have to say wow, I dropped this into my map to have a look and it's really great. Looking forward to seeing what you do with clouds. Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
gordonramp Posted November 6, 2010 Share Posted November 6, 2010 Nice Klepto2, but I'm having no transition with this. I have the latest download of the Leadwerks Engine. Placed the unzipped contents of your file into the Leadwerks Models folder. Ran the Editor and placed a painted terrain in the scene. Then placed the day/night object into the scene. At first I got errors for the 'intensity and sunglow' so I deleted the require lines for these two from the Lua file. I assume this was correct. Now when I place the day/night object into the scene there is a sky and there are no errors but no transition. Am I missing something? Thanks. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
macklebee Posted November 6, 2010 Share Posted November 6, 2010 Nice Klepto2, but I'm having no transition with this. I have the latest download of the Leadwerks Engine. Placed the unzipped contents of your file into the Leadwerks Models folder. Ran the Editor and placed a painted terrain in the scene. Then placed the day/night object into the scene. At first I got errors for the 'intensity and sunglow' so I deleted the require lines for these two from the Lua file. I assume this was correct. Now when I place the day/night object into the scene there is a sky and there are no errors but no transition. Am I missing something? Thanks. ... intensity.lua and suncolor.lua are data scripts i have used in an earlier version and i have forgotten to delete the references in the current script. They are not needed. and you need to open up the DayNite properties dialog and set the Rate of change... its default is 0. Change it to something greater than that to see it do the day nite cycle... also, check the DeBug checkbox to see the current time and change. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
gordonramp Posted November 6, 2010 Share Posted November 6, 2010 Thanks Mack, working nicely now. Neat thing. When there are clouds, the Engine will be much improved. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
Wchris Posted November 6, 2010 Share Posted November 6, 2010 [installation] Unzip this in the models/Environment folder (or somewhere you like within your SDK/Editor folder) and restart the Editor. Keep in mind that this is still WIP and needs tweaking on various aspects, also I will add moving clouds in a later version. I hope you like it and I waiting for feedback. thx klepto2 Thank you for sharing Klepto ! edit: i solved all my problems , it was my fault it is working well now. Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM Link to comment Share on other sites More sharing options...
Paul Posted November 7, 2010 Share Posted November 7, 2010 Even at intensity 0.1 it appears too bright. Quote Intel Core i7 975 @ 3.33GHz, 6GB ram, GTX 560 Super OC, Windows 7 Pro 64bit Link to comment Share on other sites More sharing options...
klepto2 Posted November 7, 2010 Author Share Posted November 7, 2010 Hi, thx for the feedback. I have uploaded an updated version ( Download at first post). Changes: - Removed unneeded references to lua files - Fixed the ambientlight bug. - Reordered the Options and splitted them in different categories Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
gordonramp Posted November 7, 2010 Share Posted November 7, 2010 That's odd. The new version has no 'Cycle' category. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
klepto2 Posted November 7, 2010 Author Share Posted November 7, 2010 I have seperated the properties into new sections. I have also noticed new bug with the Ambient settings, as a workaround place a normal Ambient light and use this instead. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
gamecreator Posted November 7, 2010 Share Posted November 7, 2010 Thank you very much for sharing this klepto. I got it to work on the first try (and that's a feat for a beginner like me)! The only thing I noticed was that the snow texture remained bright white even when the sun was fully gone but I'm guessing that may not have been addressed yet. I also didn't play with any other settings beyond turning up the rate of the sun movement. Finally, how can this be used in C++ code? Is it possible yet? Thank you again!! Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 7, 2010 Share Posted November 7, 2010 Finally, how can this be used in C++ code? Is it possible yet? can you not use lua scripted objects in c++ at all? if you can this is no different... just need it in the scene and it should just work. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Michael Betke Posted November 8, 2010 Share Posted November 8, 2010 The sun is shining under the terrain if I set it very early. So my models get lit from beneth. Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Gilmer Posted November 8, 2010 Share Posted November 8, 2010 Very nice, thanks for sharing! You will add support to skybox?? Would good, if can set some texture cubemap combined with the day/night. Quote Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted November 8, 2010 Share Posted November 8, 2010 verrrry nice K... thx for sharing... --Mike Quote Link to comment Share on other sites More sharing options...
Richard Simpson Posted November 8, 2010 Share Posted November 8, 2010 This is amazing! I've wanted a day/night cycle for ages! Thankyou Klepto2 Quote Intel core 2 quad 6600 | Nvidia Geforce GTX460 1GB | 2GB DDR2 Ram | Windows 7. Google Sketchup | Photoshop | Blender | UU3D | Leadwerks Engine 2.4 Link to comment Share on other sites More sharing options...
Paul Posted November 9, 2010 Share Posted November 9, 2010 Finally, how can this be used in C++ code? Is it possible yet? Maybe load the model and set the data with SetEntityKey? Quote Intel Core i7 975 @ 3.33GHz, 6GB ram, GTX 560 Super OC, Windows 7 Pro 64bit Link to comment Share on other sites More sharing options...
Dan_Incognito Posted April 20, 2011 Share Posted April 20, 2011 Hi since the data loss i know i cant download the file. Dose anyone have it that they could email to me? incognitogamestudios@gmail.com It would mean a lot. Thanks Quote Games before Dames. Link to comment Share on other sites More sharing options...
ZioRed Posted April 20, 2011 Share Posted April 20, 2011 It should be this DayNight.zip Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
klepto2 Posted April 20, 2011 Author Share Posted April 20, 2011 newer Version is available here: http://leadwerks.com/werkspace/index.php/topic/3104-day-night-script/ Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Dan_Incognito Posted April 23, 2011 Share Posted April 23, 2011 Tanx guys Quote Games before Dames. Link to comment Share on other sites More sharing options...
Krankzinnig Posted April 23, 2011 Share Posted April 23, 2011 Works great! Thanks a ton ;P EDIT: Converting this to a class for use in C++ if you don't mind ;P EDIT 2: Done ;P Quote AMD Phenom II X4 B55 3.20 GHz - 8.00 GB Patriot Gamer Series RAM - AMD Radeon HD 6800 Series 1 GB GDDR5 - Windows 7 Professional 64 Bit Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.