Jump to content

Custom Engine Dll (2011-11-14)


klepto2
 Share

Recommended Posts

File Name: Custom Engine Dll (2011-11-14)

File Submitter: klepto2

File Submitted: 17 Jul 2011

File Updated: 14 Nov 2011

File Category: Tools

 

A custom engine dll, with extra funtionality added to the standard engine.dll.

 

A lot of new functions (currently 67) were added and more will come. Currently it just comes with the dll and the wrapper sources for Leadwerks.Net and LE.Net and a list of new functions. Blitzmax will follow as soon as i have cleared some things with Josh ( the sceneloader uses original source code and i have to clarify if i'm allowed to publish this part or if i provide it as an extra module without source)

 

Demos and samples will follow.

 

[update 2011-08-08]

Updated the dll to match Leadwerks Engine 2.5

Add 4 new functions

void SceneLoaderDoProgress(Sceneloader sceneloader) // Alters Progress manually (needed when you not use the Leadwerks Flip command (eg forms controls)

 

void InitSingleInstanceSystem(string path) // initialises A temporay path for the single instance system

string LoadSingleInstanceMesh(string cs,Entity parent) // Loads a mesh as a single instance (same mesh, but different materials are possible)

void ClearSingleInstanceSystem(int cf= 1) // Deletes the tempory folder or cleans the folder

 

The single instance system is very simple but effective. Keep in mind to use this only if you really need it as it can break up performance when used to much.

 

[update 2011-09-02]

Added 3 new Functions one for removing Vegetation from the terrain and one to get all World Stats (BatchesDrawn etc.)

 

float GetWorldStat(TWorld world,int stat)

 

values for stat = 0 to 12

{

0 : batchdrawtime

1 : batchesdrawn

2 : entitiesdrawn

3 : entityculltime

4 : entitydrawtime

5 : lightsdrawn

6 : meshdrawtime

7 : octreeupdatetime

8 : rendertime

9 : terraindrawtime

10: vegetationdrawtime

11: TerrainSectorsDrawn

12: ShadowsDrawn

}

 

RemoveVegetation(TTerrain terrain, int layer, float x, float z, float radius)

TModel LoadSingleInstanceModel(string cs,Entity parent)

 

Version 2.5.0.2:

-Fixed Cubemapping

-Changed Framework to recycle already used buffers, which speeds up mutisized Viewport rendering

- Added a C# sample for cubemapping

 

Version 2.5.1:

Based On latest LE Update (fixed TPick, etc)

 

Click here to download this file

  • Intel® Core™ i7-8550U @ 1.80 Ghz 
  • 16GB RAM 
  • INTEL UHD Graphics 620
  • Windows 10 Pro 64-Bit-Version
Link to comment
Share on other sites

This is mainly reverse engineered, but i have access to the original dll code and the sceneloader code (thx Josh).

The scenloading is completely based on the original LoadScene command. The Vegetation functions are mainly exported directly as they are already accesable in Blitzmax, but 2 functions are done by looking into the Terrain Editing code snippet Josh posted in this forum.

  • Intel® Core™ i7-8550U @ 1.80 Ghz 
  • 16GB RAM 
  • INTEL UHD Graphics 620
  • Windows 10 Pro 64-Bit-Version
Link to comment
Share on other sites

  • 10 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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.

 Share

×
×
  • Create New...