www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: billda on July 31, 2014, 10:04:30 am

Title: Weird texture rendering on OBJ model
Post by: billda on July 31, 2014, 10:04:30 am
I am using vuforia with jPCT and i have weird problem with rendering texture on my model. When I try to load model in HelloWorld sample and replace cube with model, everything works fine but when I use exact same code in my app, this problem happened. In the attachment is screen with my problem. My guess is that Vuforia renderer is setting something in openGL but i dont know what because i dont have so much experience with it. If anyone have some idea please share your thoughts.

Attachment - https://www.dropbox.com/s/56lqp290bknn8a9/screenshot_2014-07-30-14-44-09.png
Title: Re: Weird texture rendering on OBJ model
Post by: EgonOlsen on July 31, 2014, 10:13:52 am
That's not an issue with textures, it's an issue with your gl context and/or the depth buffer settings of Vuforia. Maybe this helps: http://www.jpct.net/forum2/index.php/topic,3536.msg25228.html#msg25228 (http://www.jpct.net/forum2/index.php/topic,3536.msg25228.html#msg25228)
Title: Re: Weird texture rendering on OBJ model
Post by: billda on July 31, 2014, 11:04:32 am
Thanks! It was exactly this kind of issue
Title: Re: Weird texture rendering on OBJ model
Post by: EgonOlsen on July 31, 2014, 08:12:19 pm
I guess that the sources on pastebin don't include this change yet? I would like to add them to the wiki, but i prefer to use most current ones.