ilar81 Posted August 14, 2011 Share Posted August 14, 2011 How to draw vegetation with random size? There are max height and max width but this parameters no influence.. Quote Link to comment Share on other sites More sharing options...
paramecij Posted August 15, 2011 Share Posted August 15, 2011 You either have to make the models bigger (easy), or modify the shaders to draw them bigger (harder) ... The max height and slope in the editor refers to terrain elevation the vegetation layers starts and stops showing (so you don't have tall trees on top of mountains and below sea level) Quote Link to comment Share on other sites More sharing options...
Josh Posted August 15, 2011 Share Posted August 15, 2011 This is due to the physics system not being able to handle scaled matrices. I found out Bullet and PhysX also both have this limitation. In the future, I will work around this by automatically creating 5-10 pre-scaled physics bodies that are variations of the original and using those...so the vegetation won't be really randomly scaled, it will just have a few pre-set sizes that are randomly chosen. If I use enough presets the outcome will be the same as if they were totally random. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Michael Betke Posted August 15, 2011 Share Posted August 15, 2011 Sounds good Josh. I wonder how Cryengine is doing the scaling internally because it vegetation scaling works nice there. Will this limitation also mean we won't see scaleable objects in LE3? 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...
Josh Posted August 15, 2011 Share Posted August 15, 2011 Crytek has their own physics system, so who knows. For individual entities, scaling will be done by internally recreating different physics shapes to the specified scale. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Michael Betke Posted August 15, 2011 Share Posted August 15, 2011 Okay, cool. 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...
paramecij Posted August 15, 2011 Share Posted August 15, 2011 Crytek has their own physics system, so who knows. For individual entities, scaling will be done by internally recreating different physics shapes to the specified scale. This is rather simple to do even now ( I just re-create the convex-hulls from mesh surfaces on load time based on scale parameter ), but it doesn't allow for true dynamic scaling of physical objects, at best you can switch to the nearest pre-scaled body in chain, which doesn't play nice with an ongoing physical simulation Quote Link to comment Share on other sites More sharing options...
Josh Posted August 16, 2011 Share Posted August 16, 2011 This is rather simple to do even now ( I just re-create the convex-hulls from mesh surfaces on load time based on scale parameter ), but it doesn't allow for true dynamic scaling of physical objects, at best you can switch to the nearest pre-scaled body in chain, which doesn't play nice with an ongoing physical simulation Even LE3 won't have dynamic physics scaling without breaking the simulation, but unless you are making a slow-motion weight gain sim I think it will be okay. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
paramecij Posted August 16, 2011 Share Posted August 16, 2011 ... a slow-motion weight gain sim ... Now here's a novel game idea!! .. I'm sure there's a group of people desperately waiting for something like this Quote 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.