4 Replies - 4114 Views - Last Post: 25 August 2012 - 03:16 PM Rate Topic: -----

#1 CrazE Prophecy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-January 12

Requested GraphicsMode not available.

Posted 17 August 2012 - 12:59 PM

I keep having trouble with creating a game window using OpenTK. I believe that I have the initial setup correct. But when I try to run the program I keep getting an error that says "Requested GraphicsMode not available".

Im not quite sure what this means.
"The application was terminated by a signal: SIGHUP"

Information about what kind of system I am using
I am using Ubuntu 12.10.
My IDE is MonoDevelop.

Here is my code...

using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections.Generic;
using System.Configuration;
using OpenTK;
using OpenTK.Audio;
using OpenTK.Compatibility;
using OpenTK.Compatibility.Properties;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using OpenTK.Input;
using OpenTK.Math;
using OpenTK.Platform.X11;
using OpenTK.Properties;


namespace Test
{
	public class Game : GameWindow
	{

		public Game() : base(480,480)
		{
			
		}

		public Game (int width, int height, string title) : base(width,height,new GraphicsMode(),title)
		{

		}

		protected override void onload (EventArgs e)
		{
			base.onload (e);
		}

		protected override void OnUpdateFrame (FrameEventArgs e)
		{
			base.OnUpdateFrame (e);
		}

		protected override void OnRenderFrame (FrameEventArgs e)
		{
			base.OnRenderFrame (e);
		}

		protected override void onunload (EventArgs e)
		{
			base.onunload (e);
		}


	}

	public class MainGame{
		public static void Main ()
		{
			using(Game game = new Game()){
                            game.Run();
                        }
		}
	}

}



Is This A Good Question/Topic? 0
  • +

Replies To: Requested GraphicsMode not available.

#2 Mina-no-Hime  Icon User is offline

  • D.I.C Head

Reputation: 98
  • View blog
  • Posts: 176
  • Joined: 23-August 12

Re: Requested GraphicsMode not available.

Posted 23 August 2012 - 06:02 PM

I don't use Linux machines, so I can't guarantee the accuracy of this. Most of what I've spotted across Google seems to be pointing at something on the OS side of things, rather than on your code - most likely, an issue with your video driver on the Linux machine. Are you able to run any other 3D applications on this machine?
Was This Post Helpful? 0
  • +
  • -

#3 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 1010
  • View blog
  • Posts: 4,214
  • Joined: 14-February 08

Re: Requested GraphicsMode not available.

Posted 24 August 2012 - 01:16 AM

Which version of OpenTK are you using?
Was This Post Helpful? 0
  • +
  • -

#4 CrazE Prophecy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-January 12

Re: Requested GraphicsMode not available.

Posted 24 August 2012 - 11:46 PM

View Poststayscrisp, on 24 August 2012 - 01:16 AM, said:

Which version of OpenTK are you using?


I am using OpenTK 1.0.

@Mina-no-Hime
Im not sure. But I will give it a shot. I have Intel 3000 graphics chip on my computer. I will see if it supports OpenGL.
Was This Post Helpful? 0
  • +
  • -

#5 Mina-no-Hime  Icon User is offline

  • D.I.C Head

Reputation: 98
  • View blog
  • Posts: 176
  • Joined: 23-August 12

Re: Requested GraphicsMode not available.

Posted 25 August 2012 - 03:16 PM

The card itself probably does, but you may not have appropriate Linux drivers installed. I recommend trying a free OpenGL game out on your Linux machine, see if you're able to run it properly as a test.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1