It is possible to replace EntityVisible ?

Blitz3D Forums/Blitz3D Programming/It is possible to replace EntityVisible ?

Filax(Posted 2004) [#1]
Hi :)

I'm trying a shadow mapper for terraed and i have try to
scan my map and use entityvisible but it's very very slow !

is there a math replacement ?


Jeppe Nielsen(Posted 2004) [#2]
What about using a linepick, instead?


TartanTangerine (was Indiepath)(Posted 2004) [#3]
Filax,

In response to your post on the code archives.....

The basic shadow mapper that I posted only really works with heightmaps. If you need to map objects you're gonna have to go the raytrace method or something similar.

I've a newer version of the code I posted which also lights the terrain according to the terrain normals and their direction with regard to the direction of the sun.

They now look like this :-


This image was rendered in under 500ms


Filax(Posted 2004) [#4]
Whoaouuu ! very impressive !


TartanTangerine (was Indiepath)(Posted 2004) [#5]
Do you want to see the code?


TartanTangerine (was Indiepath)(Posted 2004) [#6]
If anyone wants the code... Go Here: http://www.blitzbasic.co.nz/codearcs/codearcs.php?code=1004


Filax(Posted 2004) [#7]
Thanks ! i go see it :)