Results 1 to 8 of 8

Thread: flocking question

  1. #1

    flocking question

    Hi there, I'm having troubles to make instances to run over an irregular elevation ground. I can only make them to run over a plane.

    Anyone can help me, please. How can I simulate the ground collision to make instance run over it? thanks in advance

  2. #2
    NewTek Developer jameswillmott's Avatar
    Join Date
    Dec 2004
    Location
    Gold Coast
    Posts
    3,171
    For the moment you have to use the Lock to Ground feature and give it a texture. If your ground has been generated with a height map, or a procedural, you can use that texture directly, otherwise you'll have to generate a heightmap from the geometry and texture the ground level with it.
    LightWave3D training, assets, news and discussion at www.liberty3d.com
    My opinions are my own and do not represent the opinions of any other entity, Liberty3D is not officially endorsed by NewTek.

  3. #3
    Thanks four your answer , but I don't know how to make the heightmap from a geometry

  4. #4
    NewTek Developer jameswillmott's Avatar
    Join Date
    Dec 2004
    Location
    Gold Coast
    Posts
    3,171
    Quote Originally Posted by gabaedu View Post
    Thanks four your answer , but I don't know how to make the heightmap from a geometry
    You have to shade the geometry so the highest part is shaded white and the lowest black, you can use a simple gradient drawn in an art package for this, and applied as a planar texture on X or Z, autosized to fit the terrain.

    Then do an orthographic render from on top, that image will be the height map you need to get the agents to follow the terrain.
    LightWave3D training, assets, news and discussion at www.liberty3d.com
    My opinions are my own and do not represent the opinions of any other entity, Liberty3D is not officially endorsed by NewTek.

  5. #5
    Quote Originally Posted by jameswillmott View Post
    You have to shade the geometry so the highest part is shaded white and the lowest black, you can use a simple gradient drawn in an art package for this, and applied as a planar texture on X or Z, autosized to fit the terrain.

    Then do an orthographic render from on top, that image will be the height map you need to get the agents to follow the terrain.
    Thank you very much, I'll give it a try

  6. #6
    Ran into this same problem. Sadly, I don't think this technique works, as to use a texture, you'd need to apply it to some form of object so that it knows the dimensions. Of course there is no drop down for object reference. So, think I'm kinda screwed.

    have you found anything different? Would love to hear it if so...

  7. #7
    Super Member dwburman's Avatar
    Join Date
    Feb 2003
    Location
    Washington State, USA
    Posts
    2,880
    If your terrain object is 50M by 50M, wouldn't your image map also be 50M by 50m?

    You could go to your terrain object's surface panel and temporarily apply the height map image in one of the channels there (color, diffuse, etc.) and click "automatic sizing". Then just copy the image layer, delete or uncheck it in the surface panel and then paste it in the Ground Texture panel for the Flock Generator.
    [mr] Dana W. Burman | http://dwburman.com
    Motion Graphics for sale at Pond5 Stock Footage
    Check out my tutorials at Liberty3d.com & my YouTube channel!

  8. #8
    I'll give that a try. Thought I think I did. Problem is not that I can't match it. I get no height adjustment at all.
    Illmgive it a try Monday. Thanks.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •