Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A6 Pro - Wall Mirror sorrows #110744
02/04/07 20:02
02/04/07 20:02
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
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);
}
}



Last edited by LazyDog; 02/04/07 20:04.

www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: A6 Pro - Wall Mirror sorrows [Re: LazyDog] #110745
02/06/07 02:32
02/06/07 02:32
Joined: Mar 2005
Posts: 725
USA
TeutonicDarkness Offline
User
TeutonicDarkness  Offline
User

Joined: Mar 2005
Posts: 725
USA

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 ***

Re: A6 Pro - Wall Mirror sorrows [Re: TeutonicDarkness] #110746
02/06/07 15:33
02/06/07 15:33
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
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.

Re: A6 Pro - Wall Mirror sorrows [Re: jcl] #110747
02/07/07 02:48
02/07/07 02:48
Joined: Mar 2005
Posts: 725
USA
TeutonicDarkness Offline
User
TeutonicDarkness  Offline
User

Joined: Mar 2005
Posts: 725
USA
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 ***

Re: A6 Pro - Wall Mirror sorrows [Re: TeutonicDarkness] #110748
02/08/07 14:19
02/08/07 14:19
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline
Serious User
PrenceOfDarkness  Offline
Serious User

Joined: Aug 2004
Posts: 1,305
New York
@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.


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.

Moderated by  old_bill, Tobias 

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