WorldViz User Forum  

Go Back   WorldViz User Forum > Plug-in development

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-10-2004, 04:33 AM
joopnoot joopnoot is offline
Member
 
Join Date: Feb 2004
Posts: 2
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
Reply With Quote
  #2  
Old 02-10-2004, 10:51 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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!
Reply With Quote
  #3  
Old 11-01-2005, 10:07 PM
Vbents Vbents is offline
Member
 
Join Date: Sep 2005
Posts: 25
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
Reply With Quote
  #4  
Old 11-02-2005, 09:35 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:26 AM.


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