Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-21-17, 09:55 AM   #1
Maaggel
A Murloc Raider
Join Date: Oct 2017
Posts: 5
White model texture help

Hello.

I'm currently making my first WoW Addon.
This addon will show a dialog message like the "Talking head messages" if the Shadow priest weapon Xal'atath whispers you.

This works quite well, and even though I still need to fix some issues, and add some config options, I'm getting there.

Now, the problem is that I'm displaying a 3D model of the weapon - but since it has several textures, it's shown as a white model.

I hope someone can help me with this.
Here's the cde for showing the model:

local modelFrame = CreateFrame("Frame", nil, UIParent)
modelFrame:SetPoint("Center", - 580, 300)
modelFrame:SetWidth(200)
modelFrame:SetHeight(200)
modelFrame:SetAlpha(0)

local model = CreateFrame("PlayerModel", nil, modelFrame)
model:SetModel("item\\objectcomponents\\weapon\\knife_1h_artifactcthun_d_01.m2")
model:SetAlpha(1)
model:SetRotation(1)
model:SetAllPoints(modelFrame)
model:SetCustomCamera(1)

//Maaggel
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » White model texture help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off