Plane or terrain?

Blitz3D Forums/Blitz3D Programming/Plane or terrain?

jeffmorris(Posted 2006) [#1]
Which object should I create for city blocks using a bitmap file for each city block? A plane is infinite but the city blocks are too small. I think that a terrain is limited to 1024 grid squares. Any suggestions?


Gabriel(Posted 2006) [#2]
Why would you want either? wouldn't a mesh make more sense?


jeffmorris(Posted 2006) [#3]
Is it possible for me to create a mesh that is "infinite"?


Yeshu777(Posted 2006) [#4]
http://www.blitzbasic.com/codearcs/codearcs.php?code=1124

Might help.


b32(Posted 2006) [#5]
You could also create a non-infinitive terrain and then limit the camera's movement on it.
like this:
If CamX > +1000 then Move Cam, -1000, 0, 0
If CamX < -1000 then Move Cam, +1000, 0, 0
If CamZ > +1000 etc.
If you do this, you could assign a pivot to all the characters in the game, and move the pivot in the opposite direction of the camera. That way you won't run into the same character twice.

If the plane's texture is too small, use ScaleTexture on the texture or ScaleEntity on the plane.
As for terrains, you could use multiple terrains next to each other. A terrain is faster than a mesh, because not all triangles are rendered.

If you have a lot of scenery that makes the rendering very slow, try collapsing everything into a single mesh. It will take up more memory than using CopyEntity(), but the game runs faster. Use for instance AddMesh or your editor to do this.


Andy(Posted 2006) [#6]
http://www.blitzbasic.com/Community/posts.php?topic=52580#587796

http://www.blitzbasic.com/Community/posts.php?topic=55146#613983

http://www.blitzcoder.com/cgi-bin/ubb-cgi/postdisplay.cgi?forum=Forum4&topic=000352

http://www.blitzbasic.com/Community/posts.php?topic=54605#609715

http://www.blitzbasic.com/Community/posts.php?topic=48368#538081


Andy