razor Posted yesterday at 03:23 PM Posted yesterday at 03:23 PM Wireframe as expected: splashtile = CreateTile(world, 640, 480, true) Shouldn't this tile be transparent? It's transparent for text. splashtile = CreateTile(world, 640, 480, false) This has no influence on transparency set to 50%: splashtile = CreateTile(world, 640, 480, false) splashtile:SetColor(1, 1, 1, 0.5) --Get the displays local displays = GetDisplays() -- Create a window local window = CreateWindow("Lost", 0, 0, 1280, 720, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR) -- Create a world local world = CreateWorld() -- Create a framebuffer local framebuffer = CreateFramebuffer(window) -- Create a camera local camera = CreateCamera(world) camera:SetClearColor(0.125) camera:SetPosition(0, 0, -4) -- Create a light local light = CreateBoxLight(world) light:SetRotation(45, 35, 0) light:SetRange(-10, 10) light:SetColor(2) -- Create a model local model = CreateBox(world) model:SetColor(0, 0, 1) splashtile = CreateTile(world,640,480,false) splashtile:SetColor(1,1,1,0.5) -- Main loop while not window:Closed() do model:Turn(0, 1, 0) world:Update() world:Render(framebuffer, true) end Quote
Solution Josh Posted yesterday at 04:11 PM Solution Posted yesterday at 04:11 PM splashtile = CreateTile(world,640,480,false) splashtile:SetColor(1,1,1,0.5) local mtl = CreateMaterial() mtl:SetTransparent(true) splashtile:SetMaterial(mtl) Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.