User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22

Thread: Enabling an extension to work in HWA?

  1. #1
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Enabling an extension to work in HWA?

    Hey all, Liji recently sent me the code for his 'Pixel object' - and I was wondering what it takes to enable it to work in HWA mode?

    Currently the extension just crashes the runtime if tried to run under HWA.

    Essentially my goal is to be able to grab a pixel color in a specific location to three variables separately. (R,G,B stored in 3 separate variables)

    Any thoughts on this anyone?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    741
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Hi Chaos,

    I do not think that this extension need special HWA function. So did you try to build with HWA in edif and debug?
    I tried with the DebugObject from Phi but it does not give a lot of information about the crash (just that it crashed on GenerateEvent in Edif.Runtime.cpp). It is better with the source code.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It started crashing on me as soon as I switched to DX9 HWA mode. ran fine when I changed it back.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    741
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Did I understand correctly: Liji sent you the C++ code, did he?
    If so, did you try to compile and debug with Visual Studio?
    Without Visual Studio, I tried directly with MMF and the DebugObject from PHI but it does not help a lot o find the source of the crash.

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Unfortunately there's no way to enable HWA support for the Pixel Object, unless someone would figure out how to access the Direct3D internals of MMF and then read directly from the pixel buffer...
    I expected it to crash btw, any call to MMF's GetPixel() function on a HWA surface will crash.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    741
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Can't we make an implicit conversion through blitting on a DIB surface?

  7. #7
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Well, you can't read from the screen from what I understand. It's a render target and you can't call any get functions on it. I have no idea how to access the texture behind it!

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    741
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    I thought about using GetRenderTargetSurface() as Andos did in Perspective extension:
    LPSURFACE psw = WinGetSurface((int)rhPtr->rhIdEditWin);
    ps = psw->GetRenderTargetSurface();

  9. #9
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I had no idea that even existed, tbh.

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    741
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Ok, I will try to make a minimal Pixel extension to check if I am correct. I will at least learn something new.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Enabling and Disabling Groups
    By Meshakhad in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd August 2011, 05:57 PM
  2. Key not enabling NEXT button
    By AlanT in forum Install Creator and Patch Maker
    Replies: 12
    Last Post: 16th September 2008, 02:38 AM
  3. Enabling/Disabling all application sounds
    By Giovanni_Cardona in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd June 2008, 08:12 PM
  4. Problems enabling/disabling groups
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 3rd June 2008, 01:29 AM
  5. Replies: 0
    Last Post: 10th January 2008, 07:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •