Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Next Article in Journal
Methods and Challenges in Shot Boundary Detection: A Review
Next Article in Special Issue
A Survey of Viewpoint Selection Methods for Polygonal Models
Previous Article in Journal
A Feature Extraction Method Using Improved Multi-Scale Entropy for Rolling Bearing Fault Diagnosis
Previous Article in Special Issue
IBVis: Interactive Visual Analytics for Information Bottleneck Based Trajectory Clustering
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Viewpoint-Driven Simplification of Plant and Tree Foliage

Institute of New Image Technologies, Universitat Jaume I, Castellón E-12071, Spain
*
Author to whom correspondence should be addressed.
Entropy 2018, 20(4), 213; https://doi.org/10.3390/e20040213
Submission received: 17 January 2018 / Revised: 16 March 2018 / Accepted: 16 March 2018 / Published: 21 March 2018
(This article belongs to the Special Issue Information Theory Application in Visualization)

Abstract

:
Plants and trees are an essential part of outdoor scenes. They are represented by such a vast number of polygons that performing real-time visualization is still a problem in spite of the advantages of the hardware. Some methods have appeared to solve this drawback based on point- or image-based rendering. However, geometry representation is required in some interactive applications. This work presents a simplification method that deals with the geometry of the foliage, reducing the number of primitives that represent these objects and making their interactive visualization possible. It is based on an image-based simplification that establishes an order of leaf pruning and reduces the complexity of the canopies of trees and plants. The proposed simplification method is viewpoint-driven and uses the mutual information in order to choose the leaf to prune. Moreover, this simplification method avoids the pruned appearance of the tree that is usually produced when a foliage representation is formed by a reduced number of leaves. The error introduced every time a leaf is pruned is compensated for if the size of the nearest leaf is altered to preserve the leafy appearance of the foliage. Results demonstrate the good quality and time performance of the presented work.

Graphical Abstract

1. Introduction

Outdoor scenes are very common in many interactive applications, such as video games or virtual reality walk-throughs. Vegetation is an essential part of these environments, producing a lack of realism if some plants do not appear in the scenes. Tree and plant modeling has been widely researched, and different techniques have appeared in the literature to represent these objects. However, real-time visualization of forest or environments with vegetation is still a problem in spite of the current development of the graphics hardware. The main reason for this is that tree models are formed by such a vast number of polygons that interactive visualization of scenes with vegetation is practically impossible.
The methods that have appeared to perform their real-time visualization can be mainly classified into two groups: image-based and geometry-based rendering. The methods in the first group, image-based rendering, change the geometry of the plant by an image that represents it. The advantage of these methods is that visualization time is drastically reduced compared to geometry rendering. However, the lack of realism is remarkable when the camera approaches the object. The other group in the classification, the geometry-based rendering, can be divided in turn into two groups: point-based rendering and rendering based on polygons. The first group represents the leaves by points or even lines when they are situated far from the viewer. The polygon-based rendering allows a realistic visualization even when the camera is really close to the plant. Some applications perform this rendering method because the detail of the leaves in the foliage is required. Its main drawback is the vast amount of polygons, which delays the interactive visualization if an optimization technique is not applied.
Multiresolution modeling [1,2] has been successfully presented as a solution to the problem of efficient manipulation of highly detailed polygonal surfaces. Discrete multiresolution modeling consists of representing an object by means of multiple approximations or levels of detail (LoDs) where each approximation or LoD represents the original object using a different number of polygons. Interactive applications manage this set of LoDs and change the approximation to be rendered in real time taking into account some parameters, such as the distance to the viewer or the amount of pixels the object occupies in the final image. Game engines, such as Unity 3D [3], allow game designers to use this solution by including a component called LOD Groupwhere different approximations of the same object can be uploaded (LOD1, LOD2, etc.), but only one of them will be rendered in the interactive application, depending on the established conditions. The distance to the camera is the most used criterion to change the rendered LoD.
Simplification methods deal with the task of reducing the amount of geometry in the meshes, without a drastic loss of appearance [4]. They allow us to generate the different LoDs that are necessary to create the set of approximations that compound a discrete multiresolution model [1,2]. Generally, these simplification techniques have been addressed to work with general continuous meshes. The trunks meet this type of representation. However, the green part of the plants and the foliage of the trees are not represented by these kinds of meshes. They are formed by independent polygons where the image of the leaf is textured on them. It has been demonstrated that general simplification methods do not properly work with isolated polygons [5]. These methods generally eliminate polygons, so that the appearance of the crown after an automatic process of simplification is that it has been pruned. The number of leaves is less than before, so the tree appears less leafy.
Some simplification methods specially addressed to this part of the plants have appeared in the literature, such as the one presented by Remolar et al. [6]. The authors propose the leaf collapse as a simplification operation: two leaves are transformed into a single one, so that the area of the new leaf is similar to the area initially formed by the two leaves. Other works, such as presented by Zhang and Blaise [7], deal with the same collapse operation; changing the criteria, they select the leaves to be collapsed by some measurements of similarity, such as the distance and diameter of the leaf.
Performing stochastic pruning is another way to obtain simplified approximations of the foliage, such as the works presented by Cook et al. [8,9]. In their work, some elements are pruned (i.e., eliminated), and the remaining elements are altered to preserve the overall appearance of the scene. The elements that are pruned are randomly chosen.
This paper presents a simplification method addressed to the foliage of the plants that is driven by the visual appearance. A viewpoint-based simplification method that manages an information-theoretic measure called viewpoint mutual information (VMI) [10] has been adapted to the geometric simplification of the sparse part of the plants. In our work, a set of cameras have been uniformly distributed around the foliage, and the simplification of every leaf is evaluated, checking the introduced error in every one of the 20 images obtained from the different cameras. Removing the leaves that introduce the lowest error makes it possible to increase the degree of simplification in hidden interiors because they do not have visual impact. This allows us to obtain a better preservation of the visible parts of the model. Another important feature of our algorithm is that the size of some remaining leaves is altered to preserve the leafy appearance of the representation of the tree canopy. Experimental results show that our method yields better visual performance, comparing the results with those produced by applying the method presented in [6].
This article is organized as follows. In Section 2, we survey the previous work of geometric simplification that deals with plants and trees, stressing the methods that use basic information-theoretic measures. Section 3 presents the metric used to choose the leaf that introduces the lowest error. Then, Section 4 analyses the presented simplification scheme. The results are shown and evaluated in Section 5, and finally, Section 6 exposes the conclusions of the work and some proposed future lines of research.

