BlitzForest/Grass - Dense trees & grass rendering

Blitz3D Forums/Blitz3D Programming/BlitzForest/Grass - Dense trees & grass rendering

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

this is really great, thank you very much. Can anyone tell my how I can load treemeshes instead of images?

BlitzForest isn't capable of doing that, unfortunately.

Is it possible to implement it into a world editor to put grass in certain places? I don't ask you to do it but is it just possible? :)

With grassmaps it is, but like I said above I don't think the grassmap support included is fully working.

On these lines:
		xp# = Rnd(x - BG_BlockSize, x + BG_BlockSize)
		zp# = Rnd(z - BG_BlockSize, z + BG_BlockSize)
		
		Density = BG_sysArrayGet(em\GrassMap, scl*xp, scl*zp)
		If Rand(0, 255) < Density Then

If you set Density to a value between 0 and 255, depending on how dense you want the grass at (xp, zp), you should be able to have full control over the density.

Nice stuff John! That pic above is pretty, but tell me, can we have the StickyBoulderOnSlope code too? :P

You mean the soft-edged minimap? :D