Jump to content

tinyboss

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by tinyboss

  1. I've found that if I leave Leadwerks open while my computer is idle for a while, then when I come back and try to run with F6, I get this error:

     

    Microsoft Visual C++ Runtime Library

    This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

     

    I'm not sure exactly how long it takes, maybe an hour or two? Long enough that my monitor turns off, if that helps. It's pretty consistent, i.e. if I've been gone for many hours, then it happens without fail.

     

    I'm running Windows 8.1 64-bit.

  2. Any chance we could get some improvements to the script editor? Particular annoyances:

    • Auto-indent: This is a huge one. I'm not even talking about intelligently increasing the indent level after "do" and decreasing it after "end"--I can do that for myself. But when we press <enter> can we at least have the new line match the indentation level of the current one?
    • Tab size: It's a personal preference, but I think 8 is a pretty unpopular choice. If we can't have a setting for it, can we at least reduce it to 4, which is much more standard?
    • <alt-tab> behavior: When I switch over to my browser to check the documentation and then come back to Leadwerks, the editor no longer has focus and I have to reach for my mouse. Not only that, but I have to click in the right place in the editor to get back to where I was.

  3. Note: I'm very new to Leadwerks, so most likely I'm missing something obvious.

     

    I've created a 512x512 floor block and I'm trying to load a 4x4 square of them with the following code:

    --Dynamically create some dungeon geometry:
    System:Print("loading dynamic floor")
    self.floors = {}
    for i = 1, 4 do
    for j = 1, 4 do
    floor = Prefab:Load("Prefabs/Tinyboss/floor2.pfb")
    table.insert(self.floors, floor)
    floor:SetPosition(2048+512*i, 0, 512*j)
    System:Print(floor:GetPosition().x.." "..floor:GetPosition().y.." "..floor:GetPosition().z)
    end
    end
    self.FirstTime = false
    

     

    (I put it at the end of the App:Start function in app.lua. I also tried running it once in the App:Loop function, but that didn't help.)

     

    When I run with F6, I see all the stuff that I've added in the editor, but none of the dynamically loaded floor tiles show up. I can tell from the print statements that entities are getting loaded and their positions are being set, but I don't see any of them.

     

    Is there something else I need to do to add them to the current scene, or something else I'm missing here? Thanks!

  4. What's the best way to make 16cm-thick walls or other boxes that don't have dimensions that are multiples of 32? The only ways I know of are to turn grid snapping completely off in the options, or to change the scale (and then the position) in the object properties. Is there a more convenient method I don't know about?

  5. Thanks again guys, it's looking better now!

     

    less-ugly-torch.png

     

    I still have no luck making the torch object itself be self-lit. I can change the brightness, and in the editor I see the object getting brighter. But when I run the scene, there's no effect whatsoever. I tried it on a wall and on the floor too, and the behavior is the same.

  6. Dan22, thanks for the quick and extremely helpful answer! Turns out I was changing the specular, not diffuse, color. Turning off specular and changing the diffuse color really improved things. I actually do have a normal map, but I got it from "generate normal map" in the Leadwerks editor. I'll look into using Gimp to make a better one.

     

    Is there any way to have an object be "self lit"?

     

    Thanks again!

  7. First of all, I'm just getting started with Leadwerks. So thanks in advance for any help, and please don't think there's anything too basic to mention. ;-)

     

    I'm working on a dungeon environment, and I'm trying to make a torch. I made a cone, gave it a wood texture, and added a particle emitter and point light. Okay, so it's a torch, but it's really, I mean really, ugly:

     

    ugly-torch.png

     

    Here are my questions:

    1. I hate how the torch itself looks, all shiny like that. At first it was just totally dark, since I had the point light on top. Then I moved the light in front hoping to light up the torch, but it just has this hard shiny glare on it. Can I tell Leadwerks to render the wooden cone at full ambient lighting?
       
    2. I don't like the light itself, either. I hate the way it casts those shiny highlights on the walls. I wish I could more or less have the effect of an ambient light, in a globe around the torch. Is something like that possible?
       
    3. I've messed with the color of the point light, but I can never tell that it makes any difference. Is it just very subtle, or am I doing something wrong?

    Thanks very much!

×
×
  • Create New...