WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-03-2004, 07:12 PM
vcarlson vcarlson is offline
Member
 
Join Date: Sep 2004
Posts: 1
Question PROBLEM: Picture-in-Picture breaks textures?!?

I am implementing a picture-in-picture view where the main view is what the user sees and a small windown in the corner shows an outside view of the user's avatar. The apprearence of the outside window is triggered by a keyboard callback like so:

Code:
def mykeyboard(button):
  global cheat, PinP # initialized as PinP = viz.add(viz.WINDOW)
  if button is ' ':       #space on keyboard toggles PinP window
    if cheat == 0:
      cheat = 1
      PinP.visible(viz.ON)
    else:
      cheat = 0
      PinP.visible(viz.OFF)
The script runs without a problem (the PinP window is invisible at the beginning) undil the spacebar is pressed when all the textures go crazy (smearing, no detail, rectangular surfaces break in to two triangular polys), but textures on avatar faces remain normal!


is there somehting like a viz.REDRAW command, or some other way to solve this problem?

Note: after the textures are broken, toggling the extra window ON and OFF does not fix the texture problem.
Reply With Quote
  #2  
Old 10-04-2004, 09:16 AM
tobin tobin is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 251
What is your graphics hardware?
Reply With Quote
  #3  
Old 10-04-2004, 11:43 AM
vr_boyko vr_boyko is offline
Member
 
Join Date: Sep 2004
Posts: 19
Graphics hardware:

The graphics card is NVIDIA GeForce 6800 GT with freshly installed drivers, but the script does the same running on a GeForce 5900, so I do not think it's the graphics hardware. If needed, I can also send the swole script to you, mybe you'll get a better idea of what is going on with the textures and if the same thing happens on other graphics cards?
Reply With Quote
  #4  
Old 10-04-2004, 11:47 AM
tobin tobin is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 251
Yes, sounds like an interesting bug. Please zip and email the script and supporting files to support@worldviz.com. Thanks.
Reply With Quote
  #5  
Old 10-05-2004, 05:22 PM
vr_boyko vr_boyko is offline
Member
 
Join Date: Sep 2004
Posts: 19
Problem solved!

I finally figured out the texture problem:

the culprit was in the windown initialization code:

Code:
othrPOV = viz.add(viz.VIEWPOINT)
othrPOV.translate(0,0,3.4)
PinP.viewpoint(othrPOV)
PinP.visible(viz.OFF)
I had switched the last two lines , so vizard didn't like hiding a window and changing its viewpoint.
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 08:11 PM.


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