Author Topic: Weird texture rendering on OBJ model  (Read 1064 times)

Offline billda

  • byte
  • *
  • Posts: 12
    • View Profile
Weird texture rendering on OBJ model
« 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12011
    • View Profile
    • http://www.jpct.net
Re: Weird texture rendering on OBJ model
« Reply #1 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

Offline billda

  • byte
  • *
  • Posts: 12
    • View Profile
Re: Weird texture rendering on OBJ model
« Reply #2 on: July 31, 2014, 11:04:32 am »
Thanks! It was exactly this kind of issue

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12011
    • View Profile
    • http://www.jpct.net
Re: Weird texture rendering on OBJ model
« Reply #3 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.