Spinny dude error

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Doc_EDo

LEFT
Jan 10, 2002
755
0
0
When i use this in my custom GUIpage
Code:
function bool InternalDraw(Canvas canvas)
{
	local vector CamPos, X, Y, Z;
	local rotator CamRot;

	if(bRenderDude)
	{
		canvas.GetCameraLocation(CamPos, CamRot);
		GetAxes(CamRot, X, Y, Z);

		SpinnyDude.SetLocation(CamPos + (SpinnyDudeOffset.X * X)
				 + (SpinnyDudeOffset.Y * Y) + (SpinnyDudeOffset.Z * Z));

		canvas.DrawActor(SpinnyDude, false, true, 90.0);
	}

	return false;
}
and that's epics code, I get double characters drawn?? Why? :eek:
 

Attachments

  • spinndude.jpg
    spinndude.jpg
    6.1 KB · Views: 31
Last edited by a moderator:

Doc_EDo

LEFT
Jan 10, 2002
755
0
0
Well if you draw it like this
Code:
canvas.DrawActor(SpinnyDude, false, true, 90.0);
you specify the fov (90.0).
So if the current fov is 85 you'll see the double dude, since he's being drawn by the engine before the GUI is drawn.
Making sure same fov is used the other completely overlaps the first, so you dont see the first being drawn (you cant stop it from being drawn by the engine).
So just use this instead
Code:
canvas.DrawActor(SpinnyDude, false, true);
to solve the problem (you dont specify the fov, you let the engine figure it out).