Jump to content

Leadwerks Terrain in C++


Joshua
 Share

Recommended Posts

I have been working with the Terrain component in Leadwerks 3.0 outside of the Leadwerks Editor and I was wondering if anyone else has done any programming with the Terrain component in this manner.

 

If so, I was wondering what might be the best way to go about manipulating the Terrain component. Possibly what the different methods in the terrain component do as well as the other components in the Terrain.h file.

 

I am looking to render a 2-d array of Perlin Noise to a Texture object and then using this texture as a heightmap for the terrain. I have already incorporated libNoise into Leadwerks, I just have to write an interface for it to work with the Leadwerks Terrain component.

Link to comment
Share on other sites

Thank you Josh! I didn't even see the heightfield header in the dependencies list at first. I also noticed that if I try to create a Terrain component that is less than 64 units, my Leadwerks application crashes. Is this supposed to happen?

Link to comment
Share on other sites

Very interesting because a Terrain size of 64 units works just fine. Just anything under 64 causes the application to crash.

 

I was thinking that the Terrain Size dictated the surface area, however, it must just be the number of terrain patches along the outside of the Terrain. This is why a size of 64 works, because it has a surface area of 256.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...