Gamestudio Links
Zorro Links
Newest Posts
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
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 (ozgur, degenerate_762), 1,455 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Vertical Mirror/water #238046
11/24/08 14:46
11/24/08 14:46
Joined: Jan 2002
Posts: 454
Germany
CD_saber Offline OP
Senior Member
CD_saber  Offline OP
Senior Member

Joined: Jan 2002
Posts: 454
Germany
Hello,
i hope anyone can help me. Is there a way to create a wall mirror (c-script) I tried using the mtlFX.wdl from the a6 templates, but it only works with floor mirror. Is there a way to get the same effect, when the water entity is placed on the wall?

Thank you for your help!

Last edited by CD_saber; 11/24/08 14:51.

Ja, lach du nur du haariges Pelzvieh!
Re: Vertical Mirror/water [Re: CD_saber] #239128
12/02/08 20:26
12/02/08 20:26
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline
Member
Foxfire  Offline
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3
hey,
It is possible to make a wall mirror. However, this can become complicated.
If the mirror is ONLY oriented at 90 degree intervals, you can use the example (mtlFX.wdl) with a simple modification. Just switch the view matrix so that it clips the x or y plane instead of the z plane (for the ground). If the vector for this is say (a,b,c) just switch it to (a,c,b) or (c,b,a) (It depends which wall the mirror is on). just play around with this and im sure youll get it!

If the mirror is at a wierd angle however, you must calculate new view clipping planes (you must do a bit of math, I can't help you there frown )

-Mike-


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Vertical Mirror/water [Re: Foxfire] #239136
12/02/08 21:23
12/02/08 21:23
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
If you post the code, I'll see if I can modify it for you. If it's being drawn onto an entity (not a block), then you can use vec_for_ang() to get the normal you need.


xXxGuitar511
- Programmer

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