Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Loading textures dynamically

Feb 15, 2005 7:05PM PST

Hi,
I'm applying textures to a model dynamically using .jpg files from folder. It is working fine, when publishing. But it is not working in webserver.Can anyone help me.

I give the sample coding.

a="@/dswmedia/images/" & counter &".jpg"
c=member(1,1)
b=c.name

importFileInto member b, a

member("sofa1").deleteTexture("birdtexture")
newtext=member("sofa1").newtexture("birdtexture",#fromImageObject,member(c).image)

member("sofa1").shader("sofa1").texture = newtext

Thanks in Advance.

-Dhakshna
(pdmoor)

Discussion is locked