Jump to content

Setting texture map


JBenghiat

Recommended Posts

I'm having trouble seeing a VWObject's texture mapping.  The code below properly assigns a texture, but the mapping remains unchanged. Is anyone mapping textures successfully with SetTextureMappingInfo()?

 

void ApplyTextureToObject(VWFC::VWObjects::VWObject &inObject, const double &mf)
{
    inObject.SetTexture(fTextureID, kTexturePart_Overall);
    TextureMappingInfoSDK txtrMap;
    txtrMap.f2DScale = mf;
    txtrMap.fParamSpaceKind = kParamSpaceKind_Plane;
    inObject.SetTextureMappingInfo(kTexturePart_Overall, txtrMap);
}

 

Link to comment
  • 1 year later...

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