Request for Implementation of Texture Reflection?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
proyb
Posts: 7
Joined: Thu Mar 31, 2005 9:40 am

Request for Implementation of Texture Reflection?

Post by proyb »

Does anyone konw how do I add reflection to texture similiar to car? I understand there is not yet real reflection implement in engine but there showcase which also demo almost similiar:

http://irrlicht.sourceforge.net/images/shots/033.jpg
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

The technique used on the screenshot is environment mapping which does nothing more than wrapping a texture from the environment (screenshot or something) around the model and gives it a reflective look. This looks good for static objects but not for dynamic (or moving) objects. You'd need Render To Texture support for REAL reflections and guess what: it's on the list for 1.0 :).
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

The material on that shot is simply EMT_SPHERE_MAP, already works in Irrlicht. Real reflections will need RTT, just like bal said.
Testur

Post by Testur »

Will these reflections reflect moving objects too? Would you see the distorted reflection of your character in an object?
Proyb here

Pictures from Jim Blinn's Early Environment Mapping Work

Post by Proyb here »

This is what I hope to achieve the reflective result as already have in Irrlicht engine:

http://www.debevec.org/ReflectionMapping/Blinn/
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

For real refection and ofcourse to reflect moving objects Irlicht needs cube mapping and there is an example in DirectX9 SDK.
But there is an othere way to make reflection: with strencil mirror but I dont it would be what to use for a car but for mirrors(it's just pure refection and I think it can't be combined with other materials like a car paint).
So Cube Mapping is the solution.
And of course enviroment mapping that can be used for water effect(I mean combined with transparency).
__________________________________________________________________________

Theoreticly it's easy to say how or what to do , but Praticaly it's imposible.:D
(just a joke)
Kat'Oun
Murphy
Posts: 290
Joined: Mon Dec 13, 2004 12:06 am
Location: United States
Contact:

Post by Murphy »

Remember Tokyo Extreme Racer's reflections on the cars? I haven't played it for a long time, but looking back at it now, it seems like they were probably just sphere-mapped animated textures. What you mostly saw were the "reflections" from the streetlights, and it seems like you could fake them convincingly enough that way. Looked great in the game. Though they had the advantage that you're always racing at night, so only the streetlights really needed to be reflected...

Maybe I'll fire up my Dreamcast tomorrow and see if I can convince myself that's how it's done.
Post Reply