Notifications
Clear all

[Closed] How to sample textures in mxs?

 3ak

Hi.
Does somebody know how to sample textures, especially 3d.
as for 2d i know only one way – find uvs for xyz position, render texture to buffer, convert uv’s to XY coords and sample point from buffer? is there another way?

and what about 3d textures?
thanks in advance.

3 Replies

Good question, but i don’t know now convert into image a complicate texture used in 3dstudio, for a game some time ago i used a program similar to http://www.youtube.com/watch?v=Aw_aTMjk4uQ&feature=player_embedded#!.
A solution in maxscript is render each faces -> get the corresponding uvw size -> add into a big immage-> packing this face and if necessary change the uvw face position

 3ak

Thanks, but i’m talking about sampling with maxscript. If i have a texture object (cellular for example) and want to sample it in world space similar to how we do it with noise3 func. – provide world coords and get texture value.

Anybody?