Load infinite environment model for endless runner game

Software: Away3D 4.x

incubus, Newbie
Posted: 02 January 2014 02:47 PM   Total Posts: 21

Hi everyone.

I’d like to thank you for away3D team and contributor for this great 3d framework. There’s a question in my mind and I could not answer this :(

I have 3 environment model(three,cows, chicken, haystack etc. in it. -like subway surfers environments) and I want to environment loop when character is running.

I quickly search on google and I found “paths classes (CubicPath,QuadraticPath)” Please help me this classes is correct way to do this ?

For more clarify below is simple video game:

http://www.youtube.com/watch?v=S763gA_tLV4

You can see trees is repeating when character is running.

Please help me ! Thank all of you advance.

   

Avatar
theMightyAtom, Sr. Member
Posted: 02 January 2014 03:42 PM   Total Posts: 669   [ # 1 ]

I once did an infinite landscape in Away3D.
http://videometry.net/away3d/chopper.html

There’s no specific classes for this afaik, but it’s relatively simple to program.
First I would embed all you assets (3D models, textures, etc.)
Then create you world as an endless grid, and remember to remove grids square when they are no longer used. This will give you great performance compared to creating an environment as one huge model.

Good Luck!

   

incubus, Newbie
Posted: 02 January 2014 03:49 PM   Total Posts: 21   [ # 2 ]

Thank you great work. I still hopeful path classes :/ because I didn’t want to make this manually. smile

   

Avatar
Fabrice Closier, Administrator
Posted: 02 January 2014 06:18 PM   Total Posts: 1265   [ # 3 ]

If you are using a path or more, simply set your elements along the curve(s) and remove/move ahead based on time. See PathDuplicator, PathAnimator for inspiration. Using or combining with space partitionning such bsp, grid or making a big mesh and move its geometry… all are also possible candidates.

There is no rule or ideal way to do this. It depends on designs, models, device perf and game play.

   

Peregrin, Newbie
Posted: 23 January 2014 05:21 PM   Total Posts: 1   [ # 4 ]

hey guys, I’m currently searching for the similar solution

I want to create an infinite hex grid map with different textures for each hex filed. I would like to know what would be the way to go. The world can grow really fast depending on the a user pans it so I would like to have some clipping (rendering only what is visible). But as far as I know away3d renders the whole mesh.
Another points is that textures for each hex could be that big they can not fit in one texture atlas.
Any suggestions are welcome.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X