This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Cinematic to 2D art  (Read 8373 times)

Lawes

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 157
    • View Profile
Cinematic to 2D art
« 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 ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phucko1

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 523
    • View Profile
Re: Cinematic to 2D art
« Reply #1 on: October 04, 2013, 03:04:23 pm »
Print Screen? xD
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: Cinematic to 2D art
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

osler

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 59
    • View Profile
Re: Cinematic to 2D art
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Cinematic to 2D art
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Lawes

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 157
    • View Profile
Re: Cinematic to 2D art
« Reply #5 on: October 04, 2013, 10:33:42 pm »
how can i do it ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Lawes

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 157
    • View Profile
Re: Cinematic to 2D art
« Reply #6 on: October 05, 2013, 10:50:44 am »
(blp sequence or movie on loginscreen)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Cinematic to 2D art
« Reply #7 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Lawes

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 157
    • View Profile
Re: Cinematic to 2D art
« Reply #8 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 ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Cinematic to 2D art
« Reply #9 on: October 06, 2013, 07:36:43 pm »
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Lawes

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 157
    • View Profile
Re: Cinematic to 2D art
« Reply #10 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. :/
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

osler

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 59
    • View Profile
Re: Cinematic to 2D art
« Reply #11 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)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Cinematic to 2D art
« Reply #12 on: October 09, 2013, 09:41:28 am »
Ond login lua script would be a good place.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Lawes

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 157
    • View Profile
Re: Cinematic to 2D art
« Reply #13 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)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: Cinematic to 2D art
« Reply #14 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).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »