WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-25-2011, 12:43 AM
hxphan hxphan is offline
Member
 
Join Date: Feb 2011
Posts: 4
Mirror only works when close up

Hello,

I am trying to add a mirror in a new world. I used the provided code for the "addMirror" function, then I used the following to create the mirror and position it in the desired location:

#Adds a textquad to the scene
mirror = viz.addTexQuad()

#set position
mirror.setPosition(3,3,-2)
mirror.setEuler(0,0,0)

#specify the matrix
m = viz.Matrix()
m.setPosition(mirror.getPosition(viz.ABS_GLOBAL))
m.setEuler(180,0,0)


#Apply mirror settings to mirror object
addMirror(mirror,m)

The problem is that the mirror only reflects when the view is about 1 meter from it. Any distance that is further will make the mirror transparent, and all I can see is what's behind the mirror. Do you know what may be the reason for this?
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
close window event shai Vizard 1 09-13-2005 01:18 PM


All times are GMT -7. The time now is 09:26 AM.


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