A6 Pro - Wall Mirror sorrows

Posted By: LazyDog

A6 Pro - Wall Mirror sorrows - 02/04/07 20:02

I have A6 pro and have successfully created a floor mirror by selecting the mirror flag in wed for the floor surface. I took the same level removed that flag and set a side wall surface flag to mirror. I don't understand the concepts of the portal view enough to alter the floor code to work on the wall. the following small scripts has the old floor code to show what was working and the new wall code. All that is displayed on the wall is a blue/purple color. can you please explain what I doing wrong?

Code:
  
//wallmirror.wdl

view aMirror
{
layer = -1;
}

function UpdateFloorMirror
{
camera.portal = aMirror;
aMirror.noshadow = on; // suppress shadows in the mirror
aMirror.portalclip = on;
aMirror.nocull = on;
aMirror.visible = on;


while (1)
{
proc_late(); // place at end of function list - camera must move first

aMirror.genius = camera.genius;
aMirror.aspect = -camera.aspect; // flip the image upside down
aMirror.arc = camera.arc;
aMirror.x = camera.x;
aMirror.y = camera.y;
aMirror.z = 2 * camera.portal_z - camera.z;
aMirror.pan = camera.pan;
aMirror.tilt = -camera.tilt; // flip the vertical camera angle
aMirror.roll = -camera.roll;

wait(1);
}
}

function UpdateWallMirror
{
camera.portal = aMirror;
aMirror.noshadow = on; // suppress shadows in the mirror
aMirror.portalclip = on;
aMirror.nocull = on;
aMirror.visible = on;


while (1)
{
proc_late();

aMirror.genius = camera.genius;
aMirror.aspect = camera.aspect;
aMirror.arc = camera.arc;
aMirror.x = aMirror.portal_x;
aMirror.y = aMirror.portal_y;
aMirror.z = camera.z;
aMirror.pan = camera.pan + 180;
aMirror.tilt = camera.tilt;
aMirror.roll = camera.roll;

wait(1);
}
}

function main()
{
level_load("wallmirror.wmb");
wait(3); // wait until level loaded

camera.arc = 135;

// UpdateFloorMirror();
UpdateWallMirror();

ent_create("warlock.mdl",Vector(-115,180,192),null);

while (1)
{
camera.x += key_force.y;
camera.y += key_force.x;

wait(1);
}
}


Posted By: TeutonicDarkness

Re: A6 Pro - Wall Mirror sorrows - 02/06/07 02:32


Well I have serious doubts that this was posted in the right place..
Proablly been better in user requests or scripting...
MOD corect me if I'm wrong

(Also there your more likely to get the help and answer needed)

However I am interested in knowing about mirrors on walls myself
been trying to get it to work from the time I started using A5.

let me know if you figure anything out please.


*** Teutonic Darkness ***
Posted By: jcl

Re: A6 Pro - Wall Mirror sorrows - 02/06/07 15:33

In one early AUM was a description how to create vertical and horizontal mirrors. I don't know the AUM number, but a compilation of all AUM issues is downloadable from the AU site.
Posted By: TeutonicDarkness

Re: A6 Pro - Wall Mirror sorrows - 02/07/07 02:48

Quote:

In one early AUM was a description how to create vertical and horizontal mirrors. I don't know the AUM number, but a compilation of all AUM issues is downloadable from the AU site.





Thank you...
I don't know how I have managed to overlook this for so long

Here is the link: http://aum.conitec.net/aum16/english/aum16/index.html



*** Teutonic Darkness ***
Posted By: PrenceOfDarkness

Re: A6 Pro - Wall Mirror sorrows - 02/08/07 14:19

@jcl, i believe that issue has to do with all editions. Some of who just bought the pro edition (this is the part where I rub it in for anyone else who doesn't have pro) expected mirror to come easy with the edition upgrade. I've read the manual, but either I can't find it or it doesn't give us an example on how to use that feature.
© 2023 lite-C Forums