Page 1 of 1

AddTerrainTexture() and material script?

Posted: Wed Oct 02, 2013 8:39 pm
by Samuel
EDIT:
This is for anyone who stumbles across this topic in the future.
If Purebasic's built in terrain system still doesn't allow material scripts. You might want to check out my custom terrain generator.
http://www.purebasic.fr/english/viewtop ... 36&t=59954



Original Post:
Is it possible to replace the textures of AddTerrainTexture(#Terrain, Layer, WorldSize, DiffuseSpecularTexture$, NormalHeightTexture$) with a material script?
If it is possible how would one do this?

Re: AddTerrainTexture() and material script?

Posted: Thu Oct 03, 2013 8:16 am
by applePi
Hi Samuel
i have not tried it yet, but in the help file there is GetScriptTexture(#Texture, Name$) in Texture section. so this is in addition to the GetScriptMaterial(#Material, Name$)

Re: AddTerrainTexture() and material script?

Posted: Thu Oct 03, 2013 8:03 pm
by Samuel
Hello applePi,

That sounds interesting. I'll give it a try and see what happens.