Constraint Based 3 D Object Layout Using
Constraint Based 3 D Object Layout Using
Abstract
Object layout in a large 3D-scene or in a complex virtual environment is a time-consuming and tedious
task. In order to assist the user in this task, we present a general-purposed constraint-based system. The
underlying constraint solver is built on a genetic algorithm. It is able to process a complex set of
constraints, including geometric and pseudo-physics ones. Moreover, universal quantifiers and Boolean
combination of constraints are allowed to make the layout description easier. Finally, to get realistic
scenes, objects can take any orientations, not only isothetic ones.
∑f
problems are average values of 10 consecutive
g runs.
nbGenes
f ch = - "20 boxes on the table but not on a box already
nbGenes on the table":
∑ prio × f
nbChromosome s
ch ch
F=
∑ prio
nbchromosome s
ch
3 Experimental results
In order to evaluate how the solver computes
different kinds of problem, we use the following
3D-scene as reference: Figure 12: Computation time = 52.1 s
Here are summarized advantages and drawbacks - very complex problems can be formulated: in
of our system. our system, universal quantifier and Boolean
combination of constraints are allowed;
Advantages: - fuzzy description are naturally taken into
- the system is general-purpose, easy to account;
understand and easy to extend; - when the system encounters an over-
- maximum computation time allowed can be constrained problem, a suitable solution is
defined by the user; proposed according to the weight of
- unlike traditional constructive approaches (e.g. constraints;
CSP), a partial solution can be visualized and - the system can both deal with satisfaction and
selected at any moment; optimization problems.
- as it is a stochastic process, final scene is very
realistic;
Drawbacks: section 3) are promising. However, particular
- as all metaheuristics techniques, simulation benchmarks are needed to allow quantitative
parameters (population size, mutation rate, comparisons between different approaches.
etc.) are problem-dependant; several tries can In the future, we plan to include this tool in our
be necessary to get good results; DEM²ONS [Kwaiter et al. 97] declarative
- global convergence is not guaranteed; platform, to compare it more precisely with
- inconsistency of a description cannot be others existing constraint solvers and others
proved; metaheuristics (e.g. local search).
- the algorithm is not sound: scenes which are However, to get an easy-to-use object-layout
not solution can sometimes be generated. software, the description of the scene can be
made easier by the use of semantic and functional
5 Conclusion features associated with the objects. So, the user
can obtain a complex and realistic scene without
In this paper we have presented a constraint- giving all details.
based system for non-isothetic 3D-object layout
built on a genetic algorithm. The first results (see
Figure 16: Example of a realistic 3D-scene (88 objects) generated with our tool (ray tracing rendering)
References [Koza 92] J.R. Koza. Genetic Programming. On
the Programming of Computers by Means of
Natural Selection. The Mit Press, 1992.
[Bonnefoi et al. 99] P-F Bonnefoi, D. Plemenos.
Object Oriented Constraint Satisfaction for [Kwaiter et al. 97] G. Kwaiter, V. Gaildrat, R.
Hierarchical Declarative Scene Modeling. Caubet. DEM²ONS: A High Level Declarative
WSCG'99, Plzen, Czech Republic, February 2- Modeller for 3D Graphics Applications. In
12, 1999. Proceedings of the International Conference
on Imaging Science Systems and Technology,
[Charman 93] P. Charman. Solving Space CISST’97, pp 149-154, Las Vegas, June 30-
Planning Problems using Constraint July 3, 1997.
Technology. Technical report CS 57/93,
Institute of Cybernetics - Estonian Academy [Masui 92] T. Masui. Graphic Object Layout
of Sciences, 1993. with Interactive Genetic Algorithms.
Proceedings of the 1992 IEEE Workshop on
[Charman 95] P. Charman. Gestion de contraintes Visual Languages, pp 74-80, September 1992.
géométriques pour l'aide à l'aménagement
spatial. Thèse de doctorat. Ecole Nationale des [Ruchaud et al. 02] W. Ruchaud, D. Plemenos.
Ponts et Chaussées. Novembre 1995. MultiFormes: a declarative modeller as a 3D
scene sketching tool. International Conference
[Donikian et al. 93] S. Donikian, G. Hégron. A ICCVG'2002, Zakopane (Poland), September
Declarative Design Method for 3D Scene 25-29, 2002.
Sketch Modeling. In Eurographics'93, Vol.12
(33), pp 223-236, 1993. [Vries et al. 00] B. de Vries, A.J. Jessurun,
R.H.M.C Kelleners. Using 3D geometric
[Fonseca et al. 95] C.M. Fonseca, P.J. Fleming. constraints in architectural design support
An Overview of Evolutionary Algorithms in systems. WSCG'00, 2000.
Multiobjective Optimization. Evolutionary
Computation 3, 1 (Spring), 1-16. 1995. [Vassilas et al. 02] N. Vassilas, G. Miaoulis, D.
Chronopoulos, E. Konstantinidis, I. Ravani, D.
[Goldberg 89] D.E. Goldberg. Genetic algorithms Makris, D. Plemenos. MultiCAD-GA: A
for search, optimization, and machine System for the Design of 3D Forms Based on
learning. Addison-Wesley, Reading, Genetic Algorithms and Human Evaluation.
Massachusetts, 1989. SETN 2002, pp 203-214, 2002.
[Holland 92] J.H. Holland. Adaptation in Natural [Xu et al. 02] K. Xu, J. Stewart, E. Fiume.
and Artificial Systems. An Introductory Constraint-based Automatic Placement for
Analysis with Applications to Biology, Scene Composition, Graphics Interface '02,
Control and Artificial Intelligence (Second May 2002.
ed.). MIT Press, Cambridge, Massachusetts,
1992.