EntityOrder help

Blitz3D Forums/Blitz3D Beginners Area/EntityOrder help

chwaga(Posted 2008) [#1]
I'm trying to put my gun at entityorder -100, but since the gun is made of several "elements" all collapsed into one mesh, it's drawing the individual components of the gun in the wrong order, but in front of everything else. Any suggestions?


Beaker(Posted 2008) [#2]
Use multiple renders instead.

ShowEntity world
HideEntity gun
RenderWorld
ShowEntity gun
HideEntity world
Renderworld


chwaga(Posted 2008) [#3]
that's the only fix?? It seems kind of slow.


GfK(Posted 2008) [#4]
Wouldn't call it a 'fix' since nothings broken. Its more of a solution.

You're rendering the scene in two stages instead of just one - you're not rendering anything more than once. Its no slower than rendering everything in one go.


chwaga(Posted 2008) [#5]
but the world involves TONS of entities, so it'd take forever to do that.


Cp(Posted 2008) [#6]
code please...maybe I can help...


chwaga(Posted 2008) [#7]
pretty much it's just:

gun = loadmesh("...")
EntityOrder gun, -100


(it's kinda a complex file network, so putting it up would take forever)


Cp(Posted 2008) [#8]
Did you try setting it to 0 to be drawn with everything else? Z-buffering could be a problem(it says non 0 is only for skyboxes/terrain.)


Warner(Posted 2008) [#9]
You could attach every object to a main pivot, and hide/show that pivot. But you could also use a 2nd camera:



chwaga(Posted 2008) [#10]
i think i'll just make the collision sphere around the player bigger, less of a hassle :)