Jump to content

[SOLVED] Replacing mesh without restarting world


photo

Recommended Posts

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 Level
Artist 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

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

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

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

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
  • 2 years later...
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
×
×
  • Create New...