From: Stef M. <s.m...@ru...> - 2009-01-16 09:18:57
|
hi Che ? CL wrote: > Hi Shef > > Since I only have one PC, I am not sure if my sample programs working > well or not on other hardware. Are you able to run my sample programs > on your side (or it also crashes) ? Anyone else can report the result > if you have tried it ? > aha, so you didn't try hard enough ;-) > About the crashes, can you show a bit more about the python code to do > SetWindowPos / MoveWindow ? Technically speaking, I can see no reason > why using these API will cause a crash in general. > > Looks something like VPython 5 is using absolute mouse coordinates instead of translating them to the position in the parent. > I tried SetWindowPos but it looks like it has no effect after the > scene window is created, so I change it to MoveWindow. It works very > well on my PC. > Now try this: - start the program - move the window more to the top of your screen - click and drag, from a bottom position in the VPython window, downwards in such a way that you virtual (you can't see the cursor) will leave the window, and I expect you get the following error: VPython ***CRITICAL ERROR***: ..\src\core\display_kernel.cpp:535: cvisual::display_kernel::world_to_view_transform: VPython degenerate projection: 1.#INF 1.#INF 0.57735 0.494872 cheers, Stef Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629. The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629. |