Posted By: jaknine
Mirror on North wall? - 05/30/09 23:20
I have some old code from AUM for mirrors and it works fine for a mirror on the South wall, which is what the code is set to do. I can't for the life of me figure out how to get them to work on the north wall though, no matter what I change in the code.
I did a search and found an old post from raiden talking about the same problem (http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=61714#Post61714), that he could get mirrors working on the south and west walls but not the north or east.
I'm using A7Pro but my code is in c-script for this project. I assume that I have to build my mirror block with the mirror surface on the south face (facing from the north) as I had to have it on the north face to work as a south wall mirror. Even so, I've tried both methods and still can't get it working on the north wall. I've changed about everything I can think of in the code below to be negative where it's positive, etc. etc. but no luck.
Can anybody tell me what line in the code below I need to use the mirror on the north wall?
I did a search and found an old post from raiden talking about the same problem (http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=61714#Post61714), that he could get mirrors working on the south and west walls but not the north or east.
I'm using A7Pro but my code is in c-script for this project. I assume that I have to build my mirror block with the mirror surface on the south face (facing from the north) as I had to have it on the north face to work as a south wall mirror. Even so, I've tried both methods and still can't get it working on the north wall. I've changed about everything I can think of in the code below to be negative where it's positive, etc. etc. but no luck.
Can anybody tell me what line in the code below I need to use the mirror on the north wall?
Code:
VIEW mirror = { layer = 10; flags = NOSHADOW | NOPARTICLE | PORTALCLIP; // suppress shadows in the mirror } action mirror_startup() { camera.portal = mirror; while (1) { proc_kill(4); mirror.genius = camera.genius; mirror.aspect = camera.aspect; mirror.arc = -camera.arc; mirror.x = camera.x; mirror.y = camera.portal_y - (abs(camera.portal_y - camera.y)); mirror.z = camera.z; mirror.pan = -camera.pan; mirror.tilt = camera.tilt; mirror.roll = camera.roll; wait(1); } }