Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: 1 [2] 3

Author Topic: Movie Scene  (Read 9380 times)

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #15 on: April 21, 2006, 03:08:28 PM »

Hey, you are awesome !

I got it compile... but when it run, i have the following error message:
"Unhandled exception at 0x005b7f01 (msvcp71d.dll) in Tutorial_2.exe: 0xC0000005: Access violation reading locaion 0x00000058"


 :(
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #16 on: April 21, 2006, 03:20:06 PM »

Well, that is caused from some kinda of pointer access problem. I suggest you run through the debugger and find out what line it is crashing on. And, the, back trace to where that pointer was initializes - odds are, it wasn't initialized correctly/or at all.
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #17 on: April 22, 2006, 04:55:02 PM »

ok, i get my code to compile and run good. However, i can't see the movie, all i see is the blue screen with the title "http://www.wreckedgames.com brings video! to OGRE ;)"
Did i miss something? :(
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #18 on: April 22, 2006, 07:08:14 PM »

Well, you should  make sure you our calling the update (blitFrameCheck IIRC) every frame. THe CEGUI_TheoraDemo does this inside it's framstarted method.
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #19 on: April 23, 2006, 03:56:53 PM »

yeah, i did that, but it doesn't work for me (still the blue window with no movie), i think that i am missing something.

Because the way i did it, i didn't want to have window interface, just the movie only, so i took almost all the lines in the file demogui.xml and changed some number sothat the movie would fill up the screen. But when i run it, the program complained about couldn't find vtime in the system. So i comment out all the code in MovieLogic::displayedFrame (float, float, unsigned int, unsigned int) I wonder if this is the reason that make thing goes wrong. Please help me T_T

 :(
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #20 on: April 23, 2006, 04:01:36 PM »

You can ignore all the stuff in displayedFrame just fine, as that is just for debugging info really. Are you sure you are actually calling the blitFrameCheck every frame.. ie. put a break point in there.

It is kindof hard to debug your code from here, and you said that the Demo worked ok IIRC. So, You should step through the demo, and your code, to make sure you are doing identical things. Of course, thigns like the vtime and fullscreen would be a little different, but everything else remains the same.
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #21 on: April 23, 2006, 04:08:17 PM »

wow, thank you for your fast reply!!! :o

yeah, i did debug on the desktop and my labtop to compare for all the steps. Most of the steps are the same (except  initDemoEventWiring) where are you btw?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #22 on: April 23, 2006, 04:23:50 PM »

Why do you ask ;) I guess, well, i am right here :0

Actually I am in the mountains of San Diego.
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #23 on: April 23, 2006, 04:29:17 PM »

yeah, because i really need help, i don't know why the movie doesn't show and how can you help me.
How about i run a debug and output all the step for you if you don't mind to take a look at it ? I know you are having a good time in the mountain, i am sorry to bother you this much
 :(
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #24 on: April 23, 2006, 05:05:35 PM »

Sorry, i do not have the time to donote to online-debugging aid.

What I suggest, is starting over from the demo. Do not try to make numerous changes at once. First, instead of deleteing things in the xml gui file, just modify it so that you have a fullscreen window. Get that working first. Then, move on to removing things.
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #25 on: April 23, 2006, 05:25:19 PM »

Yay, i got it working, thank you so much pjcast, you are awesome
 :D
Now, i will work on sound with my friends  :)
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #26 on: April 23, 2006, 06:11:57 PM »

Is the way to make the movie stop when it finishes without having to stop it?
I can make the mClip public the access to TH_EndOfVideo, but i don't think that's it a good way to handle eof. Do you have any suggestion?
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #27 on: April 30, 2006, 02:10:25 PM »

:(
I am writing a wrapper class for MovieLogic, it work on my laptop, but when i try to copy and run it on school desktop, it gives me error on runtime: Debug Assertion Failed
Program: trial\Trial.exe
File: dbgdel.cpp
Line: 52

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

I have no idea how to fix this problem...
Thank you in advance for help
Logged

halianka

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Movie Scene
« Reply #28 on: April 30, 2006, 02:32:50 PM »

hmm... after i changed it to release mode, it works.... Never mind, I have no idea why
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Movie Scene
« Reply #29 on: April 30, 2006, 03:23:25 PM »

Probably missing debug libraries of some kind on one computer. Or, mixing objects files, or something strange like that. Anyway, glad you got it working.
Logged
Pages: 1 [2] 3