Caelum only works with Cg shaders

Bug #368401 reported by Erik Ogenvik
2
Affects Status Importance Assigned to Milestone
Ember
Fix Committed
Low
Erik Ogenvik

Bug Description

Both the foliage (PagedGeometry) and sky (Caelum) system only works with Cg-shaders. Which means that the foliage is disabled, and the sky isn't as good looking as it could be when running it on a system without support. Since we like FOSS and want our client distributed on many distros, and Cg isn't FOSS (how nice would it be if it had been?) we need to provide GLSL fallbacks. One possibility is just to run it through Cg with a GLSL backend and save the shader.

Tags: caelum shaders
Changed in ember:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Alexey Torkhov (atorkhov) wrote :

PagedGeometry makes its shaders in runtime. Nothing hard there, it could be rewritten with #ifdefs. But it may require modifying the grass loader even more. May be make custom grass loader (with different class name) to simplify the updating?

P.S. As a thought: we can still support DirectX by compiling GLSL shaders with Cg (-oglsl option). Not sure about how it will work through.

tags: added: caelum
tags: added: shaders
Revision history for this message
Crestez Dan Leonard (cdleonard) wrote :
Revision history for this message
Erik Ogenvik (erik-ogenvik) wrote :

That is interesting indeed. You mentioned earlier that you were interested in looking to upgrade caelum in Ember. I've now fixed the issues with ATI cards, so you can run it without getting any artifacts.

Revision history for this message
Erik Ogenvik (erik-ogenvik) wrote :

Updated the title to reflect that this now only concerns Caelum since the Paged Geometry has been updated with support for GLSL shaders.

summary: - Foliage and Caelum only works with Cg shaders
+ Caelum only works with Cg shaders
Changed in ember:
assignee: nobody → Erik Ogenvik (erik-ogenvik)
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.