Jump to content
Developer Wiki and Function Reference Links ×

Setting Texture Options


Julian_Carr

Recommended Posts

What you are looking for is a combination of two different commands to get Auto-Align Plane and one command for World Z Origin:

 

SetTexMapIntN(<Handle>,<texture part>,0,1,0);		{Sets map type to Plane}
SetTexMapBoolN(<Handle>,<texture part>,0,7,TRUE);	{Sets map to Auto-Align}

SetTexMapBoolN(<handle>,<texture part>,0,6,TRUE);	{Sets map to use World Z Origin}

 

One major thing if using VW2022 or later when using objects with class textures is that you MUST have a texture assigned to the class.  If not, all of the mapping gets set back to default regardless of the script commands.

 

I've attached a little plug-in that I used to learn texturing in VS that might help you out.  For your extrude, you will likely be using texture part 3 for Overall or 4 for Top, 5 for Bottom, or 6 for Sides.

Texturing Test No Event.vso

  • Like 3
Link to comment

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

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