About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
[RESOLVED] Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
Author Message
aceio76 Offline
Silver Supporter

Post: #1
[RESOLVED] Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
Using the swing trail tutorial, I am drawing VI in RM_BLEND mode, but every time the trail is drawn, all the leaves disappear momentarily and then come back when VI is finished drawing. All the tree leaves are using the 'Test Blend Light Leaf' technique. The tree trunks are not affected.
Code:
void drawBlend()
   {
      SetMatrix();
      VI.image(Images(SwingTrailImage));
      VI.wrap (                       );
...
      VI.end();
   }

Any advice?
(This post was last modified: 09-07-2012 01:07 PM by aceio76.)
09-04-2012 02:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #2
RE: Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
Update: In further testing, only the leaves that are using the leaf-movement shader function that seems to be affected. Leaves on meshes that have switched to LOD1 (and no longer swaying) are not affected. Also, grass are not affected.


Attached File(s) Image(s)
       
(This post was last modified: 09-05-2012 01:11 AM by aceio76.)
09-04-2012 06:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #3
RE: Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
Would setting a custom shader for VtxIndBuf help solve this issue?
09-05-2012 12:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
Are you using DX9 or DX10+?

If so, then does the problem disappear if you try DX9 or disable VI.wrap call?
If that's the case, then it will be fixed in next SDK.
09-05-2012 05:54 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #5
RE: Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
Hi Esenthel,

Thanks for the recommendations.

I am using DX10+ client, and I removed the texture wrapping (VI.wrap()) and it does remediate the issue.

Does this mean you will need to provide a fix to be able to use wrapping?
09-05-2012 07:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
This will be fixed in next SDK, you won't need to apply any changes in your code.
09-06-2012 02:29 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #7
RE: Leaves disappear when Vtx3DSimple is drawn in RM_BLEND mode
Thanks much Esenthel.
09-07-2012 01:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply