#1
|
|||
|
|||
Communicating with openGL
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 |
#2
|
|||
|
|||
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 . 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: Code:
custom = viz.add('customnode.dlc',0,'',0,0,0,0,viz.SCREEN) |
#3
|
|||
|
|||
more complex openGL problem
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 |
#4
|
|||
|
|||
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/showth...=&threadid=370 |
|
|