JBenghiat Posted February 25, 2018 Share Posted February 25, 2018 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); } Quote Link to comment
Carles Olle Posted June 13, 2019 Share Posted June 13, 2019 (edited) Hi, Joshua(@JBenghiat) I'm also trying the texture mapping and not going anywhere 💀 Did you finally manage to set up the texture mapping? Thanks --Carles Edited June 13, 2019 by Carles Olle Quote Link to comment
JBenghiat Posted June 13, 2019 Author Share Posted June 13, 2019 Yes, add this line after defining the texture mapping info variable: inObject.GetTextureMappingInfo(kTexturePart_Overall, txtrMap); This makes sure the structure is properly initialized for the object type. 1 Quote Link to comment
Recommended Posts
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.