Jump to content

Create Mirror texture


Farlas
 Share

Recommended Posts

Hello there i was starting to do some thing with leadwerks and i was thinking about to create a mirror where we can see all stuff around the mirror like a real mirror but i see only topic about cubemap to do reflections with a predefined texture.

 

so there is a way to do a simple materials for making a true mirror ?

Link to comment
Share on other sites

so there is a way to do a simple materials for making a true mirror ?

 

 

Simple way? not really, you could do it with a camera, render buffer and render to a texture.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

if you do a mirror then presumeably you would have to show an image of a human when the controller is in front of the mirror or whatever the controller is supposed to be. Intiguing but not easy.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

As far as I am aware the water shader used requires a plane thats facing directly up, so you'd probably have to write your own reflection shader to uses a plane in a different orientation. Your best bet is to use a camera, render buffer and render to a texture.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

I think things like mirrors will need a lot of performance..

 

only thing i can think about is rendering the whole scene a second time, just using another camera (facing perpendicular to the surface of the mirror) rendering this scene to its own buffer and then applying the color-buffer to the mirror as a texture..

 

but as you see, rendering everything a second time (for one mirror) will not be very performant..

 

maybe there's a better way, but i dont know how..

Link to comment
Share on other sites

As far as I am aware the water shader used requires a plane thats facing directly up, so you'd probably have to write your own reflection shader to uses a plane in a different orientation. Your best bet is to use a camera, render buffer and render to a texture.

 

I believe the shader will work with any orientation. It's the rendering that has to be oriented with the mirror.

AMD Phenom 9850 (X4 2.5GHz) | 1066MHz CL5 GEIL Black Dragon (800MHz) | Powercolor ATI 4870 1GB | DFI 790FXB-M2RSH | 24" 1920x1200 | Windows Vista 64-bit Ultimate

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...