0

I don't even know where to begin with this one, but I'm wanting to create a couple graphic controls that at least appear to be in 3D (not stereoscopic but as in not a 2D flat image) and can rotate and move back and forth on an illusional Z axis. Any links and information on this topic is useful.

I know how to create a fake Z-Axis with controls on a form. The problem is creating beveled sides and imaging blah blah blah.

// Simple pseudocode for fake z-axis:
if (movingaway)
thiscontrol.size--;

else if (movingcloser)
thiscontrol.size++;

That's all in camera view and is the basics of a z-axis.

Thanks,
Jamie

2
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by ddanbe
Featured Replies
  • 1
    ddanbe 2,525   5 Years Ago

    Have you read this? [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.point3d.pointf(v=vs.110).aspx[/url] Also CodeProject seems to have a lot of articles on your subject. Read More

0

I've come up with a sort of simple solution for the placement on Z-Axis illusion. Just working on angles, bevels, shadows, and glows now.

public class 3DCoordinates
{
	public int X {get; private set;}
	public int Y {get; private set;}
	public int Z {get; private set;}

	public 3DCoordinates(int X, int Y, int Z)
	{
		this.X = X;
		this.Y = Y;
		this.Z = Z;
	}
}

public class 3DControlEffects
{
	public static void PlaceControl(3DCoordinates Coordinates, Control YourControl)
	{
		YourControl.Location = new Point(Coordinates.X, Coordinates.Y);
		YourControl.Size = new Size((YourControl.Width - Coordinates.Z), (YourControl.Height - Coordinates.Z));
	}
}

Edited by lxXTaCoXxl: n/a

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.