danni.coy Posted August 1, 2011 Share Posted August 1, 2011 Currently we have very large material libraries and our large levels can take over a minute to load.We want to know if the following is possible.Artist A is working on a LevelArtist B has just made a new version of component.mesh and sends this to Artist A.Artist A copies the new file over the old one.Is there any way that the artist can get component.mesh to display the latest version of the file without restarting the world? Link to comment
ulf.schroeter Posted August 1, 2011 Share Posted August 1, 2011 In editor mode at least texture resources will be automatically reloaded on file system change. Not sure about mesh resources. Nevertheless you could try console command "render_manager_reload mesh" to reload meshes only. Maybe this is faster than complete world reload. Link to comment
ulf.schroeter Posted August 2, 2011 Share Posted August 2, 2011 You are welcome. BTW there is also an "render_manager_reload texture" for selective reload of textures only while "render_manager_reload" reloads both textures and meshes. Link to comment
danni.coy Posted August 2, 2011 Author Share Posted August 2, 2011 You are welcome. BTW there is also an "render_manager_reload texture" for selective reload of textures only while "render_manager_reload" reloads both textures and meshes. Thankyou.. I have added an icon to the node editor for our artists to do this (I added shift+click to load both textures and meshes) Link to comment
ulf.schroeter Posted August 5, 2011 Share Posted August 5, 2011 In editor mode at least texture resources will be automatically reloaded on file system change. Not sure about mesh resources. Hi Danny, just stumbled over the source code in engine/render/RenderManager.cpp: Only textures will be automatically reloaded on file system change. Nevertheless it would be very easy to copy texture update code (line 565+) and add it to RenderResourceMesh update function (line 305+) for individual mesh file reloading in editor mode. Link to comment
ulf.schroeter Posted August 18, 2013 Share Posted August 18, 2013 UNIGINE-SDK 2013-08-16..... All engine resource managers will check file modification time for resource creating when the editor is loaded. Thus there will be no problems with loading outdated meshes if they were changed after the start of the engine. Automatic mesh reloading finally included in the regular SDk Link to comment
demostenes Posted August 19, 2013 Share Posted August 19, 2013 Automatic mesh reloading finally included in the regular SDk Great, finally. Link to comment
Recommended Posts