Jump to content

VeTaL

Members
  • Posts

    1,272
  • Joined

  • Last visited

Posts posted by VeTaL

  1. Warning, achtung, внимание !!!

    Take out your wifes and childs from monitors.

     

    The first test starts:

    TEntity sword = LoadModel ("medievalweapons_longsword.gmf");
    EntityParent(FindChild(mi1->GetModel(),"Bip01 Spine"),sword,1);
    

     

    Control: press 1-2-3 to run different animation loops.

     

    Starring: crawler, sword.

     

    :):D :D

  2. It was my dream for a long time, to create a usefull FAQ with solving some actual problems and examples.

    Begginers would be able to find usefull info, experienced ones could refresh some knowladges here (at least, its my dream).

    As i have more free time now (i already got my Masters degree), now i can spend some time on FAQ.

    The main idea is to collect there all usefull threads with solutions from this and old forum.

    Okay, lets start.

     

    Programming

     

    General

    Tutorials

    How can i get Leadwerks Engine Source?

    Entity commands speed test - extremely interesting and usefull thread

    Packing scripts folder

    DrawImage and Transparency

    Custom font

    FPS way to shoot

    Unparenting

    Obtaining the model/mesh file names

    Terrain raw file output format

    Converting animated models with UU3D

    Program execution speed on different PC?

    Soft particles

    How to set FOV?

    Turn off console for Release build(in the bottom of the page)

    Semi-transparent models

     

     

    C++

    How can i use pak-files? Can i set a password?

    Make Cyrrilic Font in LE

    Playing video on texture

    Integrates Ogg Theora playing into LeadWerks

    Newton body's "bullet" mode

    GetVertexPosition usage, example included

    How to use decals? example included

    Decals disapperaing

    Attaching equipment, example included

    Determine positon of model child

    Ingame mirror recommendation

    Loading process vizualisation

    Get UV coords from trace

    Cegui initialization [example]

     

     

    C#

    Starting Up Leadwerks + C#

     

     

     

    LUA

    Reading Lua Class Properties from C++

    HowTo using LUA script as data file

    Reading Lua Class Properties from C++

     

     

    Shaders

    Disable back face culling

    Fix the alpha problem in leaves of certain trees

     

     

     

    Editor

    How to get vegetation to appear in the menu?

     

     

     

    Troubleshooting

    "Can't open scripts/classr" error

    Terrain texture render problem

    OpenAL is not installed?

    Mem Usage Grows Continuously (LUA and garbage Collector)

    Alpha blending issues when planes are parented

     

     

     

    This post will be updated, of course. Any help is wellcome :rolleyes:

    I'm trying to add at least 1-2 posts each day.

  3. I saw some threads about this problem, but still cant find clear solution.

     

    Okay, lets rock:

    1) Created new project with Project Wizard in "Z:/fps", launched - thats ok.

     

    2) Change AbstractPath to

    RegisterAbstractPath("Z:/fps");
    

    Launched - get a crach - thats ok.

     

    3) Moved shaders.pak to Z:/fps - now i get level without textures - thats ok.

    1308481623-clip-32kb.jpg

     

    4) Created folder Z:\fps\Content\ and moved there

    cobblestones.dds

    cobblestones.mat

    cobblestonesdot3.dds

    Now i got normal level... you saw that picture hundreds time, so i wouldnt post it here :rolleyes:

     

    5) Now i zipped Content folder with "Store" method (also tested "Normal" and "Best" they all works fine) and without passwords. Important thing is to check ZIP format to archive. Rename Content.zip to Content.pak - this works nice.

     

    6) Last step is to make new Content.pak with password. I made it with password "12345", then i add in engine

    SetZipStreamPassword("Content.pak","12345");
    

    And it works ok again.

     

    7) Last step is to test different passwords for different archives.

    I make pak1.pak with cobblestones.dds and cobblestones.mat with password "12345"

    and pak2.pak with cobblestonesdot3.dds with password "123456"

    Next is to add

    SetZipStreamPassword("pak1.pak","12345");
    SetZipStreamPassword("pak2.pak","123456");
    

    And it works ok.

     

    PS: this post is written in step-by-step style, i hope this will clear up for others in a future(when this "manual" will be finished), how to work with packages.

     

    PPS: ONE MORE IMPORTANT THING: path should be "../Content", not "..\Content"

  4. LoadScene uses LoadMesh, which is the best way to instance models.

     

    You could theoretically use CopyEntity to make instances of the model too, but I think it does not work perfectly, or then I had some other issue with occlusion culling when I tested it.

    So always use LoadModel to make perfectly instanced models.

     

    LoadModel doesn't load from disk if the model is already loaded, so there is no additional disk activity either.

     

    This is quite usefull for me... What about creation of new FAQ?

×
×
  • Create New...