English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] 32 bit floats, SSE instructions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-10 (17:56)
From: Nicolas Cannasse <warplayer@f...>
Subject: [Caml-list] Re: [Ocaml-lib-devel] RE: 3D Rendering pipeline
> Ignoring the flamefest for a bit, I actually have a question for people
> who do 3D rendering pipelines.  Over in Extlib (plug:
> http://sourceforge.net/projects/ocaml-lib/) we have "enumerators"-
> basically Java or C++ STL Iterators.  Except that we have lazy mapping and
> filters- basically, as each element is iterated, all the currently
> applicable maps and filters are applied to it.
> So my question is: would this be a better paradigm to experiment with a
> graphics pipeline in?  What other tweaks or features might make it more
> usefull?

I have been working on 3D rendering pipelines, and I think that ExtLib enums
can provide a good way of mixing algorithms together in an efficient way.
However, the level of abstraction of enums is quite high (closures), so if
runtime is needed and if you're performing on a large set of inputs, you
might need additionnal features such as inlining which cannot cross the
abstract closure barrier.
In conclusion, enums are nice to implement test/rejects clipping algorithms
on an object basis (since you have only few hundreds/thousands of objects to
test) but are not appropriate to do basic operations such as real time
deformation on a vertex basis.

Nicolas Cannasse

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners