3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2]

Author Topic: Infinite Flat Terrain Plugin Here  (Read 3788 times)

« Reply #15 on: March 20, 2012, 04:02:06 PM »
thx G... i'm checking now...

i may have switched something around during testing... dammit!!!!

be back in a few...

--Mike
« Reply #16 on: March 20, 2012, 05:29:20 PM »
OK... both versions are back up with the correct code...

while doing some earlier testing i forgot to comment out a single line of code which repositioned the rigid bodies in the wrong y position...

dumb, dumb, dummmbbbb!!!!

sorry about the delays... and THANKS to the guys who tested and gave feedback...


this one works...


you can replace the existing terrain meshes and rigidbodies (they must be exactly the same)  with your custom terrains, AS LONG AS THE EDGES ON ALL SIDES MESH EXACTLY...

the above won't work well... so best to use the suggestion below...

you can also make mountains and hills (meshes and rigidbodies) and place em anywhere you wish so that they poke through the infinite terrain in order to make more realistic looking and varied scenes...

you can even place these way out of sight and the infinite terrain will work with em as long as the elevation is right...

enjoy...

--Mike
« Last Edit: March 20, 2012, 09:27:19 PM by Mike Hense »
« Reply #17 on: March 20, 2012, 05:49:11 PM »
whats the size of the ground in inches?
« Reply #18 on: March 20, 2012, 05:58:09 PM »
the meshes are approximately 2200 x 2200 each... but they're scaled down (look in the editor)... i don't remember exactly, but i think the rb is the same...

does everything work ?

--Mike

« Reply #19 on: March 20, 2012, 06:15:18 PM »
yep it seems to work fine! :D
« Reply #20 on: March 20, 2012, 06:35:20 PM »
ok, great...

you asked about the size of the grids...

if you want to use it in a flight sim, just change the visual range to 2 in the script...  this'll give you farther coverage when you're up high... but at the cost of some performance...

add a fog and set the range out to about 1100 from 400...

change the color of the fog to match the horizon, and you'll get something like this...



it'll mask the horizon so you get the impression that the terrain is indeed infinite... and you can fly forever   ;D

(make sure you link whatever cam you're using to the script and check the id)

--Mike

« Last Edit: March 20, 2012, 06:36:57 PM by Mike Hense »
« Reply #21 on: March 20, 2012, 08:40:28 PM »
I meant how big the terrain rigidbody in sketchup is If I replaced the unlimited terrain rigidbody.
« Reply #22 on: March 20, 2012, 09:34:14 PM »
i don't suggest you try that... (after further thought i edited the suggestion in the post above about making custom terrains)... the rigidbody doesn't move at the same time, nor in the same specific direction as the terrain mesh grids, therefore they'd rarely line up...

this is good for flat terrains, but not for unique terrains...

it'd be best to make hills and mountains as separate terrain features of a know size, then place em anywhere you want...

the most i'd actually modify the resource is changing the texture of the terrain skinmesh...

--Mike
« Reply #23 on: March 20, 2012, 10:32:50 PM »
Mike, all work like a charm!
Very good job. Thanks for sharing it. I looked through the script's code... good work again. 8)
« Reply #24 on: March 21, 2012, 06:39:36 AM »
@Alec...

finally... thx for testing and the feedback when it wasn't working so well...

and the code... yeah,  that code is a lil bit of a mess, isn't it  :D

--Mike

« Reply #25 on: March 21, 2012, 09:55:32 AM »
Quote
and the code... yeah,  that code is a lil bit of a mess, isn't it  :D
It is, but I learn much from your and other 3D Rad scripters' codes.    :D
« Reply #26 on: March 21, 2012, 10:13:20 AM »
ok... you've got everything you need to make a real flight sim like the one you see in the picture...

in 10 minutes!!!



go here to see how -> http://www.3drad.com/forum/index.php?topic=9185.0

--Mike
« Reply #27 on: March 21, 2012, 12:27:39 PM »
What a coincidence ! Recently I've made a little flight sim for a game contest (it took me 2 weeks). The goal of a contest was to make a game just with the resources that come with 3D Rad. Now I can embed the plugin in my game to improve it with a new feature.
« Reply #28 on: March 22, 2012, 01:04:28 AM »
The demo and the plugin work good for me.
« Reply #29 on: April 21, 2013, 09:46:35 AM »
Hi mike, does this only work for flat terrians or ones with flat edges?
Pages: 1 [2]