So right now my cam3d2d text I have spinning. But whenever it makes a 180 turn that back part is invisible. Example of what I'm tlaking about below.
I just want to know how to have the text show up on both sides. I tried adding another cam3d2d and just rotating it 180 degrees, but when I spin it it doesn't
sync spin with the other text
Code:
[CODE]
hook.Add("PostDrawOpaqueRenderables", "WD_Face", function()
for _, ent in pairs (ents.FindByClass("wardrobe")) do
if ent:GetPos():Distance(LocalPlayer():GetPos()) < 500 then
local time = 7
local timeDelta = (CurTime() % time) / time
local spin = timeDelta * 360
local ang = ent:GetAngles()
ang:RotateAroundAxis( ang:Forward(), 90)
ang:RotateAroundAxis( ang:Right(), spin)
cam.Start3D2D(ent:GetPos() + ent:GetForward() * 0 + ent:GetUp() * 55, ang, .1)
draw.DrawText( "Wardrobe", "WDFont", 0, 0, Color(0,100,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
cam.End3D2D()
end
end
end)
[/CODE]
[video]https://youtu.be/47WbJ_4ygvc[/video]
You have to make another cam thats spinning opposite of the one you already have
Call it twice but for first case just change cullmode and revert it back
[QUOTE=Zer0nix;52637856]You have to make another cam thats spinning opposite of the one you already have[/QUOTE]
Perfect, thanks so much
[QUOTE=Zer0nix;52637856]You have to make another cam thats spinning opposite of the one you already have[/QUOTE]
Well, you can do that or draw the same text again with a difference of 180 degrees from the first one
Sorry, you need to Log In to post a reply to this thread.