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.