Programming :: GTK DrawArea - Possible To Use OpenGL?
May 30, 2010
I am writing a program that needs to display graphs. Right now I am using Cairo which works well except it is really slow. Drawing 1200 lines locks up my computer (i7 CPU and gtx285 graphics card). I only found examples to use Cairo with GTK DrawingArea can I use OpenGL instead or is there a way to cairo to run faster?
View 1 Replies
ADVERTISEMENT
Aug 27, 2010
I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.
So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?
Why and what is the main difference between them?
View 4 Replies
View Related
Oct 19, 2009
I just upgraded from FC8 (32-bit) to FC11 (64-bit). In doing so, I backed up my entire World of Warcraft folder so I could try to avoid having to download and install it all over again. However, I've now reinstalled wine (64-bit now), and the nvidia drivers from the rpmfusion repos (also 64-bit), and when I try to start WoW, it says it cannot load OpenGL. I'm wondering if anyone knows what's up, and if there's a solution that doesn't involve reinstalling WoW.
View 7 Replies
View Related
Feb 28, 2014
Running under Debian oldstable:
#include<stdio.h>
#include<stdlib.h>
#include <GL/glew.h>
#include <GL/glext.h>
#include <GL/glut.h>
void init(){
const GLubyte* version = glGetString(GL_VERSION); // line 2338
printf("version = %s
", version);
...
The gcc compiler gives me:
code.c: In function ‘init’:
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program
Do I need an additional header?
View 4 Replies
View Related
Jul 25, 2011
I'm looking for some sample C++ code that uses OpenGL on XCode 4.1 for OSX Lion. All I have found so far are GLUT and/or Objective-C samples. Has anyone come across something similar to what I'm after? I really just need something simple that allows me to open a window, or start in fullscreen.
View 1 Replies
View Related
Dec 6, 2008
I am starting to learn Linux graphical programming. Most of codes in my hands were written based on xlib, which is a kind of old graphic lib. I see some developers more interested in openGL. Then what's the difference between xlib and openGL? And which one is more popular used in which industry area?
View 2 Replies
View Related
Sep 1, 2010
I want to start progrmming in opengl. I am using Ubuntu. do I need just to install a GLUT package.if yes how to do it
View 5 Replies
View Related
Feb 11, 2011
I have made a game for Linux and want to release it soon (on linux & windows). Since its SDL/OpenGL and I dont do any special things it shouldn't be much porting to windows. Problem: Maintaining I have the game in code::blocks SDL project on Linux. So I got wine and installed wined Code::Blocks with MingW so I can cross compile on Linux. For another game I made, I used a Makefile which has "if" statements to set up compile variables. And everything else is totally identical to windows & linux (code, source files and etc...)
With codeblocks I got used to not having to worry about makefiles and it did well and I better focused on making the game rather than everytime a new file is added editing the makefile and etc... Is there some nice ways to have a cross platform environment to make it easy to make games for Linux and windows. I'm thinking of making my own system of auto-generating a makefile (essentially upgrading the setup I have for my previous game to auto add entry's to the makefile & some other stuff).
View 2 Replies
View Related
Feb 5, 2015
I have moved from MS directX to OpenGL on Linux Debian. My computer is running Jessie version with Gimp. I am trying to use several of the gl 4.0 functions but getting compiler error. I check for OpenGL version and appears to be version 1.5 .... How can I verify the correct openGL version and how can I upgrade to a moder version of at least 4.0?
View 4 Replies
View Related
Mar 15, 2010
I have verified using yum that I have the most uptodate glut, freeglut, freeglut-devel etc., yet when I compile Example 2-6 from the Red Book at http://www.glprogramming.com/red/chapter02.html#name16, I get a window that is too small for the program output, includes display from other windows, and will not redraw after being resized.
I get slightly better behavior with the SGI sample program mentioned in the same book, 'checkers.c'. Again, the initial size is too small, but at least it will resize and redraw the checkerboards entirely inside the resized window. What is going on here? Is this some bug in glut? I can't see anything obviously wrong in their glut initialization, which looks like:
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (350, 150);
[code]...
Then again, since I am such a newbie to glut, I am not sure I would recognize what, if anything, they did wrong. what ARE the valid and useful command line parameters I could have passed to the main() above?
View 12 Replies
View Related
Sep 3, 2010
I have an OpenGL app that generates images by rendering into an off-screen surface. I'd like to get it running on our Linux server, but the only way (that I know of) to initialize an OpenGL context is to create an X window and pass it to glX.
This is lame since I don't need any windows - just a render buffer. Is there any way I can get an OpenGL context on this server?
View 1 Replies
View Related
Jan 4, 2016
I have a tightvnc server running on my computer and have my IPAD using a vnc client to connect to it. Everything works fine except for apps that require openGL (eg: minetest,steam). I was wondering how I could use said apps over vnc.
View 11 Replies
View Related
Jun 1, 2011
I'm looking for an OpenGL benchmark tool for Linux. Something sort of similar to 3DMark on Windows. Is there anything at all? I tried Phoronix, was not impressed (nothing seemed to run at all).
View 1 Replies
View Related
Jun 30, 2011
New here so please go easy. I am trying to get OpenGL running on Ubuntu 10.04 (64 bit). The hardware is a Dell box with a NVidia Quadro 600 graphics card; I am also running under VMware.
I tried using "apt-get install nvidia-current", followed by "nvidia-xconfig", which told me a new xorg.conf file had been written. I then rebooted. A dialog appeared saying Ubuntu is running in low-graphics mode and that it had failed to load module "nvidia" and no drivers available.
As I didn't seem to get very far this way, I tried downloading the NVidia 64 bit linux driver version 275.09.07 and ran this from the console. Firstly it told me that I do not appear to have a NVidia GPU supported by this version of the driver (yet NVidia's description of the driver says it does support this gpu). I went ahead and let it try to build the kernel module but then it failed with the message "failed to load kernel module 'nvidia.ko" I'm not clear how to proceed on this one. Has anyone else got a Quadro 600 card to work? If so, how?
View 4 Replies
View Related
Feb 28, 2011
I'm trying to put the geant4 program on my computer and I need to install openGL first. I need the glut.h file and gl.h file in order to do this but I can't seem to find them anywhere online. I am using Fedora 14.
View 2 Replies
View Related
May 31, 2010
I'm trying to get a program to compile with OpenGL support and it's saying that the headers are missing. But I think (or thought!) that I already had Open GL up and running. My suspicion is that I need to install the appropriate -devel files...but I just can't seem to find them. Furthermore, I don't want to tweak my system and install proprietary Nvidia drivers if things are already working just fine.
I have a Geforce 8300 GS in a i586 32bit Dell Inspiron 530. I'm trying to compile Cinelarra and keep getting:
Quote:
OpenGL 2.0 libraries missing Hardware acceleration using OpenGL 2.0 is disabled
Does anyone know which driver (ie: 96xx? 173xx?) I should be using for this? Where are these libraries? How can I find them and tell Cinelarra where to look?
And even more basically: How do I tell if OpenGL is working or not? Maybe I don't have them afterall..
View 6 Replies
View Related
Feb 26, 2011
Code:
Failed to activate desktop effects using the given options. Settings will be reverted to their previous values.
Check your X configuaration.
You may also consider changing advanced options, especially changing the composting type. I cannot use OpenGL, hence my Compiz is useless.. I have ATI 5850s
View 3 Replies
View Related
Mar 27, 2010
I have openGL working fine on my system.The only problem is that when I try to run the executable file, nothing appears unless the full scene has been rendered.In fact, it appears in parts, i.e. updates after a second, then after another second etc...However, earlier, the rendering used to be continuous and I could see each pixel getting rendered in a continuous fashion.
View 3 Replies
View Related
May 1, 2010
I just upgraded to 10.04 on my Dell optiplex GX280 and now OpenGL isn't working (xbmc and cairo dock won't start). Here are the (i think) relevant lines from lspci:
[code]....
View 9 Replies
View Related
May 23, 2010
Whenever I try to start an OpenGL app in the terminal, I get a message to the point of "could not create GL context." It was working until around the last update. I know it's not a hardware problem because my windows partition works as well as ever.
I'm using Hardy Heron with the closed Nvidia driver with a Geforce 9800gt
'glxinfo | grep OpenGL' gives
Code:
Error: glXCreateContext failed
View 2 Replies
View Related
Sep 17, 2010
I'm trying to run a program called Alice 3.0. When I load the program, it crashes at the splash screen. I ran it in terminal, and this is the error message I received:
UNABLE TO LOAD OPENGL The most common reason for this is an incorrectly set Java library path. Please update your VM arguments. The text below has been copied to the clipboard for your convenience. Linux-i386
all properties
--- ----------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
[code]...
View 8 Replies
View Related
Oct 4, 2010
I'm trying to install Kicad from source but cmake gives me an error:"- Check for installed OpenGL -- not foundCMake Error at CMakeModules/CheckFindPackageResult.cmake:6 (message): OpenGL was not found - it is required to build Kicad "I have an Nvidia video card with the proprietary drivers installed.I also have glut, (glutg3) installed.I don't understand why cmake can't find OpenGL.
View 9 Replies
View Related
Oct 17, 2010
OpenGL is not working on my installation. I'm completely new to Linux and have been trying to get it to work for hours, but whatever I try, it just doesn't work. When I try to load java applets which use OpenGL, the applet crashes with this error:
Quote:
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0xb7895424, pid=3239, tid=1586695024
# JRE version: 6.0_22-b04
# Java VM: Java HotSpot(TM) Server VM (17.1-b03 mixed mode linux-x86 )
# Problematic frame:
[Code]...
View 9 Replies
View Related
Jan 14, 2011
I was trying to get a game to work (scorched 3d) but I kept getting a resolution error. So I did some looking around and found that I had to do something with xorg.conf in /usr/bin/x11 (if I remember). Well I didn't have that file, so I installed a program that had it (and for the life of me, I don't remember what it was). Long story short, I tried to run a different game (foobillard) and it wouldnt run. So I ran from terminal and got an error saying that x11 is not configured with opengl. Now I am mad cuz that was my favorite game. Is there a way to reset x11 and opengl without losing everything?
View 2 Replies
View Related
Apr 1, 2011
I play RuneScape most of the time i'm on the computer and i always keep an eye on the performance. Yesterday and the days before, everything was going good, cpu usage it was causing was between 30 and 60%, now it wont go below 70%. It's always 70-99% for some reason :s i have set settings for graphics to OpenGL (they were like that before too with no problem) and it started causing high cpu usage. If i set it to Safe Mode in graphics settings it gets 100%, I never tweaked the drivers, i have a NVIDIA GeForce 9600 GT, i have the opengl thingies installed along with my nvidia driver. Ubuntu 10.10 32bit.
View 1 Replies
View Related
May 14, 2011
I need a driver for 10.04 that supports OpenGL, cause in my games i'm unable to do anything with opengl, it just swaps me to d3d..
View 4 Replies
View Related
Jun 9, 2010
I'm trying to find a 64 bit version of OpenGL for Linux. I tried driver from Nvidia, but it turned out that it required a specific graphics card, (which either I don't have, or VMware has trouble noticing that I do. I have a laptop with some Nvidia, Geforce with Cuda card.
In any case, I just need to find 64bit OpenGL for Ubuntu 10.04. I keep finding 32 bit versions, or other versions that don't apply to me.
I'm still kind of new and it's possible that I haven't been looking the most effective places. I tried google and sourceforge, but I couldn't quite find it.
If anyone knows where I can get it, or knows of a better place to look, I would be very grateful.
P.S. I also tried the package manager and the OpenGL site.
View 1 Replies
View Related
Jan 9, 2011
Any one had any success enabling openGl in fedora 14? I tired and failed; as well, kmod seems to have disappeared and the resolution has dropped from 1920X1080 to 1280X1024, and stock there cannot be adjusted higher only can go down, as well the KRandRTray once clicked, ten to vanish.
View 5 Replies
View Related
Feb 10, 2010
I am trying to write a program that accepts user input from the keyboard and a joystick and then sends out the data using the rs232 port of my system to other hardware. I need to send out about 10 bytes every 20 milliseconds. The thing is I need to also keep on reading data from the same port and display it on an opengl screen. This visualizes the hardware data coming in.
So the way I did it was by spinning everything around opengl..I setup GLUT - as follows :
/* register call back functions */
glutDisplayFunc(redraw);
glutReshapeFunc(resize);
glutIdleFunc(visualize);
glutKeyboardFunc(getkey);
glutSpecialFunc(getspecialkey);
And in the idle function visualize(). I currently do the joystick reading and rs232 packet sending and recv stuff. I also call redraw after I am done so if I have received new data above, then it gets drawn on the screen. Everything works fine except that calling redraw() from visualize() is logical in a PC simulation where the simulation state needs to be rendered on screen after a simulation step. But in my case it takes up too much time, much greater than 20 ms. So I can no longer guarantee I can send out packets through the rs232 port every 20 ms. What are my options here if I want to send out packets and visualize data at a reasonable frame rate - packets within 20 ms is more imp of course.
View 10 Replies
View Related
Apr 23, 2011
Is there anyone who can explain how OpenGL acceleration works on Linux and its relationship with X11? I read about modules like GLX, DRI, DRM and Gallium and I understand they are necessary to provide performance as the current structure of X11 makes it difficult to render efficiently. Is this correct?
If I use the OpenGL and EGL drivers provided by the manufacturer of hardware on X11 without any other module, should I expect, even with hardware acceleration a high CPU load? The modules GLX, DRI, DRM etc... can be used with any OpenGL implementations or only with mesa?
View 7 Replies
View Related