Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 642 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Make a mirror properly #443615
07/21/14 18:36
07/21/14 18:36
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Hi, guys

I want to make a mirror. I made a 24-bit .bmp fully-white sprite ,then attached material 'mtl_mirrorFloor' (in mtlFX.c) to it and that's what I sadly got:






Also, I tried that with a model, but the model just stood there without any reflection


So, I would be grateful if any of you guys could tell me how I can make a mirror properly


Thank you and any help will be appreciated

Last edited by CyberGhost; 07/21/14 18:37.

Nothing to say ....
Re: Make a mirror properly [Re: CyberGhost] #443618
07/21/14 19:32
07/21/14 19:32
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Just draw a camera bitmap on the entity-skin laugh

Re: Make a mirror properly [Re: CyberGhost] #443620
07/21/14 19:34
07/21/14 19:34
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hi,

I have personally no experience with this, but from what I have found in a minute:

A 'fake' simple way -> http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=329466

Using a shader -> http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=432609

edit; ninja'd

Last edited by Reconnoiter; 07/21/14 19:34.
Re: Make a mirror properly [Re: Reconnoiter] #443621
07/21/14 21:29
07/21/14 21:29
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Ok, gonna check that. Looks like it's not an easy one laugh


Nothing to say ....
Re: Make a mirror properly [Re: CyberGhost] #443672
07/22/14 19:33
07/22/14 19:33
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Ok. Some ideas would require to use the 'MIRROR' flag. Actually, where is it? I know the manual said something like it was FLAG8 in WED 4 ,but I have nearly the latest version of 3DGS. Also, I can't set FLAG8 for a single face of a block.


Nothing to say ....
Re: Make a mirror properly [Re: CyberGhost] #443675
07/22/14 19:39
07/22/14 19:39
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
have you tried environment mapping? or Ch40zzC0d3r's idea?

Re: Make a mirror properly [Re: Reconnoiter] #443677
07/22/14 20:05
07/22/14 20:05
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Ch40zzC0d3r's idea:

I thought about it ,but it won't work. If you went to a direction in the real world ,you will go to the same direction in the mirror no matter you set CULL_CW for the view or not

environment mapping:

Actually, I don't have very good experience with shaders grin . I used the floor reflection ,but it didn't work. I am sure there is something missing.


Nothing to say ....

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