YouGroove Posted April 25, 2014 Share Posted April 25, 2014 It's from 3D quality point of view not programmer one : Brute lights and shadows are existing from lot of years years. I just realiased testing 3.0 , that it was doing better than 3.1 real time shadows that fades away even on super quality. Deferred or not deferred ligthening looks same as materials and shaders are the same techniques. With deferred bringing more than one directionnal light and your performance will drop quickly actually, specially shaders and shadows cost is heavy also. So will it be some new advanced lightening system planned with OpenGL4 or will it remain basic ? LE3 is doing great now , some features like grass, CSG tools will appear it seems , and LE3 workflow is great now , but i ask more on the 3D artist side will it be advanced faster and better shadowing system than brute shadows ? As advanced it's means less expensive than real time shadows calculations, this is the purpose of global illumination and others , avoid full shadowed level with brute shadows that just would make level too slow. It's curiosity as nothing precise and concerning that points are stated anywhere. Perhaps i am the only one asking that also. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Christian Clavet Posted April 25, 2014 Share Posted April 25, 2014 Hi, YouGroove! Yes, asked for this. And got answered that the lightmapping will never come back. Then I learned that the old way of doing the lightmaps (light baking) was about of the same quality of the current lights. So I perfectly understand now why it's not coming back. As for improvement in lighting to mimic the effects of Global Illumination, Josh said he was thinking of something. Seeing really impressive stuff made by UBI in their latest games using some kind of "sampler spheres" they seem to use to light the level. For doing "quality/realistic" rendering of environment, using this version of the engine, I hope the editor will be able to export the CSG models we create, so we could "lightmap" ourself in a 3D application then import and replace the current "reference" we have with one that has better overall quality (if we can export the mesh, we can also improve the details). When I was modding with the "source engine" we used to create the level using the CSG tools to have a fast prototype, define the gameplay, then export the models to artists to improve the model, then import it and use the CSG for collision only. I hope to be able to do the same. If I need to create a "realistic" level, right now, it's still possible, but the level would have to be created outside LE from the start. 2 Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 26, 2014 Author Share Posted April 26, 2014 Then I learned that the old way of doing the lightmaps (light baking) was about of the same quality of the current lights. So I perfectly understand now why it's not coming back. This is what i don't understand because of same quality, lightmaps uses very few GPU ressources compared to real time shadows and lightening. Actual LE3 frame rate is too low for almost empty levels. Put a directionnal light , than add only a spot ligth to see big frame rate drop down. Lightmappgin would have kept high frame rate and better shadows, caus lightmapping don't have distance limitation like actual LE3 shadows. When I was modding with the "source engine" we used to create the level using the CSG tools to have a fast prototype, define the gameplay, then export the models to artists to improve the model, then import it and use the CSG for collision only. Good method, that can be effective between gameplay coders and 3D artists. As for improvement in lighting to mimic the effects of Global Illumination, Josh said he was thinking of something. Seeing really impressive stuff made by UBI in their latest games using some kind of "sampler spheres" they seem to use to light the level. There are many stuff around the web that can be found from Image bases solution (like Marmoset), to some global illumination techniques. So this seems we'll have to wait a good bunch before seeing faster lightening system with global illumination. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
SlipperyBrick Posted April 26, 2014 Share Posted April 26, 2014 Hi, YouGroove! Yes, asked for this. And got answered that the lightmapping will never come back. Then I learned that the old way of doing the lightmaps (light baking) was about of the same quality of the current lights. So I perfectly understand now why it's not coming back. As for improvement in lighting to mimic the effects of Global Illumination, Josh said he was thinking of something. Seeing really impressive stuff made by UBI in their latest games using some kind of "sampler spheres" they seem to use to light the level. For doing "quality/realistic" rendering of environment, using this version of the engine, I hope the editor will be able to export the CSG models we create, so we could "lightmap" ourself in a 3D application then import and replace the current "reference" we have with one that has better overall quality (if we can export the mesh, we can also improve the details). When I was modding with the "source engine" we used to create the level using the CSG tools to have a fast prototype, define the gameplay, then export the models to artists to improve the model, then import it and use the CSG for collision only. I hope to be able to do the same. If I need to create a "realistic" level, right now, it's still possible, but the level would have to be created outside LE from the start. I really like that work flow sounds great. I love the idea of being able to export the CSG and then use the original as collision that is genius! That would speed up the level design process when your doing your detail passes as well. Because the bulk of the level will be done with the CSG brushes. Very impressive and very good workflow man! Quote Link to comment Share on other sites More sharing options...
shadmar Posted April 26, 2014 Share Posted April 26, 2014 If someone is willing to build me a lightmapped scene, I can provide shaders for it. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
SlipperyBrick Posted April 28, 2014 Share Posted April 28, 2014 I have Toolbag 2. I can build a scene and lightmap it in there then export and bring it into LE3 and send you the map file with textures? Quote Link to comment Share on other sites More sharing options...
shadmar Posted April 28, 2014 Share Posted April 28, 2014 Yes. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Einlander Posted April 29, 2014 Share Posted April 29, 2014 You can use Delgine/Deled http://www.delgine.com/index.php?filename=product_deled or QuArk http://quark.sourceforge.net/ (both opensource) to create you're level and light map it. Then you can export your map and texture (once you download the proper exporter, neither of them export to fbx but obj is an option) with the lights pre-baked. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 29, 2014 Author Share Posted April 29, 2014 Oh Deled is good and has lot of features that should in in LE3 (From rectangle select, extrude, split etc ...) the gizmo is lot more friendly and you can do all CSG modifications directly in 3D View. Seems a really good alternative for LE3 users that are new to modeling. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted April 29, 2014 Author Share Posted April 29, 2014 @shadmar : Here is a Deled quick lightmap level for you. The file contains MDL and textures + lightmap for all level. It is possible to have some shader working with LE3 lights also : Diffuse+Normal map + specular + Ligtmap ? The lightmap could have other purposes : - Combined with LE3 litghs : no use of LE3 shadows, so lot of GPU gained - Paint the lightmap to make custom variations of textures, colors, shadows on level surface for example to simply break the tileable aspect of wall textures by painting some areas on lightmap. litghmaps.zip Quote Stop toying and make games Link to comment Share on other sites More sharing options...
shadmar Posted April 29, 2014 Share Posted April 29, 2014 UV channel 2 is empty. Usually lightmaps goes into second uv channel or will be just plain bake which will make your textures not reusable/tileable. b3d exporter seems to support lightmaps via 2nd UV channel. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
YouGroove Posted April 29, 2014 Author Share Posted April 29, 2014 B3D format. I don't know how to export to FBX or MDL from that B3D. Anyway possible lightmapping would allow fast rendered levels with any number of lights , and using dynamic lights only on some areas activated when camera near enought, with lot of lights frame rate should jump up of 90%. b3d.zip Quote Stop toying and make games Link to comment Share on other sites More sharing options...
shadmar Posted April 30, 2014 Share Posted April 30, 2014 That one works just fine. No lights in the scene. They also respond to deferrred lighting if you turn a flashlight or something on. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
YouGroove Posted April 30, 2014 Author Share Posted April 30, 2014 Great work shadmar Now it's possible in LE3 to have thousands of building/street lights + dynamic lights when camera near. Another use: paint dirt or colors on the lightmap to make walls tileable textures variations or paint decals on walls Does this works with normal map or specular shaders ? i mean for the tileable wall texture, or deos lightmap works only with diffuse shader ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
shadmar Posted April 30, 2014 Share Posted April 30, 2014 Normalmaps would look odd I'd guess, there no lightdirection information. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
YouGroove Posted April 30, 2014 Author Share Posted April 30, 2014 So we will have to use diffuse shader only with lightmaps, can be good using fake normal maps, i mean texture looking normal mapped but it's a simple diffuse (clever used in Uncharted 2 game) . For the second use of lightmap, to paint on lightmap dirt, color variation , decals , anything to break tileable look of tileable textures of level. If we could have the diffuse+normal+specular shader working as it is now in 3.1 + lightmap , this is where lightmaps could be used. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
SlipperyBrick Posted May 2, 2014 Share Posted May 2, 2014 Cool stuff guys! How would you 'fake' a normal map YouGroove? Quote Link to comment Share on other sites More sharing options...
YouGroove Posted May 2, 2014 Author Share Posted May 2, 2014 You bake normal map, than tranform colors to levels of grey, than apply layer diffuse texture in colorize mode to not alter grey map. This way you have diffuse texture with normal map volume height baked into it. 1 Quote Stop toying and make games Link to comment Share on other sites More sharing options...
SlipperyBrick Posted May 2, 2014 Share Posted May 2, 2014 Can you do a tutorial of this? Can this also be done in 3D - Coat? Quote Link to comment Share on other sites More sharing options...
YouGroove Posted May 6, 2014 Author Share Posted May 6, 2014 You just convert normal map to grey and white colors (there is in Gimp colors options), than just add a "colorize" layer with the diffuse texture (seek on google for more info). -------------------- I really hope LE3 once enought complete , in the future to make some global illumination system or similar technique as new key feature ( could it be LE3.2 or any other version ) 1 Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted May 10, 2014 Author Share Posted May 10, 2014 Making lights LOD , frame rate was too slow, i found i forgot to put LOD on undergrount part. I understand now why frame rate was still to low, these lights/shadows are always active. Using lot of lights will never be as fat as lightmapping, and heavy shader/shadow consuming, so super slow frame rate. Even putting Lights distance activation, having one , two or some more lights active only at same time, the frame rate remains slow from 30 to 50 FPS on laptop in run mode.No way to make good optimisation in our user side. What will be needed : 1) New faster lightening system - Lightmapping mixed with real lights activation when camera is near - Global illumination approximative system 2) Visibility fine tunning : - Lights activated per sector : when player is within one or more rectangle volumes activate lights - Lights shadows activated only when camera at some range (no need shadows when camera is far) - Shadows per character/model activated only at some range from camera 3) Lights per shader tuning : - Specially for characters ability to specify a maximum number of nearest lights that can be used to compute lightening Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Christian Clavet Posted May 11, 2014 Share Posted May 11, 2014 Hi, YouGroove. I'm not totally sure the lightning system would need much optimization, for me its performance is decent. Can you test again by putting all shadow off? I think it's the shadow rendering that eat the more ms per frame. For the lightmapping, if we can do it externally (meshes + brushes), and bring it back (using a material shader), would be fine. For lighting, would be nice if we could have shaders that use "spherical harmonics" and that we could render "samplers"(like an environment cube map) to light the models. I don't know much how this work, but seen results and it's seem to really mimic global illumination. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted May 11, 2014 Author Share Posted May 11, 2014 I'm not totally sure the lightning system would need much optimization, for me its performance is decent When you'll begin a real game in LE3 not demos, begin the level , put lights, texture and shaders you'll see how it goes. I have only mother board intel card these days , i run Witcher 2 with bigger resolution lot more detailled characters etc ... we can't expect one person engine to be like 5 , 15 or more teams engines i agree. LE3 FPS demo , putting some lights without shadows, other static, only 3 in entire level cast dynamic shadows in that same PC i have 30 FPS maximum, average 20 FPS, and go down to 10 FPS in some cases (settings : anti alias * 2, quality lightening medium, anisotropy * 1, trilinear disabled) In that PC i would expect 30 FPS solid all the time with aliasing * 4, hight lightening quality , in 1280*1024 minimum res for such demo. Testing, i have same and better frame rate runing some Unity complex game level using alternative plugins Bloom, DOF , motion blurr for the free version, these plugin takes a really bunch of GPU as this is not render to texture. Why LE3 frame rate is not better ? Can you test again by putting all shadow off? I think it's the shadow rendering that eat the more ms per frame. I'll make a test. But if If we get rid of majority of shadows and lights, the level won't look so good, so LE3 would loose all it's graphics interest. Performance won't go up adding vegetation, water, full screen effects. If you need a super recent PC to run LE3 game , that's more a tech demo, in that case better buy a recent AAA game instead of indie slow one. For the lightmapping, if we can do it externally (meshes + brushes), and bring it back (using a material shader), would be fine. Shadmar made some diffuse only shader with LE3.1, if diff/norm/spec shader could be extended to lightmap that would be great. Other stuff that could help LE3 and really really missing : -Lights per shader tuning : specify a maximum number of nearest lights used to compute lightening -Shaders LOD , on distant objects this is diffuse/specular only or diffuse only shader. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
shadmar Posted May 11, 2014 Share Posted May 11, 2014 Ok kinda stupid test but with shadowmode(0) : Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
YouGroove Posted May 11, 2014 Author Share Posted May 11, 2014 Oh com'on shadmar ... i could show you TressFX demo scene with great FPS and very poor frame rate when used in a real game situation. Ok kinda stupid test What we have a blue cube and lights, this is far from representing performance in real game situation. Your test and can't represent what is going on on real game situation as you have : - one entity model only - texture shader is diffuse only that makes a big difference also - one material only Quote Stop toying and make games 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.