Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Alpha Rendering Error based on Camera Angle  (Read 1093 times)
jonbee
Community Member
*
Posts: 2


« on: November 29, 2009, 09:01:26 PM »

When rendering Billboards in scene using:
SetBlendingMode(CONST_TV_BLENDINGMODE.TV_BLEND_ALPHA);

Setting the camera's X angle above a certain value will cause these billboards to not render.

EDIT: This only occurs when the Billboards are inside another transparent mesh.
« Last Edit: November 29, 2009, 09:06:28 PM by jonbee » Logged
AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #1 on: November 29, 2009, 09:12:05 PM »

EDIT: This only occurs when the Billboards are inside another transparent mesh.

You didn't say that on IRC. I should've asked. Sad

Try using the SetAlphaTest() function. It sounds like it is maybe a sorting issue.
Logged

-...-

jonbee
Community Member
*
Posts: 2


« Reply #2 on: November 29, 2009, 09:37:41 PM »

Yeah, I realized that may have been the issue after posting, but it does not help.
Logged
AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #3 on: November 29, 2009, 09:40:43 PM »

If you're not already doing so, can you try TVScene->RenderAll(true, true) ?
Logged

-...-

jviper
Community Member
*
Posts: 2127

Discipline in training


« Reply #4 on: November 30, 2009, 01:51:12 AM »

hmmm.....this actually sounds like the depth buffer's short coming (the fact the the depth buffer does not take transparency into account).

if you just have the one mesh that is transparent and the billboards are not transparent, then simply making sure the mesh get's rendered last should fix your billboards from disappearing. But if you have multiple transparent meshes, or your billboards are also transparent, then you'll have to sort everything from back to front. If your transparent meshes are complex, you'll have to split them up into smaller and simpler meshes.
Logged

JAbstract.....Don't just imagine, make it happen!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks