What option i have to put Shadows in my games

Blitz3D Forums/Blitz3D Beginners Area/What option i have to put Shadows in my games

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.

Um... My profile email does exist. I just looked at my profile. My email is there, and it's the right one: scswift at comcast.net

If that doesn't work for you for some reason, then try: scswift at gmail.com


Can you build infinite terrains with my terrain system?

As is? No.

Could you modify it to?

I don't see why not. It generates a grid of meshes from a heightmap you specify, with multiple levels of detail, and stores them in an array. You'd have to make the array indexing wrap or something and move the meshes as needed.

Can you cast shadows onto it?

Ah, well, technically the answer is yes.

But it will require some more work on your part to do that, because each tile has multiple levels of detail. What you'll want to do is turn on shadow casting for the tiles which are nearest the player, for the highest detail level. That'll require you to delve into the terrain system to find the mesh pointers in the array though. You wouldn't want all the highest detail tiles to be turned on at once cause it would be too slow. And you also don't want to turn off and back on the tiles over and over each frame cause the shadow system caches the mesh data, so you'll want to keep track of which tiles are currently casting shadows and which aren't so you can set and reset only those ones the player can't see.

It's hard to have a shadow and/or terrain system simply be plug and play and get the most out of it.