Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mirror sorting / clipping problems #93314
10/06/06 15:05
10/06/06 15:05
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
I don´t get it. I´ve made succesfully mirrors with A6 Pro in the past, but now I´m stuck:






What could cause this problems? It looks like sorting / clipping errors. But is it a fault in my geometry? In my
script? Dunno...

Code:

view mirror {}

action init_mirror_z
{
my.albedo = 15;
camera.portal = mirror;
mirror.noshadow = on; // unterdrücke Schatten im Spiegel
mirror.noparticle = on;
mirror.portalclip = on;
while (1)
{
proc_late(); // führe Funktion nach allen anderen aus - die Kamera muss vorher bewegt werden
// mirror.genius = camera.genius;
mirror.aspect = -camera.aspect; // klappe das Bild von oben nach unten um
mirror.arc = camera.arc;
// mirror.fog = camera.fog;
mirror.x = camera.x;
mirror.y = camera.y;
mirror.z = 2*camera.portal_z-camera.z; // bewege die Kamera um das zweifache der Portal-Distanz nach unten.
mirror.pan = camera.pan;
mirror.tilt = -camera.tilt; // klappe den vertikalen Kamerawinkel um
mirror.roll = -camera.roll;
wait(1);
}
}



The floor is a map entity.


no science involved
Re: Mirror sorting / clipping problems [Re: fogman] #93315
10/06/06 15:25
10/06/06 15:25
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
You didn't define the clip plane of the mirror view. (mirror.pnormal_x, mirror.portal_x)


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Mirror sorting / clipping problems [Re: ChrisB] #93316
10/06/06 15:47
10/06/06 15:47
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Ich schreib´ mal in Deutsch. Die Action ist direkt so aus der Hilfe übernommen und hat auch funktioniert.
Ich benutze noch 6.31 für dieses Projekt, die kennt "pnormal_x" noch nicht, ich kann also keine clip plane definieren. Auch das setzen des Layers auf -1 für den view "mirror" hat nichts gebracht.

Edit: @all: I´m using 6.31 for this project, so I can´t define clip planes. The problem must be somewhere else.


no science involved
Re: Mirror sorting / clipping problems [Re: fogman] #93317
10/06/06 16:36
10/06/06 16:36
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
your floor is a map entity? its not being set transparent or using a 32 bit tga texture is it?

Re: Mirror sorting / clipping problems [Re: Grimber] #93318
10/06/06 17:39
10/06/06 17:39
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
No the map entity isn´t set to "transparent". In a testlevel I was able to make a mirror with the same script, without errors. So it has to be something in my script (maybe clip_far??? I´ll check that) or in my level, but it´s a very simple level so far...
Thanks for your replies, btw.

edit: setting the mirrors clip_far and clip_near values to the camera values doesn´t change anything.
Noticed another thing:





^^When the camera tilt is nearly 0 the mirror looks like it should. If I rise the camera and it tilt changes, it looks like in the last pic.


Last edited by fogman; 10/06/06 18:02.

no science involved
Re: Mirror sorting / clipping problems [Re: fogman] #93319
10/06/06 21:10
10/06/06 21:10
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
Im not too good with mirrors ( no Pro edition) um did you try setting a higher layer to that view portal. just wonder if the problem is in the views conflicting layers because Ive seen somewhat similar issues when just working 2 views and forget to set the layers.

Re: Mirror sorting / clipping problems [Re: fogman] #93320
10/06/06 21:43
10/06/06 21:43
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
Hm wenn du 6.31 benutzt warum hast du dann trotzdem das portal flag gesetzt und benutzt mirror_view.portal_x im script?


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Mirror sorting / clipping problems [Re: ChrisB] #93321
10/07/06 00:36
10/07/06 00:36
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Weil es so im Handbuch steht und immer funktionierte. Sogar mit 6.11 geht es. In einem Testlevel geht es ja auch. Nur eben nicht in meinem Projekt. "Portal" und "portal_x / y / z" kennt auch 6.31 schon.
Morgen werde ich weiter testen, da ich eben per pm noch einen Tipp zu "clip_near" erhalten habe.

Ok, thanks to Lazy Dog, he gave me the tip to increase camera.clip_near. Now I´ve got a perfectly working mirror!

Last edited by fogman; 10/07/06 10:12.

no science involved

Moderated by  HeelX, Spirit 

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