New Zealand
Go Back  

New Zealand Boards

> Blogs > nih's Blog
description
Rate this Entry

Tree gets some friends

Posted 26-Jan-2005 at 08:44 AM by nih
My problems are twofold:

Entire forest of trees are spawning, rotating and depth-sorting. But they're not moving. I tried a whole host of hacks and fixes but it's not quite the same as redesigning it again from the ground up.

Now that I've worked out objects and classes again, bringing the original shitty terrain hack into line will be nice and tidy. Rotation will break as well doing that, but the whole thing needs a good cleanup.

After the above is done I'm going to get it tiling mapsets (so I can reduce the size of the current terrain into manageable bits) and have it load them from the server as needed. Then it'll need a map format of some sort.

I think I'll keep most trees as randomly generated, but also allow for specific placement. This will save me time because I can just give it forest center, size and density.

After that we'll look at bounding maps and stuff. Trees shouldn't appear in rivers and players shouldn't be able to walk through crevasses. The easiest way will probably be to supply a 2-bit image for passable/unpassable and transform offscreen it with the terrain, then just get the pixel colour to test its state.

We can also do simple 3d models at some point. It'd be cute to do flat-shaded polygonal modelling. Polygons would be more flexible than scaled/rotated/skewed textures, but there are drawbacks to both.

Textures can have transparency, which will look great and help add a lot of detail to things.

Polygons are fast and can be a lot more complex.

Either way when all is said and done each object draws itself so there's no reason there can't be a mix of styles in the world, just not a mix per object.

This brings me to particle systems. Although 'thinking particles' are new to consumer-level modellers, they're pretty basic in programming. While you wouldn't want every tree spewing autumn leaves, having a tavern spawn drunks or a forest spawn birds isn't unreasonable.
Posted in
Comments 1 Email Blog Entry
Total Comments 1

Comments

Old
kall's Avatar

What about....a tree spawning taverns?

That would rock.

*nods and continues along his merry way*
permalink
Posted 01-Feb-2005 at 07:06 AM by kall kall is offline
 
Total Trackbacks 0

Trackbacks

Recent Blog Entries by nih
Geotarget
NZB is hosted on a Dual Opteron Server provided by Sparkle Hosting
All times are GMT +10. The time now is 05:36 PM.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
All content ©2003 - 2008 nzboards.com - Kiwi (New Zealand) Messageboards

Our Partners

Sitemap

< New Zealand News - Arcade - New Zealand Map - Helpdesk - New Zealand Photo Gallery - Sitemap >