Canvas scenery overlays: Difference between revisions

Jump to navigation Jump to search
Line 50: Line 50:
myCanvas.registerMaterial("myAirportMaterial")
myCanvas.registerMaterial("myAirportMaterial")


As long as that material/name is referenced in materials.xml that should work, shouldn't it ?
As long as that material/name is referenced in materials.xml that should work.


As far as I can tell, that would be the most straightforward/easiest way to hook up Canvas and effects - i.e. treating a Canvas texture as a material.
It seems, that would be the most straightforward/easiest way to hook up Canvas and effects - i.e. treating a Canvas texture as a material, at which point a cascade of Canvas-based FBOs can be set up in conjunction with effects/shaders for arbitrary post-processing.  


For airport stuff, vector drawing capabilities like those available via Canvas (Canvas.Path/ShivaVG) could come in handy - so all that is needed is to "bridge" both worlds: to expose a Canvas to shader space so that you can use it, but also so that an arbitrary Canvas can be draped over terrain.
For airport stuff, vector drawing capabilities like those available via Canvas (Canvas.Path/ShivaVG) could come in handy - so all that is needed is to "bridge" both worlds: to expose a Canvas to shader space so that you can use it, but also so that an arbitrary Canvas can be draped over terrain.

Navigation menu