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()
|
||||
ContentProvider:SetBaseUrl(baseUrl)
|
||||
InsertService:SetAssetUrl(baseUrl .. "/Asset/?id=%d")
|
||||
InsertService:SetAssetVersionUrl(baseUrl .. "/Asset/?assetversionid=%d")
|
||||
InsertService:SetAssetUrl(baseUrl .. "/asset?id=%d")
|
||||
InsertService:SetAssetVersionUrl(baseUrl .. "/asset?assetversionid=%d")
|
||||
end)
|
||||
|
||||
HttpService.HttpEnabled = true
|
||||
|
|
@ -35,14 +35,14 @@ game:HttpPost(
|
|||
.. thumbnailKey
|
||||
.. "&taskID="
|
||||
.. game.JobId,
|
||||
'{"Status": 1}',
|
||||
'{"Status": "Rendering"}',
|
||||
true,
|
||||
"text/json"
|
||||
)
|
||||
|
||||
local player = game:GetService("Players"):CreateLocalPlayer(0)
|
||||
player.CharacterAppearance = baseUrl
|
||||
.. "/Asset/CharacterFetch?userID="
|
||||
.. "/asset/characterfetch?userID="
|
||||
.. assetId
|
||||
player:LoadCharacter(false)
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ end
|
|||
|
||||
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...")
|
||||
|
||||
while true do
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ local ScriptContext = game:GetService "ScriptContext"
|
|||
|
||||
pcall(function()
|
||||
ContentProvider:SetBaseUrl(baseUrl)
|
||||
InsertService:SetAssetUrl(baseUrl .. "/Asset/?id=%d")
|
||||
InsertService:SetAssetVersionUrl(baseUrl .. "/Asset/?assetversionid=%d")
|
||||
InsertService:SetAssetUrl(baseUrl .. "/asset/assetfetch?id=%d")
|
||||
InsertService:SetAssetVersionUrl(baseUrl .. "/asset/assetfetch?assetversionid=%d")
|
||||
end)
|
||||
|
||||
HttpService.HttpEnabled = true
|
||||
|
|
@ -36,7 +36,7 @@ game:HttpPost(
|
|||
.. thumbnailKey
|
||||
.. "&taskID="
|
||||
.. game.JobId,
|
||||
'{"Status": 1}',
|
||||
'{"Status": "Rendering"}',
|
||||
true,
|
||||
"text/json"
|
||||
)
|
||||
|
|
@ -56,7 +56,7 @@ end
|
|||
|
||||
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...")
|
||||
|
||||
while true do
|
||||
|
|
|
|||
Loading…
Reference in New Issue