Jump to content

texture for boxes in a path randomly


Omy

Recommended Posts

Im creating a domino sim,for this im following the rbd point object method as somebody of this forum insisted,.so could anyone tell me how to place 3 or 4 random images as texture.. I mean each box should have different textures in a random order or in a continuous order but each 4 or 5 textures should keep on repeating all over the 100s of boxes in domino.

could anyone give a sample file to start with

Link to comment
Share on other sites

Here's an example file using the Material SOP's ability to override any material parameter.

In this case, the baseColorMap parameter from a default basic surface material is being overidden with an expression:

butterfly`$CLASS%7 + 1`.pic

where % is the modulus operator which returns the remainder of $CLASS/7

The 1 is added because the butterfly sequence starts at 1.

I used the connectivity and partition to index the pieces into the default "class" attribute accessible via $CLASS.

With this technique, you can override any material property including color.

random_map_overrides_on_cards.hip

Link to comment
Share on other sites

Here's an example file using the Material SOP's ability to override any material parameter.

In this case, the baseColorMap parameter from a default basic surface material is being overidden with an expression:

butterfly`$CLASS%7 + 1`.pic

where % is the modulus operator which returns the remainder of $CLASS/7

The 1 is added because the butterfly sequence starts at 1.

I used the connectivity and partition to index the pieces into the default "class" attribute accessible via $CLASS.

With this technique, you can override any material property including color.

what i intend to ask is i wish to have two or three different images that repeats through out the curve continuously.could you tell me how to go for that.

Edited by Omy
Link to comment
Share on other sites

also i have a doubt why the objects keep on submerging below the ground in course of time so slowly that the shape goes beyond the grid. i have attached the file

and also could you tell me how to apply random textures. random textures means two or the different image files in the disk?

and also please help me to speed up the sim

dominoesv3.hipnc

Link to comment
Share on other sites

also i have a doubt why the objects keep on submerging below the ground in course of time so slowly that the shape goes beyond the grid. i have attached the file

and also could you tell me how to apply random textures. random textures means two or the different image files in the disk?

and also please help me to speed up the sim

could any one reply

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