Jump to content

drarem

Members
  • Posts

    234
  • Joined

  • Last visited

Posts posted by drarem

  1. i export to fbx, keeping the pngs and textures together, then using the filemanager copy or cut and paste into the source Model / ... folders with LE active. LE will convert the fbx to mdl. You may have to create a material, shaders and assign to the model.

  2. Hi, I have two questions.

    1)

    I'm using this:

    Shaders/PostEffects/02_pp_fog_by_klepto.lua

     

    and adding this:

    self.camera:SetKeyValue("fog_fogrange","5,60")

    self.camera:SetKeyValue("fog_fogcolor","0.7,0.66,0.62,0.6")

    self.camera:SetKeyValue("fog_fogangle","5,21")

     

     

    and 2d sprites even with the Z-sort set, looks weird when fog is in background. If I have the fog really close in, the sprite tends to blend in or disappear when viewing it with the fog. When the 2d sprite is against a 3d background, it looks fine.

     

    2)

    Also on the second question, I'm wondering if I should create 3 large half-spheres and parent to the Player. Create fog textures for them, so furthest away has everything the most opaue. Do stuff behind it get rendered or not, although I think the posteffects would make for the best fog.

     

    Thanks.

     

    It says by 'klepto', maybe i'm confused but i know Shadmar is the go to guy for shaders.

  3. In the editor, I set my model to a polygon collision. in-game when I hit the P key it displays their collision boxes as a cylinder. I was hoping to improve performance by selecting their own collision meshes in the editor?

  4. Ok it's a prefab spawner, I read awhile back it might be beneficial to have the prefabs somewhere on the map for when they spawn which can create lag, and/or the initial start up lag. As Rick said, it's called precaching.

     

    Prefab:Load("..")

     

    Thanks.

  5. Maybe it's my imagination, but when i place meshes below the map for purposes of having them preloaded to help reduce lag when they spawn, it seems to help the FPS (using PF11 to view fps) when I set them to Hidden. However, finding them when they're hidden in the editor is very difficult scrolling down a huge list of scene objects. How can they be referenced without doing that if I needed to update a script or value attached to that mesh?

     

    Thanks.

  6. That's pretty much the window init code, nothing cut out. I do have the self.title="Pump-Action Captain" right above it.

     

    I commented out:

    self.window = 0

    if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end

     

    Will see if this helps, but it's almost like the person's pc doesn't support 1600x900 resolution?

     

    Thanks.

  7. self.window = 0

    --Create a window/ hide mouse functon at very bottom self.window:HideMouse()

    local windowstyle = window.FullScreen

    if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end

    self.window=Window:Create(self.title,0,0,System:GetProperty("screenwidth","1600"),System:GetProperty("screenheight","900"),windowstyle)

    self.window:ShowMouse() --- line 96

  8. I tried created particles in both Start() and Physics() using a state type variable and timer. Although I have

     

    self.emit:SetLoopMode(false)

     

    And I even do this, and have duration set to 1, it continues to churn out particles. I do a self.entity:Release() of the spawned object and the particles still continue.

     

    Thanks.

  9. This has probably been asked before, but I tried searching for 'specs'. When giving out a game, what specs should I provide for both Windows and Linux? Probably not the same as the Editor, correct?

     

    Thanks.

  10. how about adding a drop-down menu to each object you can parent something to? Or a parenting textbox. then you could drag the item from the list down to the parenting box, which should auto-update the Scene listbox.

  11. you know how you can double-click an item in the scene box and it takes you to where it is on the map in all 4 viewpoints? The reverse would be nice too, if you have an entity selected and you're scrolled down to the bottom of your Scene objects, put a button on the General tab to 'locate'. Click that and it should take you to where it is in the list of Scene objects in the Scene tab.

     

    I mentioned this before, but using Home and End keys to go to top and bottom with an entity selected would be good.

     

    And an easier way to parent a pivot or created ball that appears in the Scene listing near the top to some new mdl you've put in your Scene which would be at the bottom of your Scene list.

    • Upvote 1
  12. Is there an easier way to parent an entity to a prefab instead of left-clicking the entity at the top of the Scene list of objects, and slowly rolling the middle mouse button down to the bottom where the prefab or mdl file is in your scene? In most cases my finger on the left button gives out and the entity gets parented to God knows what..then i have to locate it and continue scrolling down.

     

    Thanks.

  13. I would like to load a prefab and want to pass the player entity to the loaded prefab's attached script to initialize it its the start() function. How should I handle it?

     

    Thanks.

     

    Example:

    (player.lua)

    self.player.entity:SetPosition(0,0,0)

    local test = Prefab:Load("Prefabs/test/test.pfb")

     

     

    For test.pfb attached script:

    (test.lua)

    function Script:Start()

    self.startpos = ??? (somehow pass or get player entity position)

    self.endpos = self.entity:GetPosition()

    end

×
×
  • Create New...