www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: cefengxu on October 22, 2015, 11:27:58 am

Title: [resolved] texture of model have been overwrite by the texture of preview in AR
Post by: cefengxu on October 22, 2015, 11:27:58 am
follow the help from EgonOlsen , i have loading a md2 model on the preview data.

However, the texture of the model have been changed and overwrited by the preview buffer texture grab of camera. Pls find  the attached , shown such case
 so , how can i change the textureID manually or have another way to fix such issue .
Title: Re: the texture of model have been overwrite by the texture of preview in AR
Post by: EgonOlsen on October 22, 2015, 12:37:59 pm
That's most likely because jPCT-AE isn't aware of the change of the texture stage from the outside by the AR code. There's no direct way to tell the engine that the state has changed, but you might want to try a hack: Load some other texture (can be a transparent one) and blit that onto the screen after the rendering of the model. That should make jPCT-AE think that it has to assign the model's texture again in the next pass. Maybe that helps.
Title: Re: the texture of model have been overwrite by the texture of preview in AR
Post by: cefengxu on October 23, 2015, 07:38:16 am
it's work. i have change the textureID of the preview data, and it's work.
Title: Re: [resolved] texture of model have been overwrite by the texture of preview in AR
Post by: Virus on October 26, 2015, 07:13:03 am
Hello cefengxu,Am trying to work the AR but am not able to make it work.can you please help me by providing a demo or sample code of working AR App?
Title: Re: [resolved] texture of model have been overwrite by the texture of preview in AR
Post by: cefengxu on October 27, 2015, 03:14:17 am
firstly, you need to choose a project or engine of AR , and let me know;
secondly ,  the jpct-ae just for rendering;
Title: Re: [resolved] texture of model have been overwrite by the texture of preview in AR
Post by: Virus on October 27, 2015, 06:45:30 am
Am familiar with Vuforia, And am trying AndAR but i don't want any markers.