2. Related Work

This section reviews the methods that have appeared to reduce the complexity of the sparse component of the trees and plants. Although some representative works are based on points [5,11,12] or based on images [13,14,15], we will review those that are based on polygons, which is the primitive we use in our simplification method. Simplification methods that use the mutual information as a criterion to reduce the polygonal complexity are also reviewed in this section.

2.1. Simplification Methods of Tree Models

Among the most important works that can diminish the number of leaves in a crown while maintaining its appearance are those that make an iterative leaf collapse process stand out.
In 2002, Remolar et al. [6] proposed the first method for foliage simplification that deals with polygons, the foliage simplification algorithm (FSA). Two leaves disappear and are replaced by a new one that preserves an area similar to the original ones, maintaining the visual effect of the foliage. The method uses an error function to determine which pair of leaves is collapsed, taking the Hausdorff distance between two leaves and their planarity into account. One year later, Zhang et al. [7] presented a new algorithm, progressive leaves union (PLU), which enhances the cost of FSA by refining the error function with additional criteria. They also take the Hausdorff distance into account, but considering that the choice of the pair of leaves to collapse is reduced to leaves that have been collapsed with less than two different leaves (close in position and similar in shape). Neither FSA nor PLU can deal with quadrilaterally-shaped leaves. Based on PLU, Zhang et al. [16] propose a novel method, hierarchical union of organs (HUO). The method includes triangular leaves and introduces a hierarchy into simplification by making use of the fact that the leaves in a crown are constructed by instantiating a phyllotaxy cluster sample with different transformations. In 2009, Deng et al. [17] presented two different algorithms based on HUO, one for broad leaves represented by quadrilaterals and one for thin leaves represented by lines. They introduce leaf density to adapt compression to the local distribution of leaves, so that more visually-relevant details are kept. Two years later, Bao et al. [18] proposed a new leaf modeling method that uses the texture to simplify triangular mesh models of leaves.
Other works that have also appeared try to reduce the foliage by performing pruning operations. Based on stochastic pruning, Cook et al. [8,9] proposed a stochastic simplification of leaves with random removal of leaves. The geometry is reduced down to a certain fraction. Next, the remaining geometry is scaled so that the total area of rendered surfaces is equal to the original area. In 2011, Neubert et al. [19] presented an optimized pruning algorithm, improving upon previous techniques by applying model-specific geometry reduction and optimized scaling, as well as view-optimized pruning. They introduced precision and recall (PR) as a measure of quality for rendering complex geometry with pruning. This measure does not consider pixel colors, but the right pixels of a rendered object are set.
View-dependent representation techniques take into account the distance between tree models and viewpoints. These methods diminish the number of leaves in a crown in a non-uniform way, eliminating more leaves in the less visible parts of the tree than in the more visible areas.
In 2011, Gumbau et al. [20] presented a foliage pruning method for real-time vegetation rendering based on stochastic pruning of needless leaves for a given level of detail (LoD). In order to build the LoD scheme, a stochastic pruning method is applied in a pre-process; LoD tree model foliage is divided into a cloud of cells; and each cell’s visibility is computed from a set of external viewpoints surrounding the foliage. Following a camera-dependent criterion, the less visible parts of the foliage are detected in real time. The appropriate resolution of the foliage is calculated taking into account both the distance of the tree to the observer, as well as the visibility of the leaves.
Lindstrom and Turk [21] address the problem of visual similarity by developing a purely image-based metric. They determine the cost of an edge collapse operation by rendering the model from several viewpoints. The algorithm compares the rendered images to the original ones and adds the mean-square error in luminance across all the pixels of all the images. Then, all edges are sorted by the total error incurred in the images, and after that, the edge collapse that produces the least error is chosen. Its main disadvantage is the high temporal cost. In 2002, Zhang and Turk [22] proposed an algorithm that defines a visibility function between the surfaces of a model and a surrounding sphere of up to 258 cameras. A table of visibility between the camera positions and surface triangles is computed, obtaining for each triangle a measure of its visibility. In order to guide the simplification process, this visibility measure is combined with the quadric error measure introduced by Garland and Heckbert [23]. The visibility map calculation is a very time-consuming process, so this method has a high cost.
The simplification techniques developed by Lee et al. [24] and Lee and Kuo [25] are based on pixel-based metrics. They do not consider the tree model leaf density. To solve this problem, in 2009, Lee et al. [26] performed a simplification technique based on the tree leaf density of rendered images viewed from multiple angles in which the simplification process preserves different levels of densities on all partitions of a tree model.

2.2. Simplification Methods Based on Mutual Information

In many works, information entropy has been studied to measure the correlation between a set of viewpoints and the visibility of the objects, as can be shown in Viola et al. [27] and Feixas et al. [28]. They suggest that the variation on entropy has a close relationship with the model silhouette during the simplification process. Based on the measures proposed in viewpoint entropy by Vázquez et al. [29,30] and the viewpoint Kullback–Leibler distance introduced in [31], Castelló et al. [10] proposed a viewpoint-based simplification approach for polygonal meshes driven by an information-theoretic measure, viewpoint mutual information (VMI). This metric measures the correlation between a viewpoint and the set of polygons of the object or scene. The algorithm applies the best half-edge collapse as a decimation criterion and uses the variation in mutual information to measure the collapse error as a new simplification error metric. VMI decreases the visual error more for simplified meshes than viewpoint entropy, since it is able to maintain the silhouette better, and achieves the best results in visual similarity because it is able to remove all the invisible inner regions. VMI has been used to compute the best camera positions in volume rendering and polygonal meshes.
The works previously analyzed are related to the simplification of general meshes. However, a viewpoint-driven foliage simplification algorithm based on an information theoretic measure was proposed by Zhang [32] and Zhu et al. [33] that deals with the foliage of the plants. They reshape complex leaves as quadrilaterals. Then, the leaves are separated into clouds of cells for rapidly finding the best leaf pair to simplify. Two information-theoretic measures are evaluated in the simplification algorithm: mutual information and leaf visibility from a set of viewpoints. The simplification process consists of leaf-collapse operations, in which two leaves disappear and a new one appears based on the area maximum.

