Blending

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Blending

Post by iona »

Hi there,

I'm going to use blending for widows in my level.

I've found on forum information, how to do some vertices in object transparent:

Image

But, as you can see, these transparent triangles needs to be sorted before rendering.

So I'm wondering how can I force a scene node not to use Z-buffer but render all and render them sorted.

I'd be very happy for any piece of code :)

thanks,
iona
r-type
Posts: 41
Joined: Sun Feb 12, 2006 1:54 am

Post by r-type »

Hi Iona,

Perhaps you could draw some pointers in the image, so we can see what you mean exactly? I can't make much from the image as it is
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

How did you load those vertices and which manipulations did you apply? If you have a transparent material the meshbuffers are automatically sorted correctly. If you do such things manually you have to provide a custom scene node and a custom render method to draw the correct vertices in the correct render phase.
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Post by iona »

Solved !

It was my stupid mistake, sorry& thanks !

Iona
Post Reply