Gamestudio Links
Zorro Links
Newest Posts
Bug in train mode, or it seem to me
by jcl. 09/22/26 14:47
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 09/22/26 12:21
Capital slider is not saving in Z12
by Petra. 09/22/26 06:49
Parent/child object
by VoroneTZ. 09/22/26 05:52
Zorro tutorial ideas?
by AndrewAMD. 09/21/26 14:50
Trades during a running bar
by Martin_HH. 09/21/26 12:03
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,416 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Opus, Jubilee, lopezsergio07, mistery, lokkalyansamiti
19239 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 | 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