General :: RS232c And OpenGL In Same Program

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


ADVERTISEMENT

General :: OpenGL Program Not Work With X Forwarding?

Oct 7, 2010

I have an OpenGL program in a Linux server. I want to run the program remotely with X forwarding, but it fails, whereas programs such as xclock and xeyes work fine. (I confirmed that the program works in the local desktop environment.) Below is additional information.

Test Code:
#include <GL/glut.h>
#define WIDTH 300
#define HEIGHT 300
void display()

[Code]...

View 1 Replies View Related

Ubuntu Multimedia :: Slight Stuttering In OpenGL Program If Using Compiz

Nov 15, 2010

I'm using currently ubuntu 10.10. Having a nvidia gt220 with the proprietary drivers. I used compiz for a while. It works quite well, with vsync on and so on. But one thing bothers me all the time: In any opengl program (like a game or the unigen benchmarks) or on video playback (no matter if its the default video player, xbmc or what ever) I see some kind of stutter. About every second or so it jumps one frame forward and then two back. Till the next second it plays fluid.

To be able to observe this easily you need a video (or a opengl scene) where the whole screen scrolls in a medium speed but smooth. Than you can observ how it "jumps" every second. If the scrolling is too slow you wont observe it. Now, if I turn composite off this disapears. All play fluid. Ofcourse I get tearing as long as I do not also disable the composite extension in the xorg.conf, but this is another story. Is there a possibility to fix this stuttering with compiz active? Cause I use this pc to watch movies quite often so this would render compiz unusable.

View 3 Replies View Related

Fedora :: Wine/opengl/32 To 64 Bit - Cannot Load OpenGL When Try To Start WoW

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

General :: OpenGL Benchmark (nothing Seemed To Run At All)?

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

General :: Access Serialport (RS232) Data Using OpenGL?

Apr 27, 2010

how to access serialport(RS232) data using OpenGL.Heard about SDL(Simple DirectMedia Layer),but didn't get how to use SDL and OpenGL to access RS232 data.

View 8 Replies View Related

General :: NVIDIA Vs ATI Vs Intel Video Card Drivers - OpenGL?

Nov 6, 2010

How is OpenGL support (specifically OpenGL 3.x) in the different video card drivers available for Linux?Assuming that the hardware supported it well, would the drivers be an issue?

View 1 Replies View Related

General :: Make A Script To Open A Program Then Operate Within That Program?

May 7, 2010

I am new to linux and am trying out script writing. I am using shell. How can I make a script to open a program then operate within that program?

View 5 Replies View Related

General :: Connect A Jsp Program With A Java Program?

Apr 30, 2010

I have a jsp code. After executing that code, a Java program should be executed without refreshing the page. that is, my first page is a login page which is in jsp. After logging in the next page must be displayed which is a Java code. is that possible? Can we use applet for that?

View 1 Replies View Related

General :: Create A Program File For A New Program?

Mar 8, 2011

How do I create a program file for a new program?

View 1 Replies View Related

Server :: Use OpenGL Without X?

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

Debian Multimedia :: OpenGL Over Vnc

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

Ubuntu :: Get OpenGL Running On 10.04 (64 Bit)?

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

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 View Related

Red Hat / Fedora :: Install OpenGL ?

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

Debian Programming :: Cannot Get OpenGL Version

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

Fedora :: Checking If OpenGL Is Working?

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

OpenSUSE :: Cannot Access OpenGL For Compiz

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

Ubuntu :: Opengl Rendering Is Not Continuous?

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

Ubuntu Multimedia :: No OpenGL After 10.04 Upgrade?

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

Ubuntu :: OpenGL Apps Don't Work?

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

Ubuntu :: Unable To Open OpenGL

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

Ubuntu :: CMake Can't Find OpenGL?

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

Ubuntu :: OpenGL Is Not Working On Installation?

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

Ubuntu :: X11 And OpenGL - Keep Getting Resolution Error

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

Ubuntu :: OpenGL Causes High Cpu Usage

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

Ubuntu :: 10.04 GMA X3100 Drivers For Opengl

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

Ubuntu :: Finding OpenGL For A 64 Bit Installation?

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

Fedora :: Enabling OpenGl In 14 - Failed ?

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

Software :: Hardware Acceleration Using OpenGL And X11?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved