Is there a way we can load obj’s from the web? Let’s say I have a obj model on github. I was able to develop code that basically returns the array of how the obj vertices. But, I was wondering if there was any way to add this to roblox studio? This is how far i got.
local modelURL = “https://groups.csail.mit.edu/graphics/classes/6.837/F03/models/pumpkin_tall_10k.obj”
local function onResponse(success, response)
if success then
print(type(response))
local integerArray = {}
for str in response:gmatch("%d+") do
table.insert(integerArray, tonumber(str))
end
print("Converted integers:")
print(integerArray)
--print(type(response))
--print(response)
--print(table.map(function(str) return tonumber(str) end, response))
local model = game:GetService("InsertService"):LoadAsset((integerArray))
if model then
model.Parent = workspace
print("File loaded successfully.")
else
warn("Failed to load asset.")
end
else
warn("Failed to fetch file:", response)
end
end
response = game:GetService(“HttpService”):GetAsync(modelURL, false)
onResponse(true, response)
Idk if this even possible but…yeah.