
Still, Ogreswf is the best solution for what I am trying to do, so I'm stiking with it!
GREAT WORK!
Sorry was a typo while instant postingFenris wrote:Eh? I see LGPL listed in the OgreSWF source files... If you intend to change to GPL licensing would that not mean that all source code that uses ogreSWF code, including apps we write, have to be distributed as source as well? Not pretty if so, sadly a game breaker for a lot of us I bet.Hmm, isn't that GPLed?
Yes they are, but as far as I know the GPL this should be no problem as far as ogreSwf stays GPL too.
Code: Select all
SwfTexture::renderToTexture(Real timeSinceLastFrame)
Code: Select all
mMovieInterface->display();
Code: Select all
11:14:32: Parsing script camera.material
11:14:32: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: -2147467263
Function: D3D9HLSLProgram::loadFromSource
Description: Cannot assemble D3D9 high-level shader directX_ps_color Errors:
error X3539: ps_1_x is not supported in this version of the compiler
.
File: ..\src\OgreD3D9HLSLProgram.cpp
Line: 63
Stack unwinding: <<beginning of stack>>
11:14:32: High-level program directX_ps_color encountered an error during loading and is thus not supported.
11:14:32: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: -2147467263
Function: D3D9HLSLProgram::loadFromSource
Description: Cannot assemble D3D9 high-level shader directX_ps_image Errors:
error X3539: ps_1_x is not supported in this version of the compiler
.
File: ..\src\OgreD3D9HLSLProgram.cpp
Line: 63
Stack unwinding: <<beginning of stack>>
11:14:32: High-level program directX_ps_image encountered an error during loading and is thus not supported.
Code: Select all
11:14:32: Warning: material swf_hud1_ImageMat_0 has no supportable Techniques on this hardware, it will be rendered blank.
Actually I can't tell you more than google can. GameSwf is very/completely undocumented, a bit buggy and developed without a master plan. Therefore I'm currently writing my own alternative (renderer/script interpreter) to get rid of gameSwf. The idea is to make ogreSwf independent from gameSwf, because gameSwf is the reason for 90% of the problems that occur during my development.independentCreations wrote:...is there anywhere i can go to have a look at what gameswf supports in the way of developing the flash files...
Code: Select all
EventCallbackManager.obj : error LNK2005: "void __cdecl xP_GetPrivateProfileString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?xP_GetPrivateProfileString@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00AAV12@0@Z) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "class Ogre::RaySceneQuery * raySceneQuery" (?raySceneQuery@@3PAVRaySceneQuery@Ogre@@A) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "class SwfTexture * mCubeTexture" (?mCubeTexture@@3PAVSwfTexture@@A) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "class SwfTexture * mPanelTexture" (?mPanelTexture@@3PAVSwfTexture@@A) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "class SwfPanel * mPanel" (?mPanel@@3PAVSwfPanel@@A) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "class SwfHUD * mClock" (?mClock@@3PAVSwfHUD@@A) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "float x" (?x@@3MA) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "float y" (?y@@3MA) already defined in Application.obj
EventCallbackManager.obj : error LNK2005: "class Ogre::Vector3 cameraDirection" (?cameraDirection@@3VVector3@Ogre@@A) already defined in Application.obj
main.obj : error LNK2005: "void __cdecl xP_GetPrivateProfileString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?xP_GetPrivateProfileString@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00AAV12@0@Z) already defined in Application.obj
main.obj : error LNK2005: "class Ogre::RaySceneQuery * raySceneQuery" (?raySceneQuery@@3PAVRaySceneQuery@Ogre@@A) already defined in Application.obj
main.obj : error LNK2005: "class SwfTexture * mCubeTexture" (?mCubeTexture@@3PAVSwfTexture@@A) already defined in Application.obj
...
Code: Select all
class mySwfSound : public ogreSwf::SoundInstance
{
public:
mySwfSound(char* buf, size_t size) : SoundInstance()
{
FMOD_CREATESOUNDEXINFO create_params = { sizeof(FMOD_CREATESOUNDEXINFO) };
create_params.length = size;
mSystem->createStream(buf, FMOD_HARDWARE | FMOD_OPENMEMORY, &create_params, &mSound);
mSound->setMode(FMOD_LOOP_NORMAL);
}
virtual ~mySwfSound(void)
{
mSound->release();
}
void mySwfSound::play(void)
{
mSystem->playSound(FMOD_CHANNEL_FREE, mSound, false, &mChannel);
}
void mySwfSound::stop(void)
{
mChannel->stop();
}
protected:
FMOD::Sound* mSound;
FMOD::Channel* mChannel;
};
As stated above I use SwfTools code to parse the SWF content (because it really would take me months/years to get anything as far as they got, if I wrote it all by myself), and because SwfTools are covered by the GPL there was no way for me to use them, except writing a converter to my own file formatVectrex wrote:... I assume there's a good reason why it can't use .swf directly so I'll trust you on that...