Refraction for CaLight

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
User avatar
Haimi
Posts: 85
Joined: 2011-11-23, 09:28

Refraction for CaLight

Post by Haimi » 2012-03-17, 16:45

Does CaLight already support refraction? I di not find anything on the site..
Project Status: Code architecture definition
6 Programmers, 1 Photographer, 1 Architect, 1 Game designer
User avatar
Carsten
Site Admin
Posts: 2170
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Refraction for CaLight

Post by Carsten » 2012-03-19, 08:44

At this time, no.

Given the low-frequency nature of lighting in CaLight, and the small angles involved with refraction (i.e. changing the direction in which light rays propagate as a result of refraction), it also doesn't seem very useful?
Best regards,
Carsten
User avatar
Haimi
Posts: 85
Joined: 2011-11-23, 09:28

Re: Refraction for CaLight

Post by Haimi » 2012-03-19, 09:31

I thought about realism including underwater caustics and refraction in models with "Glass" Texture... That's why I asked... So I myself think it would be useful in some cases.
Project Status: Code architecture definition
6 Programmers, 1 Photographer, 1 Architect, 1 Game designer
scott
Posts: 173
Joined: 2004-08-23, 09:11

Re: Refraction for CaLight

Post by scott » 2012-03-19, 12:25

I would think you would do those with a shader and projected textures
User avatar
Kai
Posts: 177
Joined: 2004-08-19, 15:56
Location: Germany
Contact:

Re: Refraction for CaLight

Post by Kai » 2012-03-29, 07:08

I agree with Scott

I thought about realism including underwater caustics and refraction in models with "Glass" Texture.

Usually caustics are just a kind top down projected animated texture (as this requires a fast response real calculation is out of the question)
Some texture generators can produce animated caustic textures ...
usually this would be combined with a slope based transition so it fades off on steep angles (to prevent odd distortions)

For refraction of glass and other transparent surfaces you need access to the framebuffer \ render to texture function in order to distort\manipulate the current view.

CaLight is only for static light maps and can not provide any information that requires a constant view-dependent update.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests