Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 7,008 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
mirrow problems #10907
11/12/02 10:44
11/12/02 10:44

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



hey,

i have some problems with the mirrow flag!

i have a building with some rooms. when i set then mirror flag for any object and look at it, i see all objects which i integrated as a entity in that level instead of what i see in the mirror.

can anyone help me on that?

--dan

Re: mirrow problems #10908
11/13/02 07:40
11/13/02 07:40
Joined: Mar 2002
Posts: 1,835
Minneapolis, Minnesota, USA
Nardulus Offline
Serious User
Nardulus  Offline
Serious User

Joined: Mar 2002
Posts: 1,835
Minneapolis, Minnesota, USA
First I assume you are using the Pro version.

Are these mirrors on the floor or the wall.

The mirror code from office is for a floor mirror.

There's code for a vertical mirror in Aum9

Thank George for this

code:
  


Q: I need some code for a vertical mirror - can you help?
A: First of all make sure that your mirror entity won't be rotated in the level (give it the correct angles when you create it) . Here's some code for a vertical mirror that is placed on the south, with its reflective surface towards north:

function init_vmirror(); // put init_vmirror(); in main

view vmirror {};

function init_vmirror()
{
camera.portal = vmirror;
vmirror.noshadow = on; // suppress shadows in the mirror
vmirror.noparticle = on; // suppress particles in the mirror
vmirror.portalclip = on; // clip at portal plane
while (1)
{
proc_late(); // place it at the end of the function list
vmirror.genius = camera.genius;
vmirror.aspect = camera.aspect;
vmirror.arc = -camera.arc;
vmirror.fog = camera.fog;
vmirror.x = camera.x;
vmirror.y = 2 * camera.portal_y - camera.y;
vmirror.z = camera.z;
vmirror.pan = -camera.pan;
vmirror.tilt = camera.tilt;
vmirror.roll = camera.roll;
wait(1);
}
}

Ken

Re: mirrow problems #10909
11/13/02 09:42
11/13/02 09:42
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Make sure you have the latest update. There are errors in previous versions.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: mirrow problems #10910
11/16/02 08:06
11/16/02 08:06

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



thanks, i will try that


Moderated by  HeelX, Spirit 

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