vendredi 15 avril 2011

More rules

Many of the neccessarly algorithm are almost working and I can now write some more rules to enhance the modelisation of my buildings. I can :
 - Select polygon edge by edge, comparing with front/back/left/right or N/S/E/W attributes, or even roadAccess/noRoadAccess
 - Split polygons into one or many widths, and get tiles for widows (for example)
 - Extrude edges of a polygon and merge touching polygons

These little algorithms, hard to implement for me and my poor math level, allow a lot of possibilities, as you can see.



Now I've some real troubles of performance, because my L-System generates a large number of meshes, and a very large number of invisible/useless faces. I need both optimise the rendering process and the architecture of my data if I still want to generate whole cities by mass modelisation.

Next step will be to change the scenograph, jMonkey seems not be designed to handle that kind of procedural generation (no good tools to optimize geometries)

Aucun commentaire:

Enregistrer un commentaire