Dynad
Member
|
How to manually sort lines by depth
Hi,
I have a set of lines: Memb<Vec2> lines; I want to draw them in manual approximately depth-sorted batches, because currently those lines are drawn on top of all my mesh objects in the scene.
If possible also drawn in batches with VI.line etc.. cause drawing lots of lines with D.line is pretty slow. I'm not sure how to do this in the Esenthel Engine or can this feature be added to the engine?
Thnx,
~Dynad
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 05-07-2011 08:30 PM by Dynad.)
|
|
05-07-2011 08:18 PM |
|
Dynad
Member
|
RE: How to manually sort lines by depth
The problem about the lines drawn ontop of the models is; when you draw lines with a given width. Do i need to use a different renderer to make it work with lines with a width larger then 0.001?
There is always evil somewhere, you just have to look for it properly.
|
|
05-09-2011 03:49 PM |
|
Esenthel
Administrator
|
RE: How to manually sort lines by depth
drawing lines with width is done by drawing line as 2d quad (no depth is used there), so if you want depth you can't use width
|
|
05-09-2011 04:05 PM |
|