Skip to content
Snippets Groups Projects
Commit f9cac45c authored by Ben Heasly's avatar Ben Heasly
Browse files

load scenes from mexximp mat files

parent b141e8bb
No related branches found
No related tags found
No related merge requests found
......@@ -126,12 +126,19 @@ classdef RtbAssimpStrategy < RtbBatchRenderStrategy
end
% look carefully for the file
scenePath = fileparts(sceneFile);
[scenePath, ~, sceneExt] = fileparts(sceneFile);
if isempty(scenePath)
fileInfo = rtbResolveFilePath(sceneFile, rtbWorkingFolder('hints', obj.hints));
sceneFile = fileInfo.absolutePath;
end
scene = mexximpCleanImport(sceneFile, obj.importArgs{:});
if strcmp('.mat', sceneExt)
% reload pre-imported scene
scene = mexximpLoad(sceneFile);
else
% import anew
scene = mexximpCleanImport(sceneFile, obj.importArgs{:});
end
end
function scene = remodelOnceBeforeAll(obj, scene)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment