dmsurti / AssimpKit

A library (macOS, iOS) that converts the files supported by Assimp to Scene Kit scenes.
http://assimpkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
474 stars 54 forks source link

No transparency #83

Open apm-lucas-zacharias opened 6 years ago

apm-lucas-zacharias commented 6 years ago

I tried everything but can't get transparency to work. I exported from 3 different programs (Cinema 4D, Blender and 3dsmax) in all kinds of formats (.obj, .fbx, .3ds, .dae and so on) but every time neither the iOS App I wrote, nor the provided os x App shows any kind of transparency. Is this a well known missing feature or am I missing something?

dmsurti commented 6 years ago

@LucasZL Please attach a sample file (any 1 format will do) and screenshots of expected render vs what you get as that really helps to understand the problem clearly. Thanks.

dmsurti commented 6 years ago

Btw, transparency is supported; so it should work.

apm-lucas-zacharias commented 6 years ago

Sure. I can't give you access to the files I tried yesterday as I am not allowed to share them but I tried a simple Cube with transparency and color and it's also not working.

This is what I am seeing in Cinema 4D: transparency

And this is what I am seeing in the OSX Sample program:

screen shot 2017-10-17 at 08 52 50

It seems in this case it's ignoring the complete mtl file as even the color isn't applied. I also tried a version without transparency and the color is not showing up either.

Here is the obj and the mtl file in which you can see that a texture is applied with transparency and color: TransparentCube.zip

dmsurti commented 6 years ago

@LucasZL

Sure. I can't give you access to the files I tried yesterday as I am not allowed to share them

That's understandable, no problem.

The sample file you have provided is sufficient for testing this bug. Thanks.

dmsurti commented 6 years ago

Just tested with latest master. even with release v 1.2.0 you will get the colors. Please check what version you are using. But, yes there is the transparency not correctly applied and is a bug.

screenshot 2017-10-17 14 54 25