PDA

View Full Version : Communicating with openGL


joopnoot
02-10-2004, 05:33 AM
I want to make a gui in openGL using the render engine of vizard.
Is this possible? Is there more information available?
Is it possible to implement the render plugin from vizard in a self made gui in openGL, so that my gui can communicate with the vizard engine?

Your Regards,

Joop Noot

farshizzo
02-10-2004, 11:51 AM
Hi,

To implement your own OpenGL code in Vizard you will want to use the Custom Node plugin. You need Visual Studio .NET to open and compile the project. You can download all the necessary files here (http://www.worldviz.com/download/files/CustomNode.zip) . The zip file contains all the necessary library files, example code, and documentation. Since you want the OpenGL code to act as a GUI you will need to add it to the screen once you have your Custom Node compiled:
custom = viz.add('customnode.dlc',0,'',0,0,0,0,viz.SCREEN)L et me know if you need any more help. Good luck!

Vbents
11-01-2005, 11:07 PM
For my graphics class, I would like to create a stand-alone openGL application which uses the ppt & intersense data as an input (i.e. x, y, z, yaw, pitch, and roll) and creates the stereo images for an HMD.

Is there any easy way for me to access this information directly? Or, alternatively, is there an easy way for me to use one computer running Vizard to stream the information to a second computer running my own program?

Thanks for your help,
Ben Trombley

farshizzo
11-02-2005, 10:35 AM
Hi,

It should be very easy to do this. Create a python socket and send the data over the network to your rendering computer. Your application can then use raw socket calls to receive the tracking data.

To get you started, take a look at the following thread. About half way down there is sample code for creating raw sockets in python to send/receive data.

http://www.worldviz.com/forum/showthread.php3?s=&threadid=370