3. Viewpoint-Based Error Metric Using MI

The metric used to simplify the foliage of the plants in the presented foliage simplification method is based on the information-theoretic measure called viewpoint mutual information (VMI). The authors use mutual information (MI) in [34] as a shape descriptor for object recognition, which is suitable for capturing the shape variation. Moreover, works presented in [27,28] introduced VMI to select the best views, also demonstrating that the VMI depends on the shape of the object and not on the resolution of the mesh. Let V be a set of viewpoints and O the set of polygons of an object. Viewpoints will be indexed by v and polygons by o. Viewpoint entropy, based on Shannon entropy, has been defined [29] from the relative area of the polygons projected over the sphere of directions centered at viewpoint v.
The marginal probability distribution of V is given by p ( v ) = 1 / N v , where N v is the number of viewpoints. That is, the same probability is assigned to each viewpoint, although other distributions could be used. Let a o be the area of the polygon o projected over the sphere, N O be the number of polygons of the object and a t = i = 0 N O a i the total area of the projected polygons over the sphere. The conditional probability p ( o | v ) = a o / a t is defined by the normalized projected area of polygon o over the sphere of directions centered at viewpoint v. Finally, the marginal probability distribution of O is given by p ( o ) = v V p ( v ) p ( o | v ) = ( 1 / N v ) v V p ( o | v ) . Finally, VMI is defined according to Equation (1), which represents the degree of correlation between the viewpoint v and the set of polygons O.
I ( v ; O ) = o 0 p ( o | v ) log p ( o | v ) p ( o )
According to [27,28], the difference shown in Equation (2) quantifies for a given viewpoint v the variation in the shape of that polygonal object O to O , viewed from that point of view.
I ( v ; O ) I ( v ; O )
The work presented by [10] evaluates every simplification step that changes a polygonal object O to O performing edge collapse in the geometry. The error associated with every one of these collapse operations C e is defined by the sum of variations in VMI for all viewpoints (Equation (3)).
C e = v V I ( v ; O ) I ( v ; O )
In this work, this idea is applied to measure the variation of the shape of the foliage F, not composed by continuous meshes. As in [10], a set of viewpoints V has been considered in order to cover the object from different views. The distribution of the cameras around the foliage has been performed taking into account that VMI is sensitive to the distance of the object. In our case, the considered object is the foliage of a plant, so a simplification operation involves the elimination or removal of a leaf. Taking these facts into account, the error introduced by a leaf removal L p r u is defined by the sum of the VMI variations for all the viewpoints v in V:
L p r u ( l ) = v V I ( v ; F ) I ( v ; F )
where F represents the foliage without the visualization of the leaf l.
Moreover, following the method employed in [10], the technique for computing viewpoint entropy based on projected areas is the hybrid SW-HW histogram. This technique takes advantage of the PCI Express bus symmetry. A different color is assigned to each leaf, composed by a combination of polygons where the image of the leaf is textured, and the whole object is sent for rendering. Next, a buffer read operation is performed, and then, this buffer is analyzed pixel-by-pixel to retrieve data about its color. Using RGBa color encoding with a byte value for each channel, up to 256 4 polygons can be calculated with only one single rendering pass. We used this technique during the simplification process.
Another concept to consider is the resolution of the images generated by every camera that have to be compared. The method implemented for estimating the error is based on the projected areas of polygons. Depending on the orientation of the leaves in the foliage, problems can appear when this error is obtained, especially in the case of tiny or long and thin triangles whose projections do not cover a single pixel. One possible solution to reduce these errors is to increase the image resolution, but this obviously penalizes the performance of our simplification method. According to the work [10], the optimum resolution of the images used to determine the error is 256 × 256 . The authors in this work demonstrate that this resolution is the best option to balance time computing and shape preserving.

4. Simplification Scheme

Trees and plants can be easily divided in two different parts: the solid component, i.e., the trunk and the branches, and the sparse component, the foliage or leaves. In order to offer a whole simplification of the plant, every part is separately analyzed and simplified. Figure 1 illustrates the process followed to achieve a coarser LoD.
The trunk is formed by a set of polygonal meshes. Work presented in [10] performs the viewpoint-based simplification of general meshes driven by the VMI, so this method has been applied to this part of the plant. Branch simplification, as is shown in the bottom of Figure 1, illustrates a result obtained applying this method.
Foliage representation is different depending on the tool that has been used to generate the plant. Xfrog [35] and [36], two of the most popular software programs that deal with plant modeling, usually represent the leaves using a quad formed by two triangles or a combination of them. Some of these polygon combinations can be appreciated in Figure 2. This is a very common representation in trees that have been designed for interactive applications, such as video games.
In order to obtain an LoD of the foliage composed by a lower number of leaves, the simplification operation has to be performed iteratively until the desired number of leaves is achieved. In the case of the presented method, the simplification operation is the leaf removal.

4.1. Leaf Removal Operation

The simplification process is based on the leaf removal operation. As well as the work presented in [9], this operation implies eliminating a whole leaf of the foliage. In every iteration, our simplification method evaluates the associated cost to prune every one of the leaves in the foliage, comparing the obtained images with the images of the original plant and associating a cost to every pruning L p r u (Equation (4)). The leaf firstly removed of the representation will be the one that introduces the lowest deviation in the canopy.
Once the leaf that introduces the lowest cost is determined, the next step is to maintain the leafy appearance of the foliage. Then, its nearest leaf is located and its size scaled in order to cover an area that avoids appreciating the gap produced by the pruning in the final approximation. This nearest leaf is the one that makes the geometric distance between the center of the combinations of polygons that represent the leaves lowest. The developed method takes into account the size of the leaf to prune and the deviation L p r u that is going to introduce to the final representation after its removal. Let l be the leaf to be pruned and l its nearest leaf. Let S i z e ( l ) be a function that calculates the size of the leaf that it takes as input. Then, the size of the nearest leaf is altered following the equation shown in Equation (5). Figure 3 illustrates this process in order to for better comprehension.
S i z e ( l ) = S i z e ( l ) + S i z e ( l ) L p r u ( l ) , L p r u ( l ) [ 0 , 1 ]
Leaves that introduce a very low error in the representation after their removal hardly vary relative to the size of the leaves nearest to them. By contrast, leaves that produce a high error after the disappearance of the visualization, compensate for this change of appearance by increasing the size of the nearest leaves in order to cover the opening that they have produced. In this case, the nearest leaf is resized to cover its own area and that of the pruned leaf.

