AddTerrainTexture() and material script?

Everything related to 3D programming
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

AddTerrainTexture() and material script?

Post 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?
Last edited by Samuel on Sat Jan 31, 2015 5:51 pm, edited 1 time in total.
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: AddTerrainTexture() and material script?

Post 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$)
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: AddTerrainTexture() and material script?

Post by Samuel »

Hello applePi,

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