View Single Post
  #2  
Old 06-27-2012, 01:52 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I haven't embedded Vizard into a WPF application before, so I'm not too familiar with the subject. Can you verify that Vizard is receiving any Windows message? For example, if you resize the vizard window from within the WPF app, do you receive a viz.WINDOW_SIZE_EVENT or does Vizard adjust projection matrix automatically.

Also, I would suggest making a small change to your Vizard script. Your embedded update loop will never exit, since you are looping over True. Try the following instead:
Code:
while not viz.done():
    viz.frame()
This will allow the script to properly exit when viz.quit() is called or the window is destroyed.
Reply With Quote