4.2. Evaluating the Number of Viewpoints

The number of viewpoints condition the good quality of the results. However, it has to be considered that the more cameras are used, the higher the computing time to extract the LoD is. Works related to view-dependent simplification [10,21] demonstrate that in order to get a trade-off between accuracy and cost, it is appropriate to perform the measurements with 20 regularly-distributed viewpoints and rendered 256 × 256 resolution images. In this work, a study has been performed to analyze the number of cameras that allows us to obtain a better simplification. The foliage used in the test is shown in Figure 1, composed of 20,376 leaves (40,700 triangles).
Different configurations have been tested in the experiment. First of all, 20 cameras were distributed on the vertices of a dodecahedron of one unit of radius that surrounds the object (shown in Figure 4a). Next, 12 view-points have been situated around the foliage following the vertices of a icosahedron (Figure 4b), and finally, a hybrid configuration of the cameras has also been tested, which we have named variable number of cameras (VNC). This last configuration takes into account the percentage of simplification that is going to be performed, establishing four ranges in the method. Simplifications in the range of [0%, 10%], 20 cameras, [11%, 30%] of simplification, 12 view-points, the range between [31%, 50%] 8 cameras, and finally, until 90% (6) cameras are located around the object.
To measure the quality of the simplified models, another 12 different viewpoints have been distributed around every representation. These cameras are distributed following the points of the icosahedron shown in Figure 4b. The VMI error was calculated using perspective projection, a 60 degrees field of view, a 3.0 radius for the viewpoint sphere and a 512 × 512 image resolution with flat shading. This fact makes the evaluation of the introduced error more exact.
Results are shown in Figure 5.
After testing the presented simplification method, the configuration of the 20 cameras has been found to be fairly satisfactory. The simplification process is an off-line process that is not performed in real time. The most wanted requirement in this kind of process is the quality of the results, regardless of the time required to get them. Figure 5a shows how the error of the resulting LoDs obtained by evaluating every leaf removal with 20 cameras is more similar to the original representation than that obtained with a lower number of cameras. Even when the obtained LoD has 90% less leaves than the original foliage, the error between both representations is about 5%. This process took 5000 s to complete, but the quality of the results are worth it.

4.3. Simplification Algorithm

The data structure that has been designed to perform the simplification of the foliage is shown next. The main one is the F o l i a g e , which is compounded by a list of leaves. The data of every leaf are stored in the structure L e a f , where the edges that compound the leaf are referenced. Furthermore, the central point of the area that they occupy is stored in c e n t r a l _ p o i n t , and the size of the leaf is stored in a r e a _ s i z e . A list of all the edges of the foliage is stored in the structure E d g e , where each one of the edges keeps the vertices that determine them. Finally, the data structure V e r t i c e s stores the geometric and the mapping coordinates.
		Struct Edge {
		Vertices[2] vertices;
		}
		Struct Vertices {
		float[3] vertex;
		float[2] uv;
		}
		Struct Leaf {
		Edge *edges;
		float[3] central_point;
		float area_size;
		}
		Struct Foliage {
		Leaf *leaves;
		}
		
The pseudocode of the implementation is shown in Algorithm 1. Due to the nature of the mesh that forms the foliage, the leaf removal cost has to be calculated every time a leaf removal is proposed. A removed leaf can modify the visibility of some leaves situated in different areas of the foliage, not only the nearest ones. Then, the VMI has to be computed every time a pruning is evaluated in order to obtain the cost of that simplification operation.
Let L e a v e s _ T o _ R e m a i n be the number of leaves that have to finally form the simplified representation of the foliage and n u m b e r _ o f _ l e a v e s be a function that counts the number of leaves in the current representation. Every iteration of the algorithm will eliminate the leaf that introduces the lowest cost and will increase the size of the nearest one. Every time a leaf pruning is evaluated, the cost of this operation is checked in order to find the leaf that minimizes it. Then, this simulation is reversed to continue checking the rest of leaves in the representation. When all the leaves have been processed, the one with this minimum cost is pruned and its nearest leaf scaled. This process is repeated until the number of leaves that has to form the simplified LoD ( L e a v e s _ T o _ R e m a i n ) is achieved.
Algorithm 1: Process of leaf simplification.
1   / / Initialize the number of cameras
2   n = 20
3   / / Compute the initial VMI for the foliage F
4  Compute I ( v , F ) where v = { 1 , , n }
5   / / Initialize the set of leaves to evaluate
6   F = F
7   / / Repeat the process until the number of leaves is the established number
8  while ( n u m b e r _ o f _ l e a v e s ( F ) ) > L e a v e s _ T o _ R e m a i n ) do
9    m i n _ c o s t = 1000.0 // Initialize the cost
10   for ( l F )
11    remove l to obtain F
12    Compute I ( v , F ) where v = { 1 , , n }
13     L p r u ( l ) = I ( v , F ) I ( v , F )
14    if m i n _ c o s t > L p r u ( l ) then
15      l e a f _ t o _ p r u n e = l
16      m i n _ c o s t = L p r u ( l )
17    end if
18    Undo removal
19   end for
20    / / Remove l e a f _ t o _ p r u n e
21    F = F ( l e a f _ t o _ p r u n e )
22    / / Obtain the n e a r e s t _ l e a f of l e a f _ t o _ p r u n e
23    n e a r e s t _ l e a f = N e a r _ L e a f ( F , l e a f _ t o _ p r u n e )
24    / / Scale the size of n e a r e s t _ l e a f according to Equation (5)
25    n e a r e s t _ l e a f . a r e a _ s i z e = R e s i z e ( n e a r e s t _ l e a f , l , m i n _ c o s t )
26  end while

