VeTaL Posted September 25, 2010 Share Posted September 25, 2010 After looking at CityEngine, i got an idea, that it would be nice to make something similar for Leadwerks So, i decided to start with simple Village generator: i extend standard rode, so no it have some additional parameters: 1) By default, generator is disabled, its enabling by checking "Enabled" flag 2) "Seed" is just a seed for random generation. If you need exact position of each model after each restart, you may use the same seed, and buildings would be guaranteed generates on the place you see. If you need to change position after ever restart (some random-generations), you may just generate new seed number, and models would be generated in new positions every time. 3) "Density" is density: the higher variable - the more tries to position new buildings. 4) "Distance" is distance to the road, this is simple 5) "Models" is just a list of models, that you want to generate: it can be houses, trees, whatever you want. also, tested with racing demo - looking very nice. TODO list: - add "distance" and "density" to each model or to list of models. In this way user'll be able to generate something like "i want field1, field2 and field3 be randomly generated near the road, i want house1 and house2 to be randomly generated after the fields and i want tree1, tree2, tree3 and tree4 to be generated right after houses"... this would allow user to create villages very fast. Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Michael Betke Posted September 25, 2010 Share Posted September 25, 2010 Haha thats great. Now you need some small connecting paths to the main road. I have another idea about auto-distribution. as soon as i have time I'll PM you about. Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Laurens Posted September 25, 2010 Share Posted September 25, 2010 Thats really cool Vetal, can't wait to see how this develops Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 26, 2010 Share Posted September 26, 2010 its really amazing what you can do if the knowledge and creativity. Looks really cool Vetal. Quote Link to comment Share on other sites More sharing options...
Raul Posted September 26, 2010 Share Posted September 26, 2010 It's interesting. GJ Quote i5 2.7Ghz, GTS 450, 8GB Ram, Win7 x64; Win8 x64 rvlgames.com - my games RVL Games Facebook Page, YouTube Channel Blitzmax Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted September 27, 2010 Share Posted September 27, 2010 I am going to assume, you don't have collisions on those models? IF so, thats pretty cool. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD Link to comment Share on other sites More sharing options...
VeTaL Posted September 28, 2010 Author Share Posted September 28, 2010 //I am going to assume, you don't have collisions on those models? Of course, they are Thanks, guys, for replies Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Ending Credits Posted September 29, 2010 Share Posted September 29, 2010 //I am going to assume, you don't have collisions on those models? Of course, they are Thanks, guys, for replies I think he means "is there's something built in so that the models won't intersect each other". Quote AMD Phenom 9850 (X4 2.5GHz) | 1066MHz CL5 GEIL Black Dragon (800MHz) | Powercolor ATI 4870 1GB | DFI 790FXB-M2RSH | 24" 1920x1200 | Windows Vista 64-bit Ultimate Link to comment Share on other sites More sharing options...
VeTaL Posted September 29, 2010 Author Share Posted September 29, 2010 After model generation, its checked by bboxes if this place is free, so models would never stuck in each other. Moreover, there is also height check: it takes 4 down points of bbox and checks their height, so models would never fly in space. And finally, there is collision with all boxes, so player cant go through buildings. Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Pancakes Posted September 30, 2010 Share Posted September 30, 2010 It'd be neat if LE3 had this built in Quote Core I5 2.67 / 16GB RAM / GTX 670 Zbrush/ Blender / Photoshop CS6 / Renoise / Genetica / Leadwerks 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.