Modcraft - The community dedicated to quality WoW modding!
Content creation => Texturing and 2D Art => Topic started by: Lawes on October 04, 2013, 02:05:30 pm
-
Yea, i want to covert Cinematic to 2D art.
Why ? I want a cinematic on my loginscreen :D
1 can help me to do it ?
-
Print Screen? xD
-
Print Screen? xD
This.
You could potentially play the movie on the login screen, but that would consume quite a lot of resources for a login screen. Not to mention being difficult to achieve.
-
Another option is making a BLP sequence, but i´d be ridiculously heavy (23fps = 23 BLP per second. A high quality BLP weights around 1mb, so it would be 23mb/s + music).
I remember a guy asked for help about the BLP sequence on the shoutbox (Maybe last year?)
So the best option would be the static image, and if you use Mordred´s files you could add some static M2.
-
We use 40MB BLP sequence for our login screen.Works good and what are 40 mb if the full patches are around 3 gig now.
-
how can i do it ?
-
(blp sequence or movie on loginscreen)
-
Get n frames in blps.
Have a timer in lua, changing the texture path every 1/30 seconds to (i+1)%n.
Done.
-
Thx for your help but : "Have a timer in lua, changing the texture path every 1/30 seconds to (i+1)%n. ".
How can i have a timer in lua ? have you an exemple to help me ?
-
http://wowprogramming.com/snippets/Crea ... OnUpdate_3 (http://wowprogramming.com/snippets/Create_a_mini-timer_using_OnUpdate_3" onclick="window.open(this.href);return false;)
-
Thx, but im not a lua scripter. Idk where i need to save the code and how active him with my BLP list. :/
-
I´m not very skilled in Lua, but i think that it should be something like this:
local init = 0
local numframes = 10 --Change 10 by the number of frames
function ChangeBackground()
FunctionToSetTheBackground(init)
--[[Maybe something like:
function SetBackground(id)
frame:SetTexture("route/to/the/blp"..id..".blp")
end]]
init = init+1;
if ( init == numframes ) then
init = 0;
end
return init;
end
local total = 0
local function onUpdate(self,elapsed)
total = total + elapsed
if total >= 2 then --Change 2 by the FPS you want (2 = 0.5 fps, 1/30 = 30 fps)
ChangeBackground()
total = 0
end
end
local f = CreateFrame("frame")
f:SetScript("OnUpdate", onUpdate)
-
Ond login lua script would be a good place.
-
thx for u help but i dont know where i can activ the script
(i tryed avi to gif but only green screen)
-
thx for u help but i dont know where i can activ the script
(i tryed avi to gif but only green screen)
WoW does not support the GIF format.
There are interface files for in game (FrameXML) and before you get in game (GlueXML). You will need to insert your code into the GlueXML AccountLogin.lua and use a modified binary to allow edits to this directory.
Do some google'ing and research into how WoW supports images, and how the GlueXML folder works (like a WoW addon).
-
god.
-
Here our script Mordred did for Maruum.
All credits to him :) Just add on right place in InterfaceGlueXMLAccountLogin.xml and change your pathes:
<Frame name="BGAccountLoginFrame" setAllPoints="true" toplevel="true" frameStrata="LOW" frameLevel="3">
<Layers>
<Layer level="BACKGROUND">
<Texture name="BGTexture" file="ModcraftLoginScreenAnimMaruumLogin_0000.blp">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-130"/>
</Offset>
</Anchor>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="130"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
BG_pic = 0;
BG_maxpics = 72;
BG_fps = 24;
BG_time = GetTime();
BG_elapsed = 0;
</OnLoad>
<OnUpdate>
if (GetTime()+BG_elapsed>BG_time+(1/BG_fps)) then
BGTexture:SetTexture("Modcraft\LoginScreenAnim\MaruumLogin_000"..BG_pic..".blp");
BGTexture:Show();
BG_pic = BG_pic + 1;
if BG_pic>BG_maxpics then
BG_pic = 0;
end
BG_elapsed = 0;
BG_time = GetTime();
else
BG_elapsed = BG_elapsed + 0,01666;
end
</OnUpdate>
</Scripts>
</Frame>
<Frame name="AccountLoginUI" setAllPoints="true">
-
Thx ^.^