4.4. Algorithm Complexity

The total temporal cost of our algorithm depends on the number of viewpoints V, the number of pixels (image resolution) P and the number of leaves L in the representation. Calculating VMI implies a cost of O ( P V ) . The cost of obtaining a coarser representation depends on the final number of leaves that remain. The pruning operation only has a cost of O ( P V L ) . Finally, if we consider the worst case, that is all leaves are removed, the total complexity is O ( P V L 2 ) .

5. Results

Some experiments have been carried out in order to test the presented simplification scheme. They have been performed on a computer with an Intel Core i7-6700k 4.00 GHz with 16 GB RAM and NVIDIA GeForce CTX 1080 graphics card.
All the geometric models of plants that have been used in the tests have been modeled using the commercial modeling tool Xfrog [35]. Our method has been implemented taking advantage of the graphics hardware, so we have used for geometric visualization standard OpenGL running on current GPUs. To render our images, vertex buffer objects have been used, and for the off-screen rendering, the OpenGL frame buffer object extension has been employed.

5.1. Comparing the Simplified Approximations

In order to evaluate the good quality of the results, some plants have been simplified and compared with the approximations obtained by applying the method presented by [6], called FSA (foliage simplification algorithm) by the authors, and an implementation of the stochastic method (SM) presented by Cook and Halstead [8]. The chosen models are shown in Figure 6.
Visual comparisons are shown in Figure 7 and Figure 8. Three levels of detail have been computed for every one of the plant models used in the test: the ones that approximately maintain 50 % , 25 % and 10 % of the leaves. All the involved data are detailed in Table 1. The data related to the presented method are identified as VDS (viewpoint-driven simplification). First of all, the geometric details of every one of the plants that have been used in the test are described in it, adding the number of leaves of the resulting approximations.
Next, the quality of the simplified models has been measured using the mutual information (VMI). In this case, the final results obtained by both methods have been compared with the original models, taking the images from the 12 cameras situated around the approximations and original models. The percentage of introduced error is shown in the table for each one of the methods. It can be observed that the approximations obtained by the VDS method introduce a lower error than obtained by FSA and by SM. In fact, the approximations obtained by the SM method introduce the highest error because of its stochastic performance.
Finally, the computing time is also shown for every simplification. As can be seen, the cost of the presented method is quite higher than the time employed to obtain the levels of detail with the FSA and with the SM. View-dependent methods have in general a high temporal cost, but as was previously said, This is not really a problem because the calculations are performed in a pre-process [21]. This high cost is compensated by the good quality of the obtained results, as can be seen in the figures.

5.2. Evaluating the Simplified Approximations

Apart from the plant models that have been used to compare the VDS method, others have been simplified and the quality of the obtained results also evaluated using the same error measure, the VMI. Visual results are shown in Figure 9, Figure 10, Figure 11, Figure 12 and Figure 13. Three levels of detail have been obtained for every one of these plant models, the ones that approximately maintain 25 % , 10 % and 1 % of the leaves. However, only the two last LoDs are included in the paper to evaluate the good visual quality. All the data are detailed in Table 2. The geometric details of every one of the plants that have been used in the test are described in it, adding the number of leaves of the resulting approximations. The leaves of the Sorbus aucuparia tree are composed by a combination of polygons, not only two triangles forming a quad (Figure 2b). Results obtained by simplifying this foliage model demonstrate the good performance of the method with models that use this kind of representation for the leaves. Finally, the percentage of VMI deviation against the original model is shown for every one of the computed levels of detail. Finally, the information of the computing time is also shown in this table for every simplification.
Finally, a proposal of the composition of the different levels of detail shown in Figure 7 is illustrated in Figure 14. The distance to the camera has conditioned the choice of every approximation. As can be seen in the figure, the reduction of leaves in the representations cannot be appreciated even at the furthest level of detail.

5.3. Simplification Considering Visual Obstacles

The last experiment that has been carried out takes some obstacles into account when the simplification is performed. In order to evaluate the good results in these cases, two different situations have been simulated. Firstly, the simplification method has taken as input the foliage of a tree that is partially hidden by a small fence that surrounds it (Figure 15). In this case, a set of leaves is completely hidden from some of the viewpoints. This makes the error introduced by pruning these leaves be negligible. If the remaining leaves have to be, for instance, 10% of the original representation, these non-visible leaves will be the first to be pruned, meaning that the leaves that remain are distributed in the discernible area of the canopy. Figure 15b shows the distribution of the leaves in a situation where these visual obstacles have been considered. For a better appreciation, the fence in front is rendered transparent.
Other kinds of visual obstacles that have also been tested are the walls situated near the plants. Some parts of the canopy are hidden by them, so leaves located in this area are the first pruned when the simplification is performed. Figure 16 illustrates this situation. As well as the previous example, only 10% of the leaves have been left at this level of detail. Figure 16b shows the back view of the approximation. The walls have been cut in order to appreciate that the leaves in the back area of the foliage have been pruned.

6. Conclusions and Future Work

This paper has presented a simplification method based on viewpoint mutual information that deals with the sparse part of the plants. The geometry that forms the canopy of the trees and plants is reduced by performing a viewpoint-driven simplification. In order to decrease the number of rendered leaves to a determined number, the visibility of every leaf in the canopy is evaluated according to viewpoint mutual information. To perform this evaluation, a set of cameras has been distributed around the foliage to evaluate the visual influence of each leaf pruning. Images obtained from these cameras are compared with the images of the original foliage, taken from the same viewpoints. This makes it possible to assign an error to every potential leaf pruning. The leaf that introduces the lowest error is pruned in every iteration.
The leafy appearance of the plant is preserved by resizing the nearest leaf of the removed one. The new size of this nearest leaf depends on the error introduced by the one that disappears. This resizing is addressed to fill the hole that has left the removed leaf, avoiding the pruning appearance. These processes are performed until the desired number of leaves is achieved. Different experiments have been carried out that demonstrate the good performance of the results, obtaining LoDs composed by a very low number of leaves that still maintain similarity with the original representation.
Combining the presented method with a general simplification scheme applied to the meshes that form the trunks and branches makes it possible to obtain different LoDs of plants and trees that can form a discrete multiresolution model. This set of approximations can be used in real time by video game designers in interactive applications. Real-time rendering can be achieved by changing the rendered representation from one LoD to another according to some criteria, such as the size of the foliage in the final rendering.
As future work, we are currently working on the construction of a continuous multiresolution model from this sequence of leaf removals. The fact that the presented method eliminates one leaf in every iteration makes it possible to store an ordered list of leaves taking the error that is introduced in the approximation into account. Storing this sequence in the GPU, it is easy to reduce or increase in a continuous way the number of leaves required by the visual application.
Another line of research that is being carried out is to obtain a simplification method that takes into account the skeletons to perform the simulation of the wind in the plants. By adding some restrictions to the presented method, such as associating each leaf with a skeleton or branch, this new scheme can be achieved. The presented method does not add any new leaves to the representation, so although some leaves are eliminated, the rest of the remaining leaves can perfectly maintain the link with the initial skeleton and simulate the movement of the wind.

