Jump to content

Dynamic terrains


VeTaL
 Share

Recommended Posts

You can probably store the position in the entity color, or I can upload the terrain matrix. I didn't write it to support rotation because an extra mat4 multiplication for every terrain vertex seemed unnecessary and wasteful, and terrains have a heck of a lot of vertices.

Yes, its really unnecessary to store it. Maybe you can add a function, that would multiply every vertex to new matrix?

Working on LeaFAQ :)

Link to comment
Share on other sites

So, now i see two solutions:

 

1) the rough and unoptimized method: i have parts of terrain, generator connect them into first terrain:

1 2 3

4 5 6

7 8 9

then, if player moves right, it generates second terrain

2 3 10

5 6 11

8 9 12

 

Newton release first terrain, and then load second one. Center of the world is moved from center of 5 part to center of 6 part. Vegetation seem to load without problems.

 

2) is more optimized: in general its the same, but only 1,4,7 are released, 10,11,12 are loaded. Newton create 9 static collision trees, and when needed, release collision of unnecessary parts and load new one. Center is also moved, and everything works fine. :blink:

Working on LeaFAQ :)

Link to comment
Share on other sites

It would be very nice if you would add movement commands for terrain. We want to make high rocks, so it would be nice to make:

 


   first terrain                     second terrain
                                     _____________
                                    /
                                   /
         _______               ___/       +
  _     /
 / \___/
_/     +

+ is origin of terrain, so it would be possible to create higher mountains then Leadwerks now can.

 

PS: due to optimization, i think, it would be faster to set the coordinates of terrain's origin and then load a terrain and multiply every vertex with new origin coordinates. In this case there wouldn't be a speed difference between load terrain now and with movable origin.

Working on LeaFAQ :)

Link to comment
Share on other sites

Yep, they want to make really large cliffs with a lowlands also with dynamically loading. I would write terrain editor, that would load/upload some terrains automatically, but i need an access to some terrains at one map and possibility to move them.

 

PS: even not in second thread for now, so loading would take some seconds, but i hope on your second-threaded loader in the future. :)

 

PSS: i really need to know if you plan to do this in the nearest future, even only a possibility of creating some terrains in runtime.

Working on LeaFAQ :)

Link to comment
Share on other sites

So few games would use this, and even fewer indie games would. STALKER and Crysis don't even need something like this. So my recommendation is to work within the constraints of the existing system to make your game. The only alternatives are to spend months writing an alternative terrain system that won't be supported and won't integrate well with our physics and vegetation, or pay me to spend 6 months working on this.

 

I wanted to PM you, Josh, but its written that you cant receive messages, so i post it here:

I'm working with Leadwerks on 2 projects: MMO RPG (maybe you remember large castle with a lot of builds) and FPS (like Stalker, we use models from there for demo-version of our game, you saw them in bug-tracker), and both of those project-leaders are speaking about refusing from Leadwerks because they want "streaming" terrain... They both, independent from each other, say that "sawless" world is wanted in modern games.

 

Well, i really like Leadwerks very much and i dont want to go to Ogre or UDK... But RPG-project is stoped and waiting for terrains, because designers want to work with large maps in one time.

 

Please, let me know if even an simple version of the "streamig" word is planned to be released in the nearest time.

Working on LeaFAQ :)

Link to comment
Share on other sites

are you the only one in both those projects using LE ?

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

MG, dont worry <_< For now i'm the only programmer on FPS game, and second programmer on RPG game is working with CEGUI basics. Project leaders watched Leadwerks from my notebook.

 

Josh, thats bad news... Okay, thanks, i'll try to find another project, where i can use Leadwerks.

Working on LeaFAQ :)

Link to comment
Share on other sites

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