The use of Artificial Intelligence Techniques in Computer Graphics (and vice versa) Felipe y Dutra Dept. of Silly Science Universidad de Mexico speedy@cs.unimex.mx Abstract This paper describes some well-known AI techniques to be used in the highly evolving and very exciting field of Computer Graphics (and vice-vera). As is now generally accepted, AI is considered to be an outdated field of research, because after years of heavy funding, nothing but rubbish has been produced. This is especially noticible in some degenerate subfields, such as logic programming and abductive reasoning. Nevertheless, it may be worthwile to explore how we can re-use some of the techniques proposed in AI research over the years, in very promising and exciting domains such as the ever-expanding and ever-growing field of Computer graphics. We therefore present a new look on the combination of both fields. 1. Introduction Computer Graphics is hot! One only has to look to successes as 'Toy Story' or 'Jurassic Park' to understand that this claim is actually an understatement. On the other hand, AI certainly is not! It is obvious that toy action figures or dinosaurs do not have an active form of intelligence, for which it consequently doesn't matter if it is artificial or not. However, there are some cases where this statement is not entirely true. 2. AI in Computer Graphics Many critics have commented that the cg-created dinosaurs in JP actually do have an intelligence. Indeed, in the 'kitchen-scene', one actually sees a velociraptor opening a door, and opening doors is an action only associated with humans, not dinosaurs. It is obvious that the following lines of code where used to model this action: action(state(atdoor,handleinclaw,doorclosed), pushdoor, state(atdoor,handleinclaw,dooropen)) action(state(atdoor,nothinginclaw,_P), takehandle, state(atdoor,handleinclaw,_P)) action(state(inhallway,_P,_Q), walkdownhallway, state(atdoor,_P,_Q)) actionok(state(_,_,dooropen)) ?- actionok(hallway,notinginclaw,doorclosed) As can be seen at a glance, AI provides a very thorough framework for expressing such complicated actions as dinsoaurs opening doors. In Toy Story, the various characters actually are alive, and do seem to behave in an intelligent, almost human, way. A typical example is the scene where Buzz just arrived in Andy's room, and where he's scanning the environment as being on a strange planet. This is a typical intelligent action, which up to now has only been observed by various humanoid species in the series Star Trek. This kind of behaviour clearly indicates the use of knowledge-based systems. 3. Computer Graphics in AI Research has shown that AI can clearly benefit from the use of Computer Graphics. An often debated problem in AI literature, the 'Is-the-turkey-dead-yes-or-no?" problem, would have been solved years ago if one had resorted to simple computer graphics algorithms such as Two-pass Bidirectional Radiosity using adaptive probability functions and sampling densities. A rendered picture of the turkey, with proper lighting and adjusted for gamma-correction, would clearly show that the turkey is indeed dead: - entrails would be visible - an mpeg movie of the turkey would not show it walking around - the turkey would look as a 2D cartoon figure A simple program might do the trick: /* Monte Carlo Rendering of Turkey */ do { generate photon(&photon); while (not_absorbed(&photon)) { find_nearest_intersection (&photon, &object); if (object == turkey) { turkey.status = dead; render(entrails); } reflect(&photon); } } THe expected value of this procedure clearly indicates that the turkey must be dead if the program runs long enough. 4. Conclusion and Future Research Although CG can be considered too hot, and AI can be considered too cold, the combination of both can lead to an exciting new field, for which we coin the term 'Artificial Computers & Intelligent Graphics', which would reside at an ideal temperature. Future research in this new and radically innovative field could include topics as (but not restricted to): - rendering of Turing Machines - intelligent photon-tracing - intelligent of behaviour of polygons