Acknowledgments

This work was supported by the Spanish Ministry of Science and Technology (Project TIN2016-75866-C3-1-R).

Author Contributions

Cristina Gasch, Inmaculada Remolar, Miguel Chover and Cristina Rebollo conceived and designed the experiments; Cristina Gasch and Miguel Chover performed the experiments; Cristina Gasch, Inmaculada Remolar, Miguel Chover and Cristina Rebollo analyzed the data; Inmaculada Remolar and Cristina Rebollo wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ribelles, J.; López, M.A.; Belmonte, O.; Remolar, I.; Chover, M. Multiresolution modeling of arbitrary polygonal surfaces: A characterization. Comput. Graph. 2002, 26, 449. [Google Scholar] [CrossRef]
  2. Heckbert, P.S.; Garland, M. Multiresolution modeling for fast rendering. In Proceedings of the Graphics Interface, Banff, AB, Canada, 18–20 May 1994. [Google Scholar]
  3. Unity 3D. Available online: https://unity3d.com/es (accessed on 2 February 2018).
  4. Luebke, D.P. A developer’s survey of polygonal simplification algorithms. IEEE Comput. Graph. Appl. 2001, 21, 24. [Google Scholar] [CrossRef]
  5. Deussen, O.; Colditz, C.; Stamminger, M.; Drettakis, G. Interactive visualization of complex plant ecosystems. In Proceedings of the IEEE Visualization, Boston, MA, USA, 27 October–1 November 2002. [Google Scholar]
  6. Remolar, I.; Chover, M.; Belmonte, O.; Ribelles, J.; Rebollo, C. Geometric simplification of foliage. In Eurographics 2002 Short Presentations; Eurographics Association: Geneva, Switzerland, 2002. [Google Scholar]
  7. Zhang, X.P.; Blaise, F. Progressive polygon foliage simplification. In Proceedings of the International Symposium on Plant Growth Modeling, Simulation, Visualization and Their Applications 2003-PMA’03, Beijing, China, 13–16 October 2003; Hu, B., Jaeger, M., Eds.; Tsinghua University Press: Beijing, China, 2003. [Google Scholar]
  8. Cook, R.L.; Halstead, J. Stochastic pruning. In Proceedings of the Eurographics Workshop on Natural Phenomena, Dublin, Ireland, 1 April 2005. [Google Scholar]
  9. Cook, R.L.; Halstead, J.; Planck, M.; Ryu, D. Stochastic simplification of aggregate detail. ACM Trans. Graph. 2007, 26, 79. [Google Scholar] [CrossRef]
  10. Castelló, P.; Sbert, M.; Chover, M.; Feixas, M. Viewpoint-driven simplification using mutual information. Comput. Graph. 2008, 32, 451. [Google Scholar] [CrossRef]
  11. Stamminger, M.; Drettakis, G. Interactive sampling and rendering for complex and procedural geometry. In Proceedings of the Eurographics Workshop on Rendering, London, UK, 25–27 June 2001; Myskowski, K., Gortler, S., Eds.; Springer-Verlag: Berlin, Germany, 2001. [Google Scholar]
  12. Gilet, G.; Meyer, A.; Neyret, F. Point-based rendering of trees. In Proceedings of the First Eurographics Workshop on Natural Phenomena; Galin, E., Poulin, P., Eds.; The Eurographics Association: Geneva, Switzerland, 2005. [Google Scholar]
  13. Jakulin, A. Interactive vegetation rendering with slicing and blending. In Eurographics 2000 Short Papers; De Sousa, A., Torres, J.C., Eds.; The Eurographics Association: Geneva, Switzerland, 2000. [Google Scholar]
  14. Fuhrmann, A.L.; Umlauf, E.; Mantler, S. Extreme model simplification for forest rendering. In Proceedings of the First Eurographics Conference on Natural Phenomena, Dublin, Ireland, 30 August 2005; The Eurographics Association: Geneva, Switzerland, 2005. [Google Scholar]
  15. Decaudin, P.; Neyret, F. Volumetric billboards. Comput. Graph. Forum. 2009, 28, 2079. [Google Scholar] [CrossRef]
  16. Zhang, X.P.; Blaise, F.; Jaeger, M. Multiresolution plant models with complex organs. In Proceedings of the 2006 ACM International Conference on Virtual Reality Continuum and Its Applications, Hong Kong, China, 14–17 June 2006; ACM Press/Addison-Wesley Publishing Co.: New York, NY, USA, 2006. [Google Scholar]
  17. Deng, Q.; Zhang, X.; Yang, G.; Jaeger, M. Multiresolution foliage for forest rendering. Comput. Anim. Virtual Worlds 2009, 22, 1. [Google Scholar] [CrossRef]
  18. Bao, G.B.; Li, H.J.; Zhang, X.P.; Che, W.J.; Jaeger, M. Realistic real-time rendering for large-scale forest scenes. In Proceedings of the IEEE International Symposium on VR Innovation, Singapore, 19–20 March 2011. [Google Scholar]
  19. Neubert, B.; Pirk, S.; Deussen, O.; Dachsbacher, C. Improved model and view-dependent pruning of large botanical scenes. Comput. Graph. Forum 2011, 30, 1708. [Google Scholar] [CrossRef]
  20. Gumbau, J.; Chover, M.; Remolar, I.; Rebollo, C. View-dependent pruning for real-time rendering of trees. Comput. Graph. 2011, 35, 364. [Google Scholar] [CrossRef]
  21. Lindstrom, P.; Turk, G. Image-driven simplification. ACM Trans. Graph. 2000, 19, 204. [Google Scholar] [CrossRef]
  22. Zhang, E.; Turk, G. Visibility-guided simplification. IEEE Comput. Vis. 2002, 31, 267. [Google Scholar]
  23. Garland, M.; Heckbert, P.S. Surface simplification using quadric error metrics. In Proceedings of the 24th Annual Conference on Computer Graphics and Interactive Techniques, Los Angeles, CA, USA, 3–8 August 1997; ACM Press/Addison-Wesley Publishing Co.: New York, NY, USA, 1997. [Google Scholar]
  24. Lee, J.; Peng, J.; Kuo, J. View-dependent visibility estimation for tree models. In Proceedings of the IEEE International Conference on Multimedia and Expo, Beijing, China, 2–5 July 2007. [Google Scholar]
  25. Lee, J.; Kuo, J. Fast and flexible tree rendering with enhanced visibility estimation. In Proceedings of the Tenth IEEE International Symposium on Multimedia, Berkeley, CA, USA, 15–17 December 2008. [Google Scholar]
  26. Lee, J.; Kuo, J.; Kuo, C. Enhanced 3D tree model simplification and perceptual analysis. In Proceedings of the IEEE International Conference on Multimedia and Expo, New York, NY, USA, 28 June–3 July 2009. [Google Scholar]
  27. Viola, I.; Feixas, M.; Sbert, M.; Meister, E. Importance-driven focus of attention. IEEE Trans. Vis. Comput. Graph. 2006, 5, 933. [Google Scholar] [CrossRef] [PubMed]
  28. Vázquez, P.P.; Feixas, M.; Sbert, M.; González, F. A unified information-theoretic framework for viewpoint selection and mesh saliency. ACM Trans. Appl. Percept. 2009, 6, 1. [Google Scholar]
  29. Vázquez, P.P.; Feixas, M.; Sbert, M.; Heidrich, W. Viewpoint selection using viewpoint entropy. In Proceedings of the Vision Modeling and Visualization Conference, Stuttgart, Germany, 21–23 November 2001; Aka GmbH: Berlin, Germany, 2001. [Google Scholar]
  30. Vázquez, P.P.; Feixas, M.; Sbert, M.; Heidrich, W. Automatic view selection using viewpoint entropy and its application to image-based modelling. Comput. Graph. Forum 2003, 22, 689. [Google Scholar] [CrossRef]
  31. Sbert, M.; Plemenos, D.; Feixas, M.; González, F. Viewpoint quality: Measures and applications. In Proceedings of the Eurographics Workshop on Computational Aesthetics in Graphics, Visualization and Imaging 2005, Girona, Spain, 18–20 May 2005; Neumann, L., Sbert, M., Gooch, B., Purgathofer, W., Eds.; The Eurographics Association: Geneva, Switzerland, 2005. [Google Scholar]
  32. Zhang, S. Foliage simplification based on multi-viewpoints for efficient rendering. J. Softw. 2014, 9, 1655. [Google Scholar] [CrossRef]
  33. Zhu, Q.; Zhang, S.; Zeng, L.; Liu, J. Multi-resolution foliage faithful to the visual and botanic concepts. J. Comput. Theor. Nanosci. 2014, 11, 1007. [Google Scholar] [CrossRef]
  34. Rigau, J.; Feixas, M.; Sbert, M. Shape complexity based on mutual information. In Proceedings of the International Conference on Shape Modeling and Applications, Cambridge, MA, USA, 13–17 June 2005; IEEE Computer Society: Washington, DC, USA, 2005. [Google Scholar]
  35. Xfrog: Xfrog Plants. Available online: http://xfrog.com/category/xfrogplants.html (accessed on 10 January 2018).
  36. Speedtree: 3D Vegetation Modeling and Middleware. Available online: https://store.speedtree.com (accessed on 5 February 2018).
