Jump to content

Recommended Posts

Hi guys ,
I'm fairly new to babylon and this forum.
But I already like it a lot. Thanks for the knowledge that is shared over here!

I'm trying to build my first little babylon experiment with a friend and we ran into a problem which we don't know how to solve.
It's a small scene with a couple of skeletal animations. You can find over here:

When its done it should be looking like this, ...Reference Frame


The meshes getting rendered in a funky manner/order :) We think it has something to do with the alphaIndexes and all our non-opaque meshes. We already searched for it an read this article: about how things are rendered, but we still don't know the best way to fix this:

Some advice, best practices would be very welcome.

PS.: Had some trouble with building a working playground. (It always said that I need to have a camera.)





Edited by Florian
get rid of the code
Link to comment
Share on other sites

2 hours ago, Deltakosh said:

It is nearly impossible to help you with just a dump of your code :(

We need a working playground

Thanks for your fast reply. You're right. I'm sorry ...:)  Here the condensed Playground.
Playground: Funky Renderings

1 hour ago, Deltakosh said:

But perhaps I have an idea.

Why do you need an opacity texture? This will force the mesh to be transparent and thus will generate the kind of artifacts you have


For the character you're right. We can turn that off. First Problem solved, Thank you :).
But I think we need the opacity textures for the gras for example. One gras object has two meshes:
1. is the straw
2. is a plane that generates the stylized "shadow"
We want to distribute the gras on a textured floor later. If we won't have an alpha there the transitions between plane and floor will be visible.


Link to comment
Share on other sites

Thanks for your help David! Its really appreciated.
Would be awesome to have semitransparent areas for the transition between the elements. Is there a way without getting the render-order issues?
With the alpha testing method it seems as if there are either fully transparents or solid pixels. :)

Link to comment
Share on other sites

I see. Thanks! 

I think for now we gonna work with alpha testing method and adjust the textures for a betterlookin' transition to white.
In case I wanna dig into render ordering stuff. Any further advice what to read? Working examples to look at? Tips what to do?

We already found:
- Babylon Documentation: Renderordering articlePlayground Example


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...