Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 14th Dec 2010 22:36
HI,
Can someone kindly tell me how to create the reflection like a window glass!
Does set camera to image work with a loaded poly mesh!

Thanks in advance
Regards


Your Signature Here;
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Dec 2010 12:47
I used the in built command once.

No code to hand but it's slow and any shaders applied to objects won't work. Also it shows hidden objects too (I think).

Depending on how you're planning on using reflection you might be able to cheat by using a false mirror technique or even a dynamic environment map.

I guess the main question is what is the 'scene' you want to use it in?

B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 15th Dec 2010 16:04
It is the glasses of windows of some buildings. I hv created it using plain in an editor. I placed a huge plain (with buildings texture) in front of the glases. and in between these two plain there is a wall where the player can walk. So, I want to reflect everything on the window glasses including player and wall.

My camera follows the player only on x and y axis.

I tryed DBP's command and set camera to image.
Can you give me some idea to create it.

Thanks for the reply
Regards


Your Signature Here;
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Dec 2010 16:15
The native commands won't do it in this case. I would suggest a dynamic environment map. I don't have the code for this with me but I'll try to remember to look it up tonight.

If you have DarkShader you could try looking through the examples for a "dynamic anvironment" object shaders in the meantime...

B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 15th Dec 2010 17:55
I don't hv Dark Shader.

Do you hv any other environment shader that doesn't require DS to run!

Regards


Your Signature Here;
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 15th Dec 2010 18:41
Just sphere map or cube map them. Doesn't require dark shader, and the commands are built in.

My signature is NOT a moderator plaything! Stop changing it!
B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 15th Dec 2010 18:52 Edited at: 15th Dec 2010 18:56
I already tried both, Nothing happened. I don't understand anything! It should work though.
Does sphere mapping require skybox to work? Cos I don't hv skybox in my game.

Thanks for reply
Regards

EDIT: sorry, I did not try cube mapping.


Your Signature Here;
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 15th Dec 2010 19:14 Edited at: 15th Dec 2010 19:16
Quote: "Does sphere mapping require skybox to work?"

No, all sphere/cube mapping does is take an image (or 6 for cube mapping), and wrap it around your object like it was wrapping paper. As the object moves, the map changes, simulating semi-reflective surfaces.

Have a SIMPLE cube mapping example...


you need an image, like the one I've attached.


My signature is NOT a moderator plaything! Stop changing it!
B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 15th Dec 2010 19:38
Thanks Mobiius, for showing me the example. Actually I was doing wrong.
Also, I had to export my model. The previous model was exported using someones x exporter where no shaders work.

Thanks
Regards


Your Signature Here;
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 16th Dec 2010 18:03
Glad I could help.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-21 07:02:36
Your offset time is: 2026-07-21 07:02:36