[resolved] texture of model have been overwrite by the texture of preview in AR

Started by cefengxu, October 22, 2015, 11:27:58 AM

Previous topic - Next topic

cefengxu

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 .

EgonOlsen

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.

cefengxu

it's work. i have change the textureID of the preview data, and it's work.

Virus

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?

cefengxu

firstly, you need to choose a project or engine of AR , and let me know;
secondly ,  the jpct-ae just for rendering;

Virus

Am familiar with Vuforia, And am trying AndAR but i don't want any markers.