About Store Forum Documentation Contact



Post Reply 
Order of drawing
Author Message
Houge Offline
Member

Post: #1
Order of drawing
Hi! I have the following problem:

I want to draw some images (I'm using VI.image for that), but I want them to be above all objects in the scene, except my character. I can either "clearDepth()", which affects everything (my character too) or to draw with Depth, which also affects everything (Images are lost under terrain and other static objects).

Is there a way to like exclude some objects from Depth buffer when manually drawing?
07-16-2018 06:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Order of drawing
You should draw them as 3d rectangles (quads) with correct depth, example 1 meter before your character
07-17-2018 01:29 AM
Find all posts by this user Quote this message in a reply
Houge Offline
Member

Post: #3
RE: Order of drawing
In that case quads can be under terrain. Here are some examples:

1. Correct depth, Image is under my character, but it is also under terrain, static objects, etc:
   

2. Cleared depth, Image is drawn correctly above all terrain, BUT it is drawn above my character also (which I don't want):
   

3. What I want to achieve, Image is under my character, but above everything else:
   

I think maybe there is a way to draw Image above everything (including my character), but somehow use a mask (including current skel animation) to just draw my character above this image?
(This post was last modified: 07-17-2018 01:47 AM by Houge.)
07-17-2018 01:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply