www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: John Tribe on March 03, 2013, 06:25:53 pm

Title: setSortOffset?
Post by: John Tribe on March 03, 2013, 06:25:53 pm
When i load object from 3ds file everything is great, but when i serialize and deserialize i have this problem with transparency and setSortOffset?.

I think the problem is with the 3ds file it has some information that is lost after deserialization and after deserialization it has errors in graphic (transparent some polygons in some angle).

and when i try set sort offset (-2000f)(dont know why must be negative ) on the transparent objects in scene they are visible even shadowed by other textures.

issue simillar to this one:
http://www.jpct.net/forum2/index.php/topic,1292.msg8846/topicseen.html#msg8846
Title: Re: setSortOffset?
Post by: EgonOlsen on March 04, 2013, 06:53:12 pm
I fail to see any relation between deserializing a model and sorting problems. And i think that you haven't got the idea behind setSortOffset right. Giving all transparent objects the same offset doesn't make any sense. Maybe you can post a screen shot of the actual problem?
Title: Re: setSortOffset?
Post by: John Tribe on March 31, 2013, 12:36:17 am
im stupid.
i set transparency to all object, after loading.