View Single Post
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