Jump to content

Josh

Staff
  • Posts

    23,263
  • Joined

  • Last visited

Everything posted by Josh

  1. How do you know that layer1Amount equals 40? That seems very odd to hard-code the array size. You can use #uagc_clouds to get the array size.
  2. Try this: self.mesh2 = Model(self.mesh2) self.mesh2:SetSkeleton(self.mesh.skeleton)
  3. The user reported that the console is continuously printing "Invalid operation" errors while the game runs.
  4. Why is the image link broken?
  5. The false argument should prevent the null character from being written at the end.
  6. 0.9.6 Added terrain mesh layer picking, which means 3/4 of my tasks I listed for the week in Saturday's meeting are already finished. The PickInfo structure now has an integer for the index of the mesh layer and an iVec2 for the exact picked instance.
  7. 0.9.6 Foliage tool will now make use of slope and height constraints. Imposter generation will now remove a previously generated imposter, if it is found, so you don't have to manually delete those each time you update the imposter.
  8. Josh

    Test Tree

    I have been using this model a lot for testing the foliage system. oaktree_d.zip
  9. 0.9.6 Imposter lighting corrected. I also made some corrections to how the imposter images are generated, so I recommend recreating these. Make sure you delete the old imposter mesh and LOD from the model hierarchy before creating a new one.
  10. Maybe there is a shader compile error earlier in the log?
  11. bool SaveTable(table& t, const WString& path) { std::string s = t.to_json(); auto stream = WriteFile(path); if (stream == NULL) return false; stream->WriteString(s, false); return true; }
  12. Josh

    Imposter Lighting

    Previously the normals in the imposter shader were not correct for a variety of reasons.
  13. Josh

    Foliage Lighting

    Another shot with a little bit different lighting conditions.
  14. Josh

    Imposter Lighting

    Imposters shown with correct lighting that matches the model.
  15. 0.9.6 Added an example of a custom shader family and shader. I tried to make it as simple as possible, with one input and one output structure in which all parameters are stored. The files in "Shaders/Custom" are an example of what any node-based shader editor should output.
  16. 0.9.6 Shader update fixes mesh layer normals. Shader update fixes missing ambient light in imposter fragment shader.
  17. If it's fullscreen, how can the cursor go outside the window?
  18. What would you use this for? If the window is fullscreen, you have nothing to worry about. If the window is not fullscreen, you presumably want to be able to click on another window to select it.
  19. See Tutorials > Games > First-Person Shooter > AI, Pathfinding, and Events https://leadwerks.com/learn
  20. I mean for the scene collision. I use convex hulls for brushes now and they work a lot better.
×
×
  • Create New...