Jump to content

Leadwerks Game Engine 5 is Coming

Josh

2,465 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 Josh in Josh's Dev Blog 10
      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 tipforeveryone in tipforeveryone's Blog 12
      I spent a whole week for learning UE4 with cpp, yep, UE4 is a great engine for sure, but I found out that my mind could not understand the way UE4 works easily. It is too complex and made me tired. Then I returned to my Leadwerks project and felt so familiar. Soooo... sweet, everything is simple as it is
      It felt like I have had a long trip to UE city then return to my hometown. I miss Leadwerks indeed.
      Last year, I thought I could only use Leadwerks with LUA and never touch its CPP side. But I tried my best, learned Cpp for 8 months. Now I am not a cpp pro but I am confident in using this language. At least I can rewrite my whole project in CPP instead. this 3-years project helped me to understand my potential and interest in gamedev.
      I wish Josh be successful in progress of making Turbo, a new hope for much better Leadwerks.
      To all people who are using Leadwerks and help me these years, love you.
      ...
      Peace!
    • By Josh in Josh's Dev Blog 2
      Still a lot of things left to do. Now that I have very large-scale rendering working, people want to fill it up with very big terrains. A special system will be required to handle this, which adds another layer to the terrain system. Also, I want to resume work on the voxel GI system, as I feel these results are much better than the performance penalty of ray-tracing. There are a few odds and ends like AI navigation and cascaded shadow maps to finish up.
      I am planning to have the engine more or less finished in the spring, and begin work on the new editor. Our workflow isn't going to change much. The new editor is just going to be a more refined version of what we already have, although it is a complete new program written from scratch, this time in C++.
      It's kind of overwhelming but I have confidence in the whole direction and strategy of this new product.
×
×
  • Create New...