Jump to content

Integrating libnoise


saindd

Recommended Posts

So, both Basic Cloud and Advanced Cloud objects have a very simplistic image texture being used for it's layers. I've been using Gimp's simplex noise to create the cloud textures, but i'm sure it would be much more interesting to have a procedurally generated texture. Since generating clouds is very simple and involves just basic algorithms that can be found in libnoise, the though part comes in the actual integration of the noises generated by libnoise and Torque's textures.


Is it possible to create a dynamic Texture object in Torque, based on the 2D noise samples generated by libnoise? Maybe a way to construct the object based on a byte array, instead of a file?


The BasicClouds class accepts a string filename, and all maps in the Material class as well.

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.

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.

×
×
  • Create New...