is reflect/refract support in Cafu?

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
Post Reply
fatfatson
Posts: 2
Joined: 2010-02-21, 05:07

is reflect/refract support in Cafu?

Post by fatfatson » 2010-02-21, 13:58

hello,Carsten!
i have searched all the source, and didn't found anything about reflect&refract support( at least a render texture and an extra render pass? ), but the gallery contains many water pictures. am i missing something?
User avatar
Carsten
Site Admin
Posts: 2160
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: is reflect/refract support in Cafu?

Post by Carsten » 2010-02-21, 23:30

The reflection is currently implemented as a "cubemap" reflection, see files
Cafu/Libs/MaterialSystem/RendererCgARB1/Shaders/A_WaterCubeReflect.cpp or
Cafu/Libs/MaterialSystem/RendererARBprogs/Shaders/A_WaterCubeReflect.cpp
for details. In other words, these shaders can reflect the skies, but not the terrain or map objects.

Implementing full reflection is among the most important things to be done in the future - I'll post a new web page with a roadmap for Cafu soon. If you wish to help with the implementation, I'd be very happy about it and your help would much be appreciated!
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests