Jump to content

Leadwerks Game Engine 5 is Coming

Josh

2,476 views

Leadwerks 5 is going to be developed alongside 4.5 with an extended period of beta testing and feedback.  My goal is to build the world's most advanced game design software, tailored to the needs of our community and clients.  Development will first focus on a new programming API updated for C++11 and then a completely new editor using Leadwerks GUI and based on the workflow developed with our current editor.

The first beta will support the following features right away:

These features are already working.  Here is a working build you can try right now:
Leadwerks5.zip

This is the actual source code used to make this example.  Note that C++11 shared pointers have been implemented for all objects and the API has been simplified to make your code more readable:

#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char *argv[])
{
	auto window = CreateWindow();
	auto context = CreateContext(window);
	auto world = CreateWorld();

	auto camera = CreateCamera(world);
	camera->Move(0, 0, -3);

	auto light = CreateDirectionalLight(world);
	light->SetRotation(35, 35, 0);
	light->SetShadowMode(0);

	auto model = CreateBox(world);
	model->SetColor(0.0, 1.0, 0.92);

	while (not window->Closed())
	{
		if (window->KeyHit(EscapeKey)) break;
		if (model) model->Turn(0, 1, 0);
		if (window->KeyHit(SpaceKey)) model = nullptr;
		world->Update();
		world->Render(context);
	}
	return 0;
}

The beta will be available to developers who want to try the very latest game development technology, with a subscription plan of just $4.99 a month, available through our website.

  • Like 1


12 Comments


Recommended Comments

Damn that was fast Josh. I though we had to wait till at least summer 2018 before we could have something to run. Either way a good moment for me to start using C++ again. 

Share this comment


Link to comment

I used #ifdef LEADWERKS_5 all over the place but everything is hacked up pretty bad right now.  Leadwerks 4 won't currently compile, but it shouldn't be too hard to fix.  My next goal is to get Leadwerks 4 compiling again, and then we will have 4.5 and beta 5 released in November-December.

If you want to help me test the subscription service you can purchase it now.  Please note the beta is not yet available, and all this does is put you in the "Subscribers" group and give you more storage space on the website, so this is more like Patreon at the moment:

I purchased a subscription for myself and it will be interesting to see how the system works when it comes time to renew.

Share this comment


Link to comment

Done. The shopping process was really fast. I used paypall since I don't know my creditcard out of my head. Fyi: if you can, I would change the header to Leadwerks Software  instead of your name. 

purchased.thumb.jpg.611f6df8a3bfbd7b10e07f91b6b282c6.jpg

Share this comment


Link to comment

Yeah, I filled in my legal name since the company is presently a sole proprietership.  Will see if I can change it from that with 2checkout.

Share this comment


Link to comment
Quote

My goal is to build the world's most advanced game design software, tailored to the needs of our community and clients.

Keep it up! I'd much rather support an independent than something like Unity or Unreal ...

Will be getting my subscription soon.

  • Like 2

Share this comment


Link to comment
On 10/23/2017 at 1:37 AM, St0nedas said:

Keep it up! I'd much rather support an independent than something like Unity or Unreal ...

Will be getting my subscription soon.

Same here. :D

Share this comment


Link to comment
Quote

I purchased a subscription for myself and it will be interesting to see how the system works when it comes time to renew.

I received a renew some days earlier, supposed i'll be informed of a new debit, but instead i have to re do the payment, no problem at all.

Share this comment


Link to comment

You should focus on getting your own multiplayer system, allow more model formats to be added to the engine, improve that hud .. just take a look around you and see what other `free` engines have to offer. Telling your users to use racknet ( any god damn kid knows how to create a cheat for racknet )  or the low end enet, is not an option. Games like 'Black as your soul' which is promoted on steam are not the games which should promote Leadwerks, it's like bad adverts. I have purchased both versions of Leadwerks and i am playing with unity which is free for now. Do you feel that is fair for me ? With or without pointers added in L5 this engine won't get too far, unless you'll wake up Josh and start adding to the engine what the market wants.

Share this comment


Link to comment
On 22/09/2017 at 1:39 PM, Josh said:

Yeah, I filled in my legal name since the company is presently a sole proprietership.  Will see if I can change it from that with 2checkout.

Hi how can i pay with paypal thank y

Share this comment


Link to comment
23 minutes ago, adebgamesoft said:

Hi how can i pay with paypal thank y

Paypal payments are now enabled. Please keep in mind the alpha is very limited right now.

Share this comment


Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Blog Entries

    • By Marcousik in Marcousik's Creations Blog 3
      I updated the moto I was working on and now the physics let having fun with this.
       
    • By Josh in Josh's Dev Blog 24
      Current generation graphics hardware only supports up to a 32-bit floating point depth buffer, and that isn't adequate for large-scale rendering because there isn't enough precision to make objects appear in the correct order and prevent z-fighting.

      After trying out a few different approaches I found that the best way to support large-scale rendering is to allow the user to create several cameras. The first camera should have a range of 0.1-1000 meters, the second would use the same near / far ratio and start where the first one left off, with a depth range of 1000-10,000 meters. Because the ratio of near to far ranges is what matters, not the actual distance, the numbers can get very big very fast. A third camera could be added with a range out to 100,000 kilometers!
      The trick is to set the new Camera::SetClearMode() command to make it so only the furthest-range camera clears the color buffer. Additional cameras clear the depth buffer and then render on top of the previous draw. You can use the new Camera::SetOrder() command to ensure that they are drawn in the order you want.
      auto camera1 = CreateCamera(world); camera1->SetRange(0.1,1000); camera1->SetClearMode(CLEAR_DEPTH); camera1->SetOrder(1); auto camera2 = CreateCamera(world); camera2->SetRange(1000,10000); camera2->SetClearMode(CLEAR_DEPTH); camera2->SetOrder(2); auto camera3 = CreateCamera(world); camera3->SetRange(10000,100000000); camera3->SetClearMode(CLEAR_COLOR | CLEAR_DEPTH); camera3->SetOrder(3); Using this technique I was able to render the Earth, sun, and moon to-scale. The three objects are actually sized correctly, at the correct distance. You can see that from Earth orbit the sun and moon appear roughly the same size. The sun is much bigger, but also much further away, so this is exactly what we would expect.

      You can also use these features to render several cameras in one pass to show different views. For example, we can create a rear-view mirror easily with a second camera:
      auto mirrorcam = CreateCamera(world); mirrorcam->SetParent(maincamera); mirrorcam->SetRotation(0,180,0); mirrorcam=>SetClearMode(CLEAR_COLOR | CLEAR_DEPTH); //Set the camera viewport to only render to a small rectangle at the top of the screen: mirrorcam->SetViewport(framebuffer->GetSize().x/2-200,10,400,50); This creates a "picture-in-picture" effect like what is shown in the image below:

      Want to render some 3D HUD elements on top of your scene? This can be done with an orthographic camera:
      auto uicam = CreateCamera(world); uicam=>SetClearMode(CLEAR_DEPTH); uicam->SetProjectionMode(PROJECTION_ORTHOGRAPHIC); This will make 3D elements appear on top of your scene without clearing the previous render result. You would probably want to move the UI camera far away from the scene so only your HUD elements appear in the last pass.
    • By Josh in Josh's Dev Blog 6
      A new build is available on the beta branch on Steam.
      Updated to Visual Studio 2019. Updated to latest version of OpenVR and Steamworks SDK. Fixed object tracking with seated VR mode. Note that the way seated VR works now is a little different, you need to use the VR orientation instead of just positioning the camera (see below). Added VR:SetRotation() so you can rotate the world around in VR. The VRPlayer script has rotation added to the left controller. Press the touchpad to turn left and right. Any arbitrary rotation will work, including roll and pitch. Here are the offset commands:
      static void VR::SetOffset(const Vec3& position); static void VR::SetOffset(const float x, const float y, const float z); static void VR::SetOffset(const float x, const float y, const float z, const float pitch, const float yaw, const float roll); static void VR::SetOffset(const Vec3& position, const Vec3& rotation); static void VR::SetOffset(const Vec3& position, const Quat& rotation); static Vec3 VR::GetOffset(); static Vec3 VR::GetRotation(); static Quat VR::GetQuaternion();  
×
×
  • Create New...