question about entitys render time

Blitz3D Forums/Blitz3D Beginners Area/question about entitys render time

Santiworld(Posted 2009) [#1]
hi...

in my race car game y have cars, with some mesh separate for details..

something like this..

type car
field mesh
field wheel[4]
field wheel_low_detail[4]
field inside
field lights
end type

if the car is far of the camera, i hide the inside, lights, wheels etc.

if i have to many cars, like 70 cars, but i hide all entity details mesh, is like that meshes don't exist for the time proccess?


_Skully(Posted 2009) [#2]
Yes.. this is how many particle systems work... they hide / unhide to eliminate entity creation times :)


Gabriel(Posted 2009) [#3]
They won't be processed for rendering, but they will be processed for collisions and other purposes. It's not completely as though they don't exist in so much as the renderer is effectively saying

For M=Each Mesh
   If Hidden(M)=False
      If InViewFrustum(M)=True
          Render(M)
      End If
   End If
Next


It's still getting a tiny bit of processing time, but not very much.


Santiworld(Posted 2009) [#4]
:)..

entitydistance and entityinview

are the two function ultra fast for blitz?


puki(Posted 2009) [#5]
A lot of people favour EntityDistance (even instead of collisions) - fast. Expect EntityInView to be slower.


John Blackledge(Posted 2009) [#6]
If you have used HideEntity then collisions are not applied by Blitz.