Jump to content

Tommek

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Tommek

  1. Tommek

    Simple LOD

    Tested it again on the machine from yesterday. The same project, now it works... "Have you tried turning it off and on again?"
  2. Tommek

    Simple LOD

    Really weird. I've created a new Test Project. I just copied the script 1:1 and it is working?!
  3. Tommek

    Simple LOD

    I am using the Player PreFab. Will try the suggestions when back at home.
  4. Tommek

    Simple LOD

    "Box 2" is now the only asset using the script. I don't get it.
  5. Tommek

    Simple LOD

    Yes I did. I checked several times. And even tried with only one of my LOD entities.
  6. Thanks for the Input! I've got some ideas for the indexer.
  7. You choose "Objects" -> "Misc." -> "Pivot" than click into a 2d window and hit enter. maybe you are to close to another entity and it selects it instead of placing the pivot?
  8. Tommek

    Simple LOD

    local Distance = self.entity:GetDistance(self.Player) if (Distance < self.ViewDistanceMax and Distance > self.ViewDistanceMin) then Same error. Do I have to call self.Player in a different way inside the if-statement?
  9. Tommek

    Simple LOD

    Script.Player = "" --entity "Player Entity" Script.ViewDistanceMin = 10 --float "View Distance Min" Script.ViewDistanceMax = 100 --float "View Distance Max" Script.DistancePollTime = 3 --int "Secs Poll Distance" Script.PollTimer = 0 function Script:Start() self.entity:Hide() end function Script:UpdateWorld() self.PollTimer = self.PollTimer + (Time:GetSpeed()/100) if (self.PollTimer > self.DistancePollTime) then self.Distance = self.entity:GetDistance(self.Player) if (self.Distance < self.ViewDistanceMax and self.Distance > self.ViewDistanceMin) then self.entity:Show() else self.entity:Hide() end self.PollTimer = 0 end end I've added Aggrors ideas, but now I get: 18 : error in function 'GetDistance'.; argument #2 is 'string'; 'Entity' expected. Why did this change the context?
  10. Yeah ok, but I don't see any hint in the docu on this. What am I searching?
  11. Tommek

    Simple LOD

    Nice Ideas! EDIT: But as I said, after the start its working nice. I think it takes so lang to initialize the scripts mutiple times. is this correct?
  12. Hi, as sometimes levels take a while to generate I would like to show some progressbar or a moving icon to the player. Currently the game window just freezes. Any ideas? regards, Tommek
  13. Hi, How can I let the player change the ingame video settings? Or videosettings in general? regards, Tommek
  14. Just click into one of the 2d windows and hit enter. After that, place it with the arrows.
  15. Tommek

    Simple LOD

    Yeah I will try to get some fading running. But as it seems It is not really usuable in LUA. My demo Level takes forever to start (17 entites with 3 detail levels), but after that it seems to run nice. Could someone test this in C++? I'm just looking for the last push to buy myself a c++ License
  16. Tommek

    Simple LOD

    Hi Guys, I've made myself a really simple LOD Script in Lua. Script.Player = "" --entity "Player Entity" Script.ViewDistanceMin = 10 --float "View Distance Min" Script.ViewDistanceMax = 100 --float "View Distance Max" function Script:Start() self.entity:Hide() end function Script:UpdateWorld() if (self.entity:GetDistance(self.Player) < self.ViewDistanceMax and self.entity:GetDistance(self.Player) > self.ViewDistanceMin) then self.entity:Show() else self.entity:Hide() end end So for an instance I want to use this, I create 3 different models (HD, SD, Low) and give them distances like: HD 0/9.0, SD 9.1/25.0, Low 25.1/2000.0 My problem here is the switchover that is not really smooth. Because if the player entity is slow you see the flickering. If I set the distances equal they overlap. The overlapping is quite ok. But is there a possibility to make a smooth morph?
  17. Hi Guys, is there a nice tutorial on how to import models to Leadwerks? I get a lot of different formats, but nothings really working. I know so for, I have to use Blender. I opened an 3ds File and exportet it to FBX. But I only got errors in Leadwerks.
  18. Hi Guys, is there a roadmap available for Leadwerks? I've seen the Kickstarter Project, some goals where posted there, but I don't see anything else here. e.g. Is the GUI-Editor still planned?
  19. That really looks nice. Also inside the LAN it must be fast as hell. Do you use this for your projects?
  20. Hi Guys, I have a bunch of computers and thanks to steam, Leadwerks runs on (almost) all of them. How do you keep track of your current projects? One could use subversion, although the binary files would be a pain. Does anyone use a cloud? I've seen mega announced a linux-client that uses encryption. So this might be a way. Anything else? Would like to hear your ideas and workflows. regards, Tommek
  21. http://www.leadwerks.com/werkspace/topic/8999-fence-shadowing/ This thread is a great example. Straight forward question, great answer (also bei OP). But it is somehow in the middle of the thread.
×
×
  • Create New...