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

Title: Cinematic to 2D art
Post 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 ?
Title: Re: Cinematic to 2D art
Post by: phucko1 on October 04, 2013, 03:04:23 pm
Print Screen? xD
Title: Re: Cinematic to 2D art
Post by: stoneharry on October 04, 2013, 03:48:13 pm
Quote from: "phucko1"
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.
Title: Re: Cinematic to 2D art
Post by: osler on October 04, 2013, 09:27:04 pm
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.
Title: Re: Cinematic to 2D art
Post by: Steff on October 04, 2013, 09:45:13 pm
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.
Title: Re: Cinematic to 2D art
Post by: Lawes on October 04, 2013, 10:33:42 pm
how can i do it ?
Title: Re: Cinematic to 2D art
Post by: Lawes on October 05, 2013, 10:50:44 am
(blp sequence or movie on loginscreen)
Title: Re: Cinematic to 2D art
Post by: schlumpf on October 05, 2013, 01:11:38 pm
Get n frames in blps.
Have a timer in lua, changing the texture path every 1/30 seconds to (i+1)%n.
Done.
Title: Re: Cinematic to 2D art
Post by: Lawes on October 06, 2013, 06:44:55 pm
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 ?
Title: Re: Cinematic to 2D art
Post by: schlumpf on October 06, 2013, 07:36:43 pm
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;)
Title: Re: Cinematic to 2D art
Post by: Lawes on October 07, 2013, 02:04:09 pm
Thx, but im not a lua scripter. Idk where i need to save the code and how active him with my BLP list. :/
Title: Re: Cinematic to 2D art
Post by: osler on October 07, 2013, 02:18:13 pm
I´m not very skilled in Lua, but i think that it should be something like this:
Code: [Select]
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)
Title: Re: Cinematic to 2D art
Post by: Steff on October 09, 2013, 09:41:28 am
Ond login lua script would be a good place.
Title: Re: Cinematic to 2D art
Post by: Lawes on October 09, 2013, 07:07:36 pm
thx for u help but i dont know where i can activ the script

(i tryed avi to gif but only green screen)
Title: Re: Cinematic to 2D art
Post by: stoneharry on October 12, 2013, 12:21:36 am
Quote from: "Lawes"
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).
Title: Re: Cinematic to 2D art
Post by: Lawes on October 13, 2013, 09:29:24 pm
god.
Title: Re: Cinematic to 2D art
Post by: Steff on October 14, 2013, 09:58:31 am
Here our script Mordred did for Maruum.

All credits to him :) Just add on right place in InterfaceGlueXMLAccountLogin.xml and change your pathes:


Code: [Select]
<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">
Title: Re: Cinematic to 2D art
Post by: Lawes on October 14, 2013, 07:25:32 pm
Thx ^.^