Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to create reflections? #16622
09/09/03 14:13
09/09/03 14:13
Joined: Sep 2003
Posts: 21
cool Offline OP
Newbie
cool  Offline OP
Newbie

Joined: Sep 2003
Posts: 21


I am working on a bowling program. I want to make the floor reflective. So I defined a view --->

VIEW mirror {
flags = visible;
}


action mirror
{
camera.portal = mirror;
mirror.noshadow = on;
mirror.portalclip = on;
while (1) {
proc_late();
mirror.genius = camera.genius;
mirror.aspect = -camera.aspect;
mirror.arc = camera.arc;
mirror.fog = camera.fog;
mirror.fog_start = camera.fog_start;
mirror.fog_end = camera.fog_end;
mirror.x = camera.x;
mirror.y = camera.y;
mirror.z = 2*camera.portal_z - camera.z;
mirror.pan = camera.pan;
mirror.tilt = -camera.tilt;
mirror.roll = -camera.roll;
wait(1);
}
return;
}

---> and assigned the action mirror to the floor. I then edited the "properties" of the map entity for floor and made checked the mirror flag for every face of it and made the ground reflective.

My problem is that if we look from a little above the floor there is no reflection. There is reflection only if we look from a position very close to the surface of the floor . In that case also, reflections are flickering.

Could anyone suggest a meathod to solve this problem. Are there any other methods for creating reflections.

I have one more problem. Eventhough the surface is reflective, it is almost like a plane mirror. The texture of the surface is not clearly visible. You understood the point? I want to keep the texture visible, at the same time, it should be reflective.


Re: how to create reflections? [Re: cool] #16623
09/10/03 04:14
09/10/03 04:14
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Depending on what version of 3dgs your are using, the Flag8 checkbox should be checked for each face you want to be a mirror. Also, what version of Pro are you using? There is a tutorial in Aum about doing horizontal mirrors, check it out.


--Eric

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