About Store Forum Documentation Contact



Post Reply 
How to manually sort lines by depth
Author Message
Dynad Offline
Member

Post: #1
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
Visit this user's website Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #3
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
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #4
RE: How to manually sort lines by depth
ah ok that makes sense, thnx smile

There is always evil somewhere, you just have to look for it properly.
05-09-2011 04:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply