Jump to content

ParaToxic

Members
  • Posts

    425
  • Joined

  • Last visited

Everything posted by ParaToxic

  1. LordHippo: Where do you see the lightreult in the bloombuffer? The point is to make a specularbloom shader only for the given material ,because it wouldn't look very nice when all the other objects ,like terrain glows First try :
  2. Hello ,I have a question about a picture and its shader.I played a game and saw (in other games too,but here it looks very nice) that the edges of a model which are directed to the sun have a kind of bloom. Pic: The problem is,that leadwerks bloom can't work only for a few models in a scene,for example weapons and in the picture the material isn't very fair,so it wouldn't work ,because you need fair materials to bet a shine effect. I mean something like that(scroll down for pics) : http://www.ogre3d.or...wiki/Faking+HDR Have somebody made a shader with specular bloom?? When not can somebody tell me how to make that(only the idea) Thanks
  3. Do you use C++?When yes create and other world ,render first the other world(s) and set than the motionblur shader/whatever and render the world with your helicopter rotor.But don't forgett to set the shader after rendering your "motionblur world" to NULL.
  4. Can you please upload you videos or something like that,because it doesn't work at you website.
  5. One question about singleton.I have one singleton class where I create the device the vertex/index buffer,swapchain.... and a other class named CShader.In CShader I need a pointer to the VertexBuffer and the InputLayout(for vertex shader). When I write &CDirect3D::Instance().GetVertexBuffer it tell me that it isn't a Ivalue ,so I made it like that: ID3D11Buffer* VertexBuffer = CDirect3D::Instance().GetVertexBuffer(); And than in the function &VertexBuffer Is there a risk for data lost or something like that?
  6. I wont First I am just 15 years old ,and 2nd I don't want to make an engine.I will learn something about directX 11 and the current techniques,for example make first a simple application to include shaders and work with shaders to learn more about HLSL. The point is that I made a kind of engine before,but with DirectX 9 because I had a very good german book about it Thanks for the links I going to read it,but my english knowledges don't make it easier EDIT: I spoke about the book for DirectX 9 Game programming.In this book is a engine included(developed each chapter) and I see that this engine is made with OOP and I saw in few files,that it use Singleton for getting Device,... In the Direct3D class is an instance : "static tbDirect3D& Instance();" and the function for example "PDIRECT3DDEVICE9 GetDevice() {return m_pD3DDevice;}" . In the other files you type (here the class named tbDirect3D) ...tbDirect3D::Instance().GetDevice(). I think I will make it the same way Thanks for the support
  7. Thanks a good advice:D I made a few little games for learning but the point is that I want to work in a company with an engine which is written in DirectX and I want to collect experiences with that stuff. My idea is not to make a engine ,more a little framework to work with shaders and so stuff.I want it in classesn,because I saw a few engines like irrlicht and soone ,which are made with classes ,OO. I think the OO design is the most important for a good functionality.Just one moree question:D When I have lots of classes for the shader,materials.... and they need for example sometimes the created device,swapchain,context,buffers.. from d3d.How can I create them global? The best way would be to have a class like direct3dinit or something like that with the device,swapchain... in it ,but that all classes could use that.Is that possible? (Very good books ,thanks )
  8. So I make only one file ,where all classes and objects are included and for example define in all classes the device and get it with Direct3DInit::GetDevice() or something like that?
  9. Good documentation.So I made a little overview of the design. Tell me if it's good
  10. I don't know I think it's deferred rendering.The point ist how to design the classes or the context of the classes ,that I can't expand it.
  11. Hello Guys,I have a question about the current Engine Designs. I try to write a little DirectX 11 Engine(only for HLSL learning) and want to make a good Design for the programming. My first idea was to make a Header named engine.h with the includings for following classes. And create a new class named Direct3DInit ,where the device,swapchain,context....are defined(initialize). Than I can add the other classes with (Direct3DInit : public Direct3DTriangle,public Direct3DModel ...) But the problem was ,that I need the device in the other classes ,so I won't work. My 2nd idea was to make a file engine.h ,where all commands are defined in "Containers" and for each Segment of commands I include the cpp file for make the functions.For example: /////////////////Renderer//////////////////// void Render(); void ..... include "Renderer.cpp" //In that file are the functions for Render()... But so I haven't got classes and I think it's not a good design or "framework" I would like to write something like IEngine Engine = Initialize(); Can somebody present me a Engine Design or Framework Design ?? Thanks
  12. I think the example for water rendering is a very good example for pool water.I think I will convert the example to a editor object
  13. I don't think that.It's better when you ask Josh in a private message.
  14. If you have the problem with materials use ImportExport tool and export to FBX ACSII then it must work with the material(work with C4D)
  15. Always the same error with (dllimport) FFont::BBox(...)
  16. Patte: Where do you downloaded FTGL and freetype? Maybe I compile a other version of FTGL and freetype . EDIT: Now I have only 1 error : Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall FTFont::BBox(char const *,float &,float &,float &,float &,float &,float &)" (__imp_?BBox@FTFont@@QAEXPBDAAM11111@Z)". What to do? Thanks
  17. So what to do?When I compiled the lib to FPWGui.lib ftgl.lib was included ,because without I became a compiler error.
  18. I made it like the way you said.But there are the same errors.I don't think that the problem is that ftgl.lib isn't included correctly because when there isn't this library the compiler says that. That's too bad because I like your gui very much I would try to make it running. One question.Are GuiFont.h and GuiFontManager use Soil??
  19. You have to write a own version of fpscontroller.lua ,because for example the gun and the hands are seperate models and they aren't animated as the models in the FPSC Pack. You can try to replace the gun model ,delete the hands and write a little animation class or something like that to play the animations.
  20. Thanks ;D I tried to compile the new project and had to include ftgl src and freetype src but now my compiler says that he can't find ftgl.lib?I don't know where to download ftgl.lib and in the pack I downloaded isn't that file. EDIT: okey I had to compile it too ;D I compiled and it created a lib ,so I made a new project with LEBuilder and set the include path to the src folder and copied PFWGui.lib in the project folder and added this lib with #pragma comment... to the project.Now I become 47 errors:( All the errors are from the file GuiFontManager and GuiFont (obj) (Only a few lines) PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)". 1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)". 1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z)".
  21. Thanks for support.I have now the lib downloaded from the first post and the include files from the google page.Set the include path to "Src" from the google files and wrote #pragma comment(lib,"PFWGui.lib") #pragma comment(lib,"opengl32.lib") Now I become 71 errors: 1>------ Erstellen gestartet: Projekt: guitest, Konfiguration: Release Win32 ------ 1>Kompilieren... 1>guitest.cpp 1>engine.cpp 1>Verknüpfen... 1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiWindow.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEventHandler.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>libcmt.lib(tidtable.obj) : error LNK2005: __encode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(tidtable.obj) : error LNK2005: __decode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(invarg.obj) : error LNK2005: __invoke_watson ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __amsg_exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __initterm_e ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: _exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __cexit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(setlocal.obj) : error LNK2005: __configthreadlocale ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(typinfo.obj) : error LNK2005: "public: void __thiscall type_info::_type_info_dtor_internal_method(void)" (?_type_info_dtor_internal_method@type_info@@QAEXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(typinfo.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert. 1>libcmt.lib(typinfo.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert. 1>libcmt.lib(mlock.obj) : error LNK2005: __unlock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(mlock.obj) : error LNK2005: __lock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(winxfltr.obj) : error LNK2005: __XcptFilter ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(printf.obj) : error LNK2005: _printf ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0.obj) : error LNK2005: _mainCRTStartup ist bereits in MSVCRT.lib(crtexe.obj) definiert. 1>libcmt.lib(errmode.obj) : error LNK2005: ___set_app_type ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(_file.obj) : error LNK2005: ___iob_func ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden. 1>MSVCRT.lib(cinitexe.obj) : warning LNK4098: Standardbibliothek "libcmt.lib" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden. 1>guitest.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall PFWGui::PFWGui(struct HWND__ *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0PFWGui@@QAE@PAUHWND__@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)". 1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiScrollbar.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(Signal0.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiLayout.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(PFWGui.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>C:\Users\Stan\Desktop\guitest\Release\guitest.exe : fatal error LNK1120: 3 nicht aufgelöste externe Verweise. 1>Das Buildprotokoll wurde unter "file://c:\Users\Stan\Desktop\guitest\Release\BuildLog.htm" gespeichert. 1>guitest - 71 Fehler, 38 Warnung(en) ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ========== (Sry it's in german ;D) Would be nice when you help me ;D Thanks
  22. Wow very nice GUI ;D But I can't load it ,because I become lots of linking errors.In project properties I loaded the include files and in main.cpp I wrote #pragam comment(lib,"PFWGui.lib") but I become around 30 Errors?? Can you tell me why? Thanks
  23. Ok now after a little pause I optimized the controll a little bit and solved the problem with the camerarotation and something else. The Code is: UpdateController(Controller0,ControllerAngle,Move,Strafe,0,35.0,1,K_Crouch); mx = Curve(MouseX() - GraphicsWidth()/2.0,mx,5.0); my = MouseY() - GraphicsHeight()/2.0; DrawText(0,120,"mx = %f my = %f",mx,my); mx = max(mx,-150.0); mx = min(mx,150.0); my = min(my,30); my = max(my,-30); PivotRotation.X += my/10.0; PivotRotation.Y -= mx/4.0; MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2); RotateEntity(MiddlePivot,Vec3(PivotRotation.X,PivotRotation.Y/5.0,0)); PointEntity(CameraPivot,MiddlePivot); PivotRotation.X = Curve(max(PivotRotation.X,-30.0),PivotRotation.X,2.0); PivotRotation.X = Curve(min(PivotRotation.X,23.0),PivotRotation.X,2.0); MoveEntity(CameraPivot,Vec3(TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).X/5.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Y/25.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Z/5.0)); PositionEntity(MiddlePivot,Vec3(EntityPosition(Controller0).X,EntityPosition(Controller0).Y + 1.6,EntityPosition(Controller0).Z)); And the exe for testing is here(the same way as before,donwload the game.zip and replace the exe)Character.exe
  24. Thanks Yes I use C++ .I use Pivots for that.The Pivot CameraPivot is the camera but I have 3 other Classes above and this section of class is privat ,so I use that and use EntityParent later. The other Pivot is Middlepivot ,which is positioned in the middle or at the head and you turn that pivot with the X/Y of the Mouse,and the Camera is moved to a position ,which is created by TFormPoint between the Middlepivot and the camera self. I have here the code for somebody who needs. UpdateController(Controller0,ControllerAngle,Move,Strafe,0,35.0,1,K_Crouch); //Update Controller with the Controllerangle,move,strafe and the K_Crouch ///////////////Mouse////////////////////////// mx = MouseX() - GraphicsWidth()/2.0; my = MouseY() - GraphicsHeight()/2.0; //mz = MouseZ(); DrawText(0,120,"mx = %f my = %f",mx,my); mx = max(mx,-150.0); mx = min(mx,150.0); /*mz = min(mz,6.0); mz = max(mz,-6.0); if(mz > 6.0) { mz = 6.0; } if(mz < -6.0) { mz = -6.0; } */ PivotRotation.X += my/5.0; PivotRotation.Y -= mx/5.0; MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2); RotateEntity(MiddlePivot,Vec3(PivotRotation.X,PivotRotation.Y/5.0,0)); //Rotate the middlepivot PointEntity(CameraPivot,MiddlePivot); //Point the cmaera to the middlepivot,so its better to position middlepivot in the near of the head PivotRotation.X = Curve(max(PivotRotation.X,-20.0),PivotRotation.X,2.0); PivotRotation.X = Curve(min(PivotRotation.X,23.0),PivotRotation.X,2.0); MoveEntity(CameraPivot,Vec3(TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).X/30.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Y/30.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Z/30.0)); //The main position command PositionEntity(MiddlePivot,Vec3(EntityPosition(Controller0).X,EntityPosition(Controller0).Y + 1.6,EntityPosition(Controller0).Z));
×
×
  • Create New...