WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-11-2010, 11:59 AM
Josh Josh is offline
Member
 
Join Date: Jan 2010
Posts: 63
Mirror: vizMatrix() - what exactly is this for?

Hi all

I'm having problem getting the code for the mirror example to work.

As long as I'm taking the default IVE map (the art gallery), everything works as expected, but when I'm trying to use the same code with my own map, then the mirroring is quite weird. It seems I have to place the mirror exactly on a specified spot, so it mirrors correctly, otherwise some stuff is not mirrored or the wrong "direction" of the room is mirrored... Strange stuff!

I guess it has something to do with his:

# Use existing mirror object within the room and specify the matrix
mirror = room.getChild('art04-FACES')
m = viz.Matrix()
m.setPosition(mirror.getPosition(viz.ABS_GLOBAL))
m.setEuler(180,0,0)

Sadly I have no idea what to do with this... Anyone can tell me, what I have to do, so I can put my mirror to anywhere I want and it reflects correctly?

Thanks a lot
Josh
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 02:58 AM.


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