Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

PyFX: A framework for real-time graphics effects

Lejdfors, Calle LU and Ohlsson, Lennart LU (2005)
Abstract
Programming real-time effects for contemporary GPUs requires writing shader programs to run on the GPU as well as code for the render state setup logic performed by the CPU. While the GPU parts are well supported by high level programming languages, the effect frameworks commonly used for the CPU parts are lacking both in functionality and expressive power, which makes them difficult to work with.



In this paper we present an effect framework implemented as an embedded language in Python. We show that this high-level language for effect descriptions provide increased expressivity, without sacrificing declarativity of other frameworks. We show how some additional functional features, image-processing and off-screen render... (More)
Programming real-time effects for contemporary GPUs requires writing shader programs to run on the GPU as well as code for the render state setup logic performed by the CPU. While the GPU parts are well supported by high level programming languages, the effect frameworks commonly used for the CPU parts are lacking both in functionality and expressive power, which makes them difficult to work with.



In this paper we present an effect framework implemented as an embedded language in Python. We show that this high-level language for effect descriptions provide increased expressivity, without sacrificing declarativity of other frameworks. We show how some additional functional features, image-processing and off-screen render targets, cooperate with the effect language giving a rich environment for experimenting with both functional and expressive features of effect programming. (Less)
Please use this url to cite or link to this publication:
author
and
organization
publishing date
type
Book/Report
publication status
published
subject
pages
12 pages
publisher
Lund University
report number
LU-CS-TR:2005-233
language
English
LU publication?
yes
id
3fb51ea1-df29-4263-b0bf-18d7ad8adc7d (old id 954552)
date added to LUP
2016-04-04 11:49:21
date last changed
2021-05-05 21:57:32
@techreport{3fb51ea1-df29-4263-b0bf-18d7ad8adc7d,
  abstract     = {{Programming real-time effects for contemporary GPUs requires writing shader programs to run on the GPU as well as code for the render state setup logic performed by the CPU. While the GPU parts are well supported by high level programming languages, the effect frameworks commonly used for the CPU parts are lacking both in functionality and expressive power, which makes them difficult to work with.<br/><br>
<br/><br>
In this paper we present an effect framework implemented as an embedded language in Python. We show that this high-level language for effect descriptions provide increased expressivity, without sacrificing declarativity of other frameworks. We show how some additional functional features, image-processing and off-screen render targets, cooperate with the effect language giving a rich environment for experimenting with both functional and expressive features of effect programming.}},
  author       = {{Lejdfors, Calle and Ohlsson, Lennart}},
  institution  = {{Lund University}},
  language     = {{eng}},
  number       = {{LU-CS-TR:2005-233}},
  title        = {{PyFX: A framework for real-time graphics effects}},
  url          = {{https://lup.lub.lu.se/search/files/5863131/954574.pdf}},
  year         = {{2005}},
}