WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Plug-in development (https://forum.worldviz.com/forumdisplay.php?f=8)
-   -   Communicating with openGL (https://forum.worldviz.com/showthread.php?t=118)

joopnoot 02-10-2004 04:33 AM

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

farshizzo 02-10-2004 10: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 . 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)
Let me know if you need any more help. Good luck!

Vbents 11-01-2005 10:07 PM

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

farshizzo 11-02-2005 09: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/showth...=&threadid=370


All times are GMT -7. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC