We are experiencing a critical issue with exporting vehicle models as OBJ files out of Roblox Studio, which is blocking our rendering pipeline.
Issue Summary
OBJ export is failing for our vehicle models. This began approximately 2 weeks ago at a ~50% reproduction rate and has since escalated to 100% failure rate for multiple staff on our team.
Suspected Cause
We believe this may be related to the recent rollout of Emissive Masks:
Reproduction
We are happy to provide a sample .rbxl file to help reproduce the issue on your end. Please let us know if that would be helpful.
Repro steps:
Select the Model with EmissiveMaps under Workspace
Right click and Export as OBJ
Observe the long export and eventual crash
Thank you for your time — we look forward to hearing from you.
I have narrowed the problem down to specifically to any MeshPart with a child SurfaceAppearance that does not have ColorMap assigned. This will crash studio.
A workaround solution is fill the color maps with a full transparent image id. (ex: rbxassetid://9789474866)
Here is a command that accomplishes this:
-- Finds all SurfaceAppearance descendants under the selection and assigns a transparent ColorMap
-- Select the root Model and paste in Command Bar
local DEFAULT_COLOR_MAP = "rbxassetid://9789474866"
local fixed = 0
local skipped = 0
for _, instance in game.Selection:Get()[1]:GetDescendants() do
if instance:IsA("SurfaceAppearance") then
if instance.ColorMap == "" or instance.ColorMap == nil then
instance.ColorMap = DEFAULT_COLOR_MAP
fixed += 1
print(string.format("[Fixed] %s (parent: %s)", instance:GetFullName(), instance.Parent and instance.Parent.Name or "N/A"))
else
skipped += 1
end
end
end
print(string.format("\nDone! Fixed: %d | Already had ColorMap: %d", fixed, skipped))
I feel like I’ve also been having issues with obj export crashing consistently as well, I can sometimes export but studio will still crash a few seconds after.
Hi, this should be fixed now, at the small cost of emission maps not being exported. Thank you for this report, and please let us know if this is working or not.