Figure 1. Workflow for obtaining a simplified approximation of a tree, finally formed by 506 polygons. VMI, viewpoint mutual information.
Figure 1. Workflow for obtaining a simplified approximation of a tree, finally formed by 506 polygons. VMI, viewpoint mutual information.
Entropy 20 00213 g001
Figure 2. Example of leaves represented by different polygon combinations. (a) Leaf representation by quads; (b) leaf representation by the combination of polygons.
Figure 2. Example of leaves represented by different polygon combinations. (a) Leaf representation by quads; (b) leaf representation by the combination of polygons.
Entropy 20 00213 g002
Figure 3. Example of resizing a leaf that covers the pruned one (drawn with dashes on the right).
Figure 3. Example of resizing a leaf that covers the pruned one (drawn with dashes on the right).
Entropy 20 00213 g003
Figure 4. Camera positions that have been used in the test. (a) Dodecahedron: 20 vertices; (b) icosahedron: 12 vertices.
Figure 4. Camera positions that have been used in the test. (a) Dodecahedron: 20 vertices; (b) icosahedron: 12 vertices.
Entropy 20 00213 g004
Figure 5. Camera positions that have been used in the test. (a) Error (percentage); (b) Time (measured in seconds). VNC = variable number of cameras.
Figure 5. Camera positions that have been used in the test. (a) Error (percentage); (b) Time (measured in seconds). VNC = variable number of cameras.
Entropy 20 00213 g005
Figure 6. Trees and bushes used in the experiments that compare both methods. (a) English oak: 20,376 leaves; (b) Carya illinoinensis: 8140 leaves.
Figure 6. Trees and bushes used in the experiments that compare both methods. (a) English oak: 20,376 leaves; (b) Carya illinoinensis: 8140 leaves.
Entropy 20 00213 g006
Figure 7. Visual comparison between the methods applied to the model tree shown in Figure 6a: Top. the stochastic simplification method (SM); Middle. FSA simplification; bottom. the VDS results. From left to right: 50%, 25% and 10%.
Figure 7. Visual comparison between the methods applied to the model tree shown in Figure 6a: Top. the stochastic simplification method (SM); Middle. FSA simplification; bottom. the VDS results. From left to right: 50%, 25% and 10%.
Entropy 20 00213 g007
Figure 8. Visual comparison between the methods applied to the model tree shown in Figure 6b: Top. the SM; Middle. FSA simplification; bottom. the VDS results. From left to right: 50%, 25% and 10%.
Figure 8. Visual comparison between the methods applied to the model tree shown in Figure 6b: Top. the SM; Middle. FSA simplification; bottom. the VDS results. From left to right: 50%, 25% and 10%.
Entropy 20 00213 g008
Figure 9. Visual results of the VMI simplification scheme for Betula lenta. From left to right: original model: 16,100 leaves; retaining 10% of the leaves: 1610; and retaining 1%: 161 leaves.
Figure 9. Visual results of the VMI simplification scheme for Betula lenta. From left to right: original model: 16,100 leaves; retaining 10% of the leaves: 1610; and retaining 1%: 161 leaves.
Entropy 20 00213 g009
Figure 10. Visual results of the VDS scheme for Alnus glutinosa. From left to right: original model: 41,155 leaves; retaining 10% of leaves: 4115; and 1%: 411 leaves.
Figure 10. Visual results of the VDS scheme for Alnus glutinosa. From left to right: original model: 41,155 leaves; retaining 10% of leaves: 4115; and 1%: 411 leaves.
Entropy 20 00213 g010
Figure 11. Visual results of the VDS scheme for Betula populifolia. From left to right: original model: 20,280 leaves; retaining 10% of leaves: 2028; and 1%: 202 leaves.
Figure 11. Visual results of the VDS scheme for Betula populifolia. From left to right: original model: 20,280 leaves; retaining 10% of leaves: 2028; and 1%: 202 leaves.
Entropy 20 00213 g011
Figure 12. Visual results of the VDS scheme for Sorbus aucuparia. From left to right: original model: 2760 leaves (49,680 triangles); retaining 10% of leaves: 276; and 1%: 27 leaves.
Figure 12. Visual results of the VDS scheme for Sorbus aucuparia. From left to right: original model: 2760 leaves (49,680 triangles); retaining 10% of leaves: 276; and 1%: 27 leaves.
Entropy 20 00213 g012
Figure 13. Visual results of the VDS scheme for the Acer platanoides. From left to right: original model: 105,688 leaves; retaining 10% of leaves: 10,569; and 1%: 1056 leaves.
Figure 13. Visual results of the VDS scheme for the Acer platanoides. From left to right: original model: 105,688 leaves; retaining 10% of leaves: 10,569; and 1%: 1056 leaves.
Entropy 20 00213 g013
Figure 14. Example of the composition of a scene where different approximations of the same plant are shown (original foliage, 50%, 25% and 10% approximations).
Figure 14. Example of the composition of a scene where different approximations of the same plant are shown (original foliage, 50%, 25% and 10% approximations).
Entropy 20 00213 g014
Figure 15. Simplified approximation of foliage when surrounded by a fence. (a) Level of detail formed by 10% of the leaves; (b) detail of the approximation making transparent the fence in front.
Figure 15. Simplified approximation of foliage when surrounded by a fence. (a) Level of detail formed by 10% of the leaves; (b) detail of the approximation making transparent the fence in front.
Entropy 20 00213 g015
Figure 16. Simplified approximation of a plant when it is situated close to walls. (a) Ninety percent simplified; only 10% of leaves remain; (b) back view. Walls have been cut for a better appreciation.
Figure 16. Simplified approximation of a plant when it is situated close to walls. (a) Ninety percent simplified; only 10% of leaves remain; (b) back view. Walls have been cut for a better appreciation.
Entropy 20 00213 g016
Table 1. Experimental data of the developed test comparing both simplification methods. VDS, viewpoint-driven simplification.
Table 1. Experimental data of the developed test comparing both simplification methods. VDS, viewpoint-driven simplification.
ModelLeavesVMI ErrorTime (s)
OriginalFinalFSAVDSSMFSAVDSSM
English Oak20,37610,17512.013.7119.7598.324010.2781.36
508722.094.4825.26101.644501.1483.64
203545.175.3132.25105.934938.4885.81
Carya illinoinensis8140407032.425.127.5440.13901.2334.08
203564.316.6414.3845.581018.9737.18
81477.8614.6537.4248.231231.2939.92
Table 2. Experimental data evaluating the results of the presented method.
Table 2. Experimental data evaluating the results of the presented method.
ModelOriginalFinalVMI ErrorTime (s)
TrianglesLeavesTrianglesLeaves
Betula lenta32,20016,100805040254.272412.80
322016109.862634.06
32216128.422782.18
Alnus glutinosa82,31041,15520,57610,28810.539950.32
8230411514.5410,301.56
82241135.4710,745.12
Betula populifolia40,56020,28010,140507012.293137.33
4056202819.843350.38
40420239.143432.01
Sorbus aucuparia49,680276012,42069014.12642.52
496827629.88849.12
4862751.40912.41
Acer platanoides211,376105,68852,84426,4229.7514,112.47
21,13810,56913.8614,405.18
2112105637.1514,484.03

Share and Cite

MDPI and ACS Style

Gasch, C.; Remolar, I.; Chover, M.; Rebollo, C. Viewpoint-Driven Simplification of Plant and Tree Foliage. Entropy 2018, 20, 213. https://doi.org/10.3390/e20040213

AMA Style

Gasch C, Remolar I, Chover M, Rebollo C. Viewpoint-Driven Simplification of Plant and Tree Foliage. Entropy. 2018; 20(4):213. https://doi.org/10.3390/e20040213

Chicago/Turabian Style

Gasch, Cristina, Inmaculada Remolar, Miguel Chover, and Cristina Rebollo. 2018. "Viewpoint-Driven Simplification of Plant and Tree Foliage" Entropy 20, no. 4: 213. https://doi.org/10.3390/e20040213

APA Style

Gasch, C., Remolar, I., Chover, M., & Rebollo, C. (2018). Viewpoint-Driven Simplification of Plant and Tree Foliage. Entropy, 20(4), 213. https://doi.org/10.3390/e20040213

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop