Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Akow), 1,371 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to use the mirrorFloor effect #336865
08/06/10 17:13
08/06/10 17:13
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I'm really facing problems using this material, when I apply it to the ground it doesn't make any reflections. Any ideas how to make it work?

Re: How to use the mirrorFloor effect [Re: Badrizmo] #336868
08/06/10 17:22
08/06/10 17:22
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
I suppose you have a dyinamic light?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: How to use the mirrorFloor effect [Re: painkiller] #336885
08/06/10 19:16
08/06/10 19:16
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
Yea I have one dynamic light source,

okay, just figured out how to make it work

1- Create a map entity with the same dimensions as your floor
1-1 Open WED
1-2 Save the project with any name you wish (e.g. floor)add small cube
1-3 Scale the cube to have the same size of the floor
1-4 Texture the cube
1-5 Build the level


2- Take the resulted file with the wmb extension (floor.wmb)
3- put the floor.wmb in your probject directory
4- In your project right click and add the floor as map entity
5- assign this map entity the following action.

#include <mtlFX.c>
action Reflect()
{
fx_mirrorFloor();
my.albedo = 80;
}
6- run your level and start moving with the player, and you will see very nice realtime reflections.


Last edited by Badrizmo; 08/09/10 05:34.

Moderated by  Blink, Hummel, Superku 

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