WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Mirror: vizMatrix() - what exactly is this for? (https://forum.worldviz.com/showthread.php?t=2607)

Josh 03-11-2010 11:59 AM

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


All times are GMT -7. The time now is 03:53 PM.

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