-
Posts
929 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Downloads
Everything posted by klepto2
-
Well, long time has passed since i have written a new entry. While I'm still working on the asset manager and Texture Converter (non threading version) I have prototyped a small animation class in Blitzmax which can handle multiple animations at once for a single mesh. eg: you can walk and use your sword in the same time. Everything is handled automatically you just give a root animation a speed factor and a blend factor. Later you can simply add an 'extra'- animation to the mesh by using the bonename and an animation name. As you will notice in the video i have not yet synced some values eg: when does an once time played animation blend out. But i think the video gives an idea what is possible with Leadwerks Engine. Here is a small codesnippet from my sample project how animation is handled: If JUMP = 0 Then If move = 0 Then scene_helper.playeranimator.SetMainAnimation("Idle") scene_helper.playeranimator.SetAnimSpeed(3) ; Else If Abs(move) >= 1.5 Then scene_helper.playeranimator.SetMainAnimation("run") scene_helper.playeranimator.SetAnimSpeed(Sgn(move) * 2.0) ; Else scene_helper.playeranimator.SetAnimSpeed(Sgn(move) * 3) ; scene_helper.playeranimator.SetMainAnimation("walk w/o sword") End If End If Else scene_helper.playeranimator.SetMainAnimation("jump", ANIMSTYLE_ONCE) scene_helper.playeranimator.SetAnimSpeed(Sgn(move) * 3) ; End If If MouseHit(MOUSE_LEFT) scene_helper.playeranimator.SetExtraAnimation("Bip01_R_UpperArm", "attack combo", ANIMSTYLE_ONCE) End If If MouseHit(MOUSE_RIGHT) scene_helper.playeranimator.SetExtraAnimation("Bip01_L_UpperArm", "pick up", ANIMSTYLE_ONCE) End If
-
The black sky was a problem i had myself as i have switched from lua back to bmx for my main project. Have you done: 'To Generate an updated lua-gluefunctions.bmx uncomment the lines tagged [1] 'and comment out the line tagged [2]. Run the code once, then swap back. 'lua-gluefunctions.bmx needs to be inside the App directory. Import "PATH TO YOUR 2.3 SDK FOLDER\BMX\Framework\framework.bmx" 'Import lugi.generator '[1] Include "lua-gluefunctions.bmx" '[2] 'generateGlueCode("lua-gluefunctions.bmx") '[1] 'End '[1] Also you need the script folder (which you find in the root directory of the editor) in the folder your app is in. After I have done this i could load the scene as if i have opened it in the editor.
-
WOW, looks really nice. Nice to know what you needed the shader pix to worldpos code for Some questions How will physics work together with this? Did you think about to use some region mapping eg a modified heightmap/alphamap where you can setup lakes in different heights?
-
Scaling works, but not as in the editor (unfortunatly). eg: Vegetation coloring is not working. thx btw your tutorials are a great read
-
Hi, The problem: I have a nice terrain with a nice colormap. I have created a sbx file with this terrain, the colormap with setting "Fit to Terrain" enabled. In the editor it looks really nice but using Loadscene on the sbx file just shows the texture tiled and not streched over the terrain. Any idea how to enable this? Or is it a bug or thing which is missing? thx in advance
-
yeah, I wasn't sure in which version I have implemented it and so i have added these parameters as i haven't looked if they are provided by the engine.
-
C# Express let you compile x86. You can manipulate the project file or better: you enable the advanced compiler options in the options and add the x86 option in the project configuration.
-
No, unfortunalty this still doesn't work. I have installed tao but nothing helped. If you're interrested I would like to help you with this and give me the source for testing purposes only. btw. the exe is still a x64 managed one. it seems you haven't used the correct settings. MSN: klepto2 (at) hotmail.de if you're interessted.
-
this is how to calculate the pixel position in world coords: //needed uniforms in eg postfilter.frag uniform vec3 cameraposition; uniform mat4 cameramatrix; vec3 screencoord; vec4 fogcoord; screencoord = vec3(((gl_FragCoord.x/buffersize.x)-0.5) * 2.0,((-gl_FragCoord.y/buffersize.y)+0.5) * 2.0 / (buffersize.x/buffersize.y),DepthToZPosition( depth )); screencoord.x *= screencoord.z; screencoord.y *= -screencoord.z; vec4 worldpos = vec4(screencoord,1.0) * cameramatrix; worldpos += vec4(cameraposition,0.0); Needed Shader variables to be set SetShaderVec3(postfilter,"cameraposition",camera.position); SetShaderMat4(postfilter , "cameramatrix" , GetEntityMatrix(Camera).Inverse() ) ;
-
thx laurens, I'm not using the Express Versions anymore abd last time i have searched for this issue the project file thingy was the only i could found. Also i have to apologize because it seems that the emitter editor just uses tylerH's Wrapper and not this one. I have tested this assembly and it works very well. Keep up the good work.
-
For solving the x64 problem: You need to set the target platform to x86 instead of "Any CPU" and it should work.
-
Last time I tried (with my own 2.28 header) i had have to recompile the assembly. Also this is no easy task for those using the express version (which only can compile to Any CPU, X86 if you hack the project file). I have to say that i have not tried it with this header and was just assuming it from my experience with the particle editor posted which doesn't work on my x64 machines. Sorry if i have misintepret the for me well known error message
-
I would like to try the headers, but I can't use them. I don't know which OS you use but from the error i get i believe you use a 32 bit operating system. As I'm using a 64bit system i'm not able to use the precompiled dll. You may need to compile the dll in native x86 mode due the 32bit engine.dll instead of "Any CPU".
-
After having a long break from coding private stuff i have worked today on small app that creates palettes from a source image and converts a given image to use this palette as a base. This is the current result: The palette: (taken from the weapon image in the first post) And the result of the convertation:
-
TylerH, getting access to your source would be great. Evayr: Unfortunatly this version doesn't support animations. I have a version where animations are exported correctly, but the bone orientation is wrong. I haven't worked out how to fix it, also Josh mentioned that this may be a bug within the GMFSDK. Maybe with the source of TylerH I will be able to solve the problem.
-
Hi there, While spending some days in hospital without internet connection I have used the time (not much) to revisit my existing code for my tools and I have found some things i will no get on: First the Batch converter: I have started to reprogram it, not everything but the whole internal structure will change a lot. I have found a lot of design errors which are too heavy to fix and reprogramming it with using some old components seems faster and cleaner to me. I believe that a new version will be out on Sunday. Now my assetmanager/builder: After revisiting my old tool which i mentioned in my first post I have tweaked it a bit and came to the conclusion that it is much better than i thought and it works very good with nearly every package i have tested. One downside of this tool is that the configuration could not be set per model, but this is not really needed as i have found out. Normally model packages are created with the same size relation so a global scale value can solve scaling issues. In short: I will publish the small tool with some additions : -optional pack creation with password -optional filling empty materials with dummy materials the later one is due the fact that some exporters doesn't seem to export every material into the model and without this option you need to reexport these models by hand etc. . The option will create a log file which materials are missing in a model with its dummy material file. The dummy materials will all have the same structure but can be edited individual. One idea to uniqly name the missing materials is the following: <filename>_<meshname>_<surfacenumber>.mat Any suggestions are welcome.
-
I don't own the wizard model but there are different thinks you need to check: 1. http://forum.leadwerks.com/viewtopic.php?f=7&t=4393 It may be that the fbx format used by the wizard is not compatible with the fbx2gmf tool. Use the tool posted in the above thread to fix it. 2. resave the dds files provided with the model with a dds tool. 3. check if you use _skin shaders in your material.
-
Just a small update and an information why everything is progressing so slowly with my tools. Unfortunatly (well, not really) I'm currently full of work with my daytime job (project deadlines, new features, etc.) that I'm currently don't have much time to do some private programming. This weekend I have some freetime i will spend to fix some bugs with the batch texture converter and coninue with my work on the asset builder. Hopefully I'm able to post some progress soon.
-
thx for the report. I will release an update without threaded converting (better with a threading on/off option) as I believe this may be the main reason for the bugs you guys may have.
-
Keep in mind, that you can do this anyway. Every mid skilled programmer should be able to analyse the engine.dll and write a header themself because the original dll is not obfuscated. dotfuscating is only useful if you have written complete own code and want to make reengineering more difficult. Keep also in mind that dotfuscated assemblies are much harder to debug.
-
hmm, curious. I'm having trouble uploading images and files now. File should work now. thx
-
File Name: Milkshape GMF Export plugin File Submitter: klepto2 File Submitted: 29 Nov 2009 File Updated: 29 Nov 2009 File Category: Tools and Utilities A small GMF Export plugin for static meshes. It auto collapses surfaces with identical materials into one surface and it autogenerates standard materials if wanted. Installation: Copy both files of the package in your Milkshape root folder and restart Milkshape. Click here to download this file
-
File Name: Batch Texture Converter File Submitter: klepto2 File Submitted: 29 Nov 2009 File Updated: 29 Nov 2009 File Category: Tools and Utilities Features: -multithreaded converting -converts the following imageformats to dds : Windows or OS/2 Bitmap (*.bmp):bmp; Windows Icon (*.ico):ico; JPEG - JFIF Compliant (*.jpg):jpg,jif,jpeg,jpe; JPEG Network Graphics (*.jng):jng; C64 Koala Graphics (*.koa):koa; IFF Interleaved Bitmap (*.iff):iff,lbm; Multiple Network Graphics (*.mng):mng; Portable Bitmap (ASCII) (*.pbm):pbm; Portable Bitmap (RAW) (*.pbm):pbm;Kodak PhotoCD (*.pcd):pcd; Zsoft Paintbrush (*.pcx):pcx; Portable Greymap (ASCII) (*.pgm):pgm; Portable Greymap (RAW) (*.pgm):pgm; Portable Network Graphics (*.png):png; Portable Pixelmap (ASCII) (*.ppm):ppm; Portable Pixelmap (RAW) (*.ppm):ppm; Sun Raster Image (*.ras):ras; Truevision Targa (*.tga):tga,targa; Tagged Image File Format (*.tif):tif,tiff; Wireless Bitmap (*.wap):wap,wbmp,wbm; Adobe Photoshop (*.psd):psd; Dr. Halo (*.cut):cut; X11 Bitmap Format (*.xbm):xbm; X11 Pixmap Format (*.xpm):xpm; DirectX Surface (*.dds):dds; Graphics Interchange Format (*.gif):gif; High Dynamic Range Image (*.hdr):hdr; Raw fax format CCITT G.3 (*.g3):g3; SGI Image Format (*.sgi):sgi; ILM OpenEXR (*.exr):exr; JPEG-2000 codestream (*.j2k):j2k,j2c; JPEG-2000 File Format (*.jp2):jp2; Click here to download this file
-
Lazlo, if you have Milkshape3D you can use my GMF exporter. It combines the surfaces automatically which shares the same material.
-
After uploading my first lua snippet i'm continuing my task to develope useful tools for Leadwerks Engine. What tools you may ask? The first, a batch texture converter is ready since a long time, but needs some tweaking here and there. A beta was previously published but i want to get this tool out of the beta and will release a finished version the next days. The next one is to finish my milkshape exporter (animations still doesn't work) but the rest is faster and less buggy. The main tool I'm currently developing is a small helper which i call "Asset Helper". What does this exactly mean? Well everyone who ever have bought a model pack from one of the modelshops around the web may know this problem. You download it and want to play with it in the Leadwerks Editor. Unfortunatly in most cases this doesn't work at first. You need to: -convert the model to the gmf format -create correct material files -create lua scripts -give proper names to have a good structures view in the Editor -and some things more / depends on the pack What does my tool do? In a first version of my tool I tried to do the above steps completely automatically with just a parameters given at startup, but this aproach fails as expected. It was working with some modelpacks but mostly it fails. So my new approach is a semi-automatic tool: First it will scan and analyse a given directory recursivly and collects all needed data like available models, are there already GMF models or do we need to convert from fbx. It collects every texture it found and like the GenMat tool it will try to find proper texture pairs to build material files. In a last prestep it will scan the converted meshes and get the needed materials or marks missing materials. The next step is done by the user: Choose which models to pack into the asset library. Assign missing textures, rename them etc. . You will also be able to choose a scale value for every single model or choose a scale for all models. The analyser will also attach a basic lua file to each model so you have proper dialogs in the editor. The last step will be to choose an asset name, a package name (optional) and a password (also optional). After a click on start the whole process will start and you will get a nice pak file or a directory structure which you only need to copy into your Game folder. I hope that I have a small Update next time, maybe a screenshot. See ya, klepto2