Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, 7th_zorro, 1 invisible), 890 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mirror on North wall? #268749
05/30/09 23:20
05/30/09 23:20
Joined: Feb 2002
Posts: 288
California, USA
J
jaknine Offline OP
Member
jaknine  Offline OP
Member
J

Joined: Feb 2002
Posts: 288
California, USA
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?

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);

       }

}


Re: Mirror on North wall? [Re: jaknine] #269653
06/04/09 00:23
06/04/09 00:23
Joined: Feb 2002
Posts: 288
California, USA
J
jaknine Offline OP
Member
jaknine  Offline OP
Member
J

Joined: Feb 2002
Posts: 288
California, USA
Well I guess not, hahaha. I give up.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1