Jump to content

ArBuZ

Members
  • Posts

    164
  • Joined

  • Last visited

Everything posted by ArBuZ

  1. I have no idea why they did it. But if skelton is character studio biped, then its not too hard to merge all animations in one. With bones it will be more difficult.
  2. If I use LEO Framework, how can I pass framework to LUA? This doesnt work: Framework *fw1=new Framework(); fw1->Create(); BP L=GetLuaState(); lua_pushobject(L,(BP)fw1); lua_setglobal(L,"fw"); lua_pop(L,1); LoadScene("C:/test/deserthighway.sbx"); It gives me error "Access violation reading location 0x2f005800" on LoadScene function. Im doing something wrong?
  3. That is what I wanted to do. But don't know how to use framework in such system. I would use separate framework for each screen. It would have it's own world with it's own settings. So in main menu I would have one render settings and effects(bloom, refraction etc.) and in game other settings and effects. I understand that I can (and have to) do all that by my hands. But framework is already done, and I'd like to use it.
  4. I wanted to make 3d menu in separate world where I can perform raycasts and animation and have some effects and transparency. I thought using of 2 frameworks is good and simple way of doing this. If I use one framework I will need somehow to move menu entities to fw.main and fw.transparancy worlds and back or show and hide them. Wasting resources is not acceptable. So Ill keep searching suitable solution
  5. I think that phy shape should consist of a few simple convex hulls.
  6. One for main menu. and one for game itself. Or its not reasonable?
  7. Hello everyone! Can I have two frameworks in one program? Thanks.
  8. It seems like windows doesnt allow script to create config file. Its very strange. Ill see what I can do. maybe I can pass conf file creation. Try to run max as administrator. Ive never had such problem.
  9. And check if you have isolated vertexes in your model. You should delete them. Select all vertexes and press "Remove all isolated verts" in editable poly Rollout.
  10. Current version of the exporter works in 3ds max 2010. Actually it works for all versions of max since 3ds max 9 (not 2009) Its max script plugin. So it should work.
  11. Thank you Lumooja. Ive noticed also that sometimes entity of any class in LEO becomes NULL or badptr in some cases. I cant remeber now how did that happen. But I had to use API instead of LEO. And by the way fw.GetMain() is absent in dll framework. And everything works if I use framewerk.cpp (not DLL). I think that something wrong with LEO.
  12. Hi! Ive tried to use framework directly that included in dll. Here is the simple code. When I try to move any camera of any layer the program gives an error. // ==================================================================== // This file was generated by Leadwerks C++/LEO/BlitzMax Project Wizard // Written by Rimfrost Software // http://www.rimfrost.com // ==================================================================== #include "leo.h" using namespace LEO ; int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) { Engine engine( "Gma", 1024, 768) ; Engine::SetAbstractPath( "C:/Gma/Gma" ) ; Engine::SetFilters() ; Framework fw; fw.Create(); fw.renderer.SetBloom(false); fw.renderer.SetHDR(false); //THIS CAUSE ERROR! fw.main.GetCamera().SetPosition(Vec3(0,0,-5)); Material material("abstract::cobblestones.mat") ; Cube mesh( CREATENOW ) ; mesh.Paint( material ) ; Cube ground( CREATENOW ) ; ground.SetScale( 10, 1, 10 ); ground.SetPosition( 0, -2, 0 ); ground.Paint( material ) ; DirectionalLight light( CREATENOW ) ; light.SetRotation( 45 , 45, 45 ); // Game loop while( !Keyboard::I****() && !Engine::IsTerminated() ) { if( !Engine::IsSuspended() ) // We are not in focus! { // Rotate cube mesh.Turn( Vec3( 0.5f*AppSpeed() ) ) ; fw.Update(); fw.Render(); Engine::Flip(0) ; } } // Done return engine.Free() ; } But if I use API (not LEO) everything goes well: // ==================================================================== // This file was generated by Leadwerks C++/LEO/BlitzMax Project Wizard // Written by Rimfrost Software // http://www.rimfrost.com // ==================================================================== #include "leo.h" using namespace LEO ; int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) { Engine engine( "Gma", 1024, 768) ; Engine::SetAbstractPath( "C:/Gma/Gma" ) ; Engine::SetFilters() ; Framework fw; fw.Create(); fw.renderer.SetBloom(false); fw.renderer.SetHDR(false); //THIS CAUSES ERROR! //fw.main.GetCamera().SetPosition(Vec3(0,0,-5)); //THIS WORKS!!!! PositionEntity(GetLayerCamera(fw.main),Vec3(0, 0, -3.5)); Material material("abstract::cobblestones.mat") ; Cube mesh( CREATENOW ) ; mesh.Paint( material ) ; Cube ground( CREATENOW ) ; ground.SetScale( 10, 1, 10 ); ground.SetPosition( 0, -2, 0 ); ground.Paint( material ) ; DirectionalLight light( CREATENOW ) ; light.SetRotation( 45 , 45, 45 ); // Game loop while( !Keyboard::I****() && !Engine::IsTerminated() ) { if( !Engine::IsSuspended() ) // We are not in focus! { // Rotate cube mesh.Turn( Vec3( 0.5f*AppSpeed() ) ) ; fw.Update(); fw.Render(); Engine::Flip(0) ; } } // Done return engine.Free() ; } This works too Camera cam=GetLayerCamera(fw.main); cam.SetPosition( 0, 0, -3.5 ); But this doesnt: Camera cam=fw.main.GetCamera(); cam.SetPosition(0,0,-5); Maybe Im doing somethig wrong. Sorry if this problem is allready discribed on the forum.
  13. Hi guys! Im sorry, Ive made one mistake! Ive included fbx2gmf.exe to exporter archive instead of obj2phy.exe! That is why the exporter didnt generate *.phy files! To fix that just copy obj2phy.exe to "3dsmax root\scripts\startup\" or redownload exporter and extract it again. I will reupload it in a few seconds. Sorry for the inconvenience
  14. I watch all threads related with the exporter regulary. So you may post bug reports here. Plus this thread is pinned. So everybody can see it.
  15. Actually, you can't export any additional data of skinning to gmf file except vertex weights. LE doesnt support it. So the only way I see is adjusting the vertex weights and limbs topology to achieve maximum good result.
  16. You are welcome! We all are waiting for your game! All your screenshots are amazing!!! Cant wait to see it and play!!
  17. I think he is talking about my exporter. Im Alex.
  18. with my exporter it doesnt matter what objects do you have deal with. standard ptimitives or custom made shapes the exporter converts them all to the editable meshes and writes data directly to the file. Ive just tryed to say that the number of object wasnt actually a source of the problem if you used my exporter. I really want to help and find out why my exporter doesnt work for you. Do you have any messages while exporting? It must work
  19. You are definitely doing something wrong. I ve seccessfully exported 4300 boxes. It has taken about 10 minutes!!! The file size was about 12Mb. But I couldnt even veiw boxes in model viewer. The frame rate was about 1 or 2. Have you allready exported such a big scenes in one file? I saw somewhere on the forum that leadwerks slows down very much when you have such huge amount of objects in one gmf. But I dont know if its true. I guess that you actually dont use my exporter. I think you use export via fbx function, don't you? Try this steps: Make sure that you are using the latest version of the exporter Go to "leadwerks tools"->"export objects". Uncheck "Selected only" "reset transforms" "Create *phy file". Export it. Max will hang for some time (it can be long time ). But in the end it will give the message "All objects have been exported successfully" or "there was error..." Btw, make a copy of your scene befor exporting Hope it will help
  20. What happens when you'r trying to export the level with my exporter? Have you tried the latest version?
  21. 4300 objects!!! its very huge nuber. Im not quet sure that this is right whay to do such thing. Maybe you should try to split your level on some smaller parts?
  22. Hi! Why don't you use my exporter? Its very easy to export anything (animated or static or skinned meshes) from max to LE. http://leadwerks.com/werkspace/index.php?/topic/141-leadwerks-tools-2-1-for-3ds-max/ it works for all versions starting from 3ds max 8
  23. Hello Masterxilo! If you use "charecter studio" as sceleton then you are able to save animations in separate files with very easy way(one button click). If you use bones then things are more complicated, but not too hard. As far as I know there is "Save animation" tool in 3ds max. With it you can save any animation range in file. I havent used it, so I cant tell you how does it exactly work. Any way, I would do it this way: create all animations in one max file for one mesh. And then export them with my exporter (http://leadwerks.com/werkspace/index.php?app=downloads&showfile=7) to separate files. For example 0-100 - to one file, 100-150 to another file an so on. The exporter exports only active time range. You can set it in the "Time configuration" window (right click on play animation button). So first you set it to 0-100 and export it. Then set it to 101-150 and export it to another file. Hope it will help
  24. Leadwerks tools 2.3 3ds max to GMF exporter is an alternative exporter that Ive made. It is max-script plugin that exports data directly from 3ds max to gmf file. There are fuatures and installation notes below. And some information how does this work. Supported features: 1. Exporting of any number of objects saving hierarchical relationships. 2. Exporting of smoothing groups. 3. Exporting of materials IDs. 4. Exporting of materials. 5. Exporting of animation 6. Exporting of skin data 7. Exporting of vertex colors 8. Exporting of 2 UV - channels 9. Exporting of custom attributes (properties) 10. Generation of *.ini files 11. Generation of *.phy files 12. Generation of LUA scripts for object properties 13. Exporting of tangents and binormals 14. Ability to export only materials without exporting of mesh. 15. Scaling. 16. Batch exporting of objects to separate files. 17. Automatic LOD exporting. Installation: Extract files from archive to "3dsmax root folder\Scripts\Startup\" If you have files of previous version of the exporter, then remove them. The plugin will appear in main menu bar as Leadwerks tools menu. Download link: http://www.leadwerks.com/werkspace/files/file/210-leadwerks-tools-for-3ds-max/ Help pdf file is included in exporter archive. Sorry for my English. I will be glad if someone will find it usefull. Thanks
×
×
  • Create New...