I’m trying to render objects that are very very very very (1.5x10^15) far away. I can adjust clipping planes on the camera to render this far away but the objects are so far away that they don’t even render on the screen regardless. Is there any way to render objects this far away as a minimum of 1 pixel or even 5?
You could hard code this feature in with something like…
public float FarRender = 10000; //Minimum distance to far render
void OnGUI()
{
if (Vector3.sqrMagnitude(transform.position, Camera.main.transform.position) < 10000 * 10000)
{
Vector2 ScreenPos = Camera.main.WorldToScreenPoint(transform.position);
if (new Rect (1,1, Screen.Width - 2, Screen.Height - 2).Contains(ScreenPos))
{
GUI.DrawTexture(new Rect(ScreenPos.x, ScreenPos.y, 5,5), *Your 'far texture' for the object*);
}
}
}