Remove three.js rendering system in favour of RCCService
This commit is contained in:
parent
bbf1851477
commit
1831ba6b19
|
|
@ -14,8 +14,8 @@ local ScriptContext = game:GetService "ScriptContext"
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
ContentProvider:SetBaseUrl(baseUrl)
|
ContentProvider:SetBaseUrl(baseUrl)
|
||||||
InsertService:SetAssetUrl(baseUrl .. "/Asset/?id=%d")
|
InsertService:SetAssetUrl(baseUrl .. "/asset?id=%d")
|
||||||
InsertService:SetAssetVersionUrl(baseUrl .. "/Asset/?assetversionid=%d")
|
InsertService:SetAssetVersionUrl(baseUrl .. "/asset?assetversionid=%d")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
HttpService.HttpEnabled = true
|
HttpService.HttpEnabled = true
|
||||||
|
|
@ -35,14 +35,14 @@ game:HttpPost(
|
||||||
.. thumbnailKey
|
.. thumbnailKey
|
||||||
.. "&taskID="
|
.. "&taskID="
|
||||||
.. game.JobId,
|
.. game.JobId,
|
||||||
'{"Status": 1}',
|
'{"Status": "Rendering"}',
|
||||||
true,
|
true,
|
||||||
"text/json"
|
"text/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
local player = game:GetService("Players"):CreateLocalPlayer(0)
|
local player = game:GetService("Players"):CreateLocalPlayer(0)
|
||||||
player.CharacterAppearance = baseUrl
|
player.CharacterAppearance = baseUrl
|
||||||
.. "/Asset/CharacterFetch?userID="
|
.. "/asset/characterfetch?userID="
|
||||||
.. assetId
|
.. assetId
|
||||||
player:LoadCharacter(false)
|
player:LoadCharacter(false)
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ end
|
||||||
|
|
||||||
local click = ThumbnailGenerator:Click("PNG", 420, 420, true)
|
local click = ThumbnailGenerator:Click("PNG", 420, 420, true)
|
||||||
|
|
||||||
local result = '{"Status": 2, "Click": "' .. tostring(click) .. '"}'
|
local result = '{"Status": "Completed", "Click": "' .. tostring(click) .. '"}'
|
||||||
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ local ScriptContext = game:GetService "ScriptContext"
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
ContentProvider:SetBaseUrl(baseUrl)
|
ContentProvider:SetBaseUrl(baseUrl)
|
||||||
InsertService:SetAssetUrl(baseUrl .. "/Asset/?id=%d")
|
InsertService:SetAssetUrl(baseUrl .. "/asset/assetfetch?id=%d")
|
||||||
InsertService:SetAssetVersionUrl(baseUrl .. "/Asset/?assetversionid=%d")
|
InsertService:SetAssetVersionUrl(baseUrl .. "/asset/assetfetch?assetversionid=%d")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
HttpService.HttpEnabled = true
|
HttpService.HttpEnabled = true
|
||||||
|
|
@ -36,7 +36,7 @@ game:HttpPost(
|
||||||
.. thumbnailKey
|
.. thumbnailKey
|
||||||
.. "&taskID="
|
.. "&taskID="
|
||||||
.. game.JobId,
|
.. game.JobId,
|
||||||
'{"Status": 1}',
|
'{"Status": "Rendering"}',
|
||||||
true,
|
true,
|
||||||
"text/json"
|
"text/json"
|
||||||
)
|
)
|
||||||
|
|
@ -56,7 +56,7 @@ end
|
||||||
|
|
||||||
local click = ThumbnailGenerator:Click("PNG", 420, 420, true)
|
local click = ThumbnailGenerator:Click("PNG", 420, 420, true)
|
||||||
|
|
||||||
local result = '{"Status": 2, "Click": "' .. tostring(click) .. '"}'
|
local result = '{"Status": "Completed", "Click": "' .. tostring(click) .. '"}'
|
||||||
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue