Jump to content

Josh

Staff
  • Posts

    26,673
  • Joined

  • Last visited

Profile Information

  • Location
    USA

Recent Profile Visitors

1,526,367 profile views

Josh's Achievements

Grand Master

Grand Master (14/14)

  • Well Followed
  • Dedicated
  • Conversation Starter
  • Reacting Well
  • Problem Solver

Recent Badges

17.1k

Reputation

1.2k

Community Answers

  1. The first build of version 5.0.1 is available on the beta branch. This revises brush picking so that brush faces of all sizes can be successfully picked in the editor. Only the editor is updated at this time. You must opt into the beta branch on Steam if you want to test this version before a new release goes out to the default branch. Right-click on the application in the Steam interface, select the Properties menu, and in the Betas section, select "Beta - Development branch for testing".
  2. My revision is available now on the beta branch, in version 5.0.1.
  3. Josh

    Suggestion

    I am adding brush->meshes in the next build of the CPP lib. This will give you access to the visual meshes that are built to represent a brush entity.
  4. Josh

    Suggestion

    The mesh class has access to the materials array: https://www.leadwerks.com/learn/Mesh?lang=cpp However, the raycasting on brushes does not use the subdivided mesh, it uses the simple brush shape. This provides the exact same result but is much faster. So the way to do this would be to perform the raycast, and then check the brush visual mesh or meshes to see what the closest vertex to the picked point is. Let me see how this would look...
  5. Crap, I am sorry about that. I am sending you a private message on this forum...
  6. If you place this script in "C:\Program Files (x86)\Steam\Steamapps\common\Leadwerks\Scripts\Start\CustomShortcuts.lua", this will provide you with one possible way of overriding shortcut keys that are generated dynancally. You can switch between the translate, rotate, and scale tools using T, R, and G. You can get to the folder faster by selecting the Scripting > Open Scripts Folder menu item. You could change this to match Blender's keys, if you want, but I did not because we use WASD for camera movement. Version 5.0.1 beta is required (it will go up today) for the textfield check to work. This will ignore key input when a textfield is selected. function Callback(event) if event.id == EVENT_KEYDOWN then if isfunction(program.ui.GetFocus) then --[[Requires 5.0.1 for this check to work]] local widget = program.ui:GetFocus() if widget ~= nil then if TextField(widget) then return end end end if event.data == KEY_T then local menu = program.menu:FindChild("Translate", true) if menu ~= nil then EmitEvent(EVENT_WIDGETACTION, menu) end elseif event.data == KEY_R then local menu = program.menu:FindChild("Rotate", true) if menu ~= nil then EmitEvent(EVENT_WIDGETACTION, menu) end elseif event.data == KEY_G then local menu = program.menu:FindChild("Scale", true) if menu ~= nil then EmitEvent(EVENT_WIDGETACTION, menu) end end end end ListenEvent(EVENT_KEYDOWN, program.window, Callback)
  7. That's a pretty good start!
  8. Right-client on the application in the Steam interface and select the Properties menu item. Make sure the DLC is installed (check the box): When the DLC is installed, the projection creation template will show C++ as one of the options for the language: This will allow programming with C++ and Visual Studio 2026: https://www.leadwerks.com/learn/Programming?lang=cpp
  9. Hi, I am sorry, if you purchased this as a DLC you can ask for a refund through Steam. We are currently switching over from Leadwerks 4 to 5, and this model pack is not needed, unless you wish to use it with older versions. You can download the same content through the integrated downloads system built into the editor.
  10. Okay, I think I finished it. Update will come tomorrow.
  11. Not done with this yet.
  12. Okay, so I think my approach here is going to be to revise the way brush raycasts are implemented. It's not a huge task, I just need to test it a lot.
  13. I will keep an eye out for this. Please let me know if you find a way to produce this error again.
  14. I can produce this error with this scene. You are right, it only happens when shadows are disabled... boxlighterror.zip
×
×
  • Create New...