Jump to content

IMG3D_TextureEval question


Recommended Posts

Hello guys,

I'm confused by IMG3D evaluator function. Could you explain how such evaluator should work?

I see two definitions:

00041 typedef void	(*IMG3D_TextureEval)(int nvalues,
00042						 const UT_Vector3 *pos,
00043						 fpreal32 *result[],
00044						 const char *names[],
00045						 int sizes[],
00046						 int for_aa);

and

00048 typedef void	(*IMG3D_Manager_Eval)(int nvalues,
00049						 const fpreal32 *pos,
00050						 fpreal32 *result[],
00051						 const char *names[],
00052						 int sizes[],
00053						 int for_aa);

1. What for we have two different types of evaluators?

2. nvalues = xres * yres * zres?

3. Do we pass pos into evaluator as position in current step?

4. Why do we need to pass nvalues?

5. Still not sure what has to have result array... it's type is array of pointers on fpreal32. But our channels can be any type?

6. What cons and pros of using of such evaluator and fillUntiledTexture()? Is it only difference between creation of tiled / untiled texture?

Edited by hoknamahn
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.
Note: Your post will require moderator approval before it will be visible.

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...