Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I am almost done testing with the plugin and need some more help with a question.

I have this model of a tree.


I imported it into blender, exported it as GLTF, added the model to the Construct and applied the texture.

It looks like this:


Notice the flaws in the foliage.

I solved this by applying the "AlphaDiscard" color effect.
It looks like this:


Beautiful!

Then I had to apply "z height" because the model disappeared in front of me when I looked up, and the tree again had flaws in the foliage.
It seems that the "z height" ignores the "AlphaDiscard".

How do I fix this?

(1 edit) (+1)

Can you share a sample project, so I can see what C3 is doing in this case?

Transparency with 3D is difficult to deal with in C3, since the C3 renderer does not sort on a per quad basis for transparency.

(+1)

Link to the project:

https://drive.google.com/file/d/1sYZD2hPn3BdlfuIVh2HjnwwUA5hJA0S4/view?usp=shari...

From the tests I have done, if I can solve this issue, I think I will be able to develop my project in Construct.

(+1)

Thanks for the example project. This might be a C3 limitation. Once we change zHeight, it looks like C3 then does a pre-draw which breaks how the Alpha Discard effect works.

One possible way is to not change the camera to be parallel to layout, but keep it perpendicular. Then it may not be needed to change the zHeight, but instead can change bounding box size.

The big issue here is that then you probably can't use the normal behaviors to control objects because of the screen orientation.

Transparency & C3 remain a difficult issue for models like this.

(1 edit)

its C3 limitation, this issue is also with in original based 3d shape plugin i ask on forum about this:

https://www.construct.net/en/forum/construct-3/general-discussion-7/3d-boxes-3d-...

I commented in that thread with a possible solution, but I imagine it's a bit more complex than Ashley would want to implement (it would be best if it was an option, not always on.)