Title: Message

Hi,
        This is not actually a Java3d question. Hope you can help me with this.
I am using Visualization Toolkit(VTK ref:www.vtk.org) for my 3d programming which comes with a java binding.  My application works well on Windows,Solaris and Linux. But on HP UX I am facing lots of flickering while rendering the 3d scene.

Similar to Java 3d's Canvas3D there is an equivalent class called vtkCanvas which can be used for rendering 3d scenes. How vtk manages this is as follows.

1. vtkRenderWindow is the c++ class that draws the 3d scene.
2. using JNI, the vtkRenderWindow is fixed on to java.awt.Canvas. Following is the relevent C++ code

  vtkRenderWindow *temp0;
  //.....get the vtkRenderWindow object i.e. temp0

  JAWT_X11DrawingSurfaceInfo* dsi_x11;
  dsi_x11 = (JAWT_X11DrawingSurfaceInfo*)dsi->platformInfo;  //dsi is the JAWT_DrawingSurfaceInfo* pointer of the Canvas
  temp0->SetDisplayId((void *)dsi_x11->display);
  temp0->SetWindowId((void *)dsi_x11->drawable);
  temp0->SetParentId((void *)dsi_x11->display);

With this default settings, I get lots of flickering. But if I change the code to

  temp0->SetDisplayId((void *)dsi_x11->display);
  //temp0->SetWindowId((void *)dsi_x11->drawable);
  temp0->SetParentId((void *)dsi_x11->drawable);

the flickering goes off but I get wierd repainting problems (This problem exists only on HP UX). So my question is, has SUN released the C++ code where Canvas3D is mapped to the native OpenGL window? or does any body knows what exactly is going wrong in the above code? I have attached the complete C++ code used in JNI mapping. Can some body please help me with this.

Thanks and Regards

Shyam

 

=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Attachment: vtkJavaAwt.h
Description: Binary data

Reply via email to