문제

I am struggling to render texture using rajawali library. My Code is below,

ObjParser objParser = new ObjParser(mContext.getResources(), mTextureManager,    
                                    R.raw.objtest);
objParser.parse();
mObjectGroup = objParser.getParsedObject();

Same as specified in sample.

As specified in tutorial I have moved all images into nodpi folder. obj and mtl files are in raw folder.

I have exported obj from blender using right checked images. It is rendering texture properly in blender with "Render Images Option", but it is not able to render texture when i use option for "open GL render image"

Though with same approach Rajawali sample if loading texture properly.

Is this seems to be a problem with obj file or way I am rendering the obj?

도움이 되었습니까?

해결책

Finally solved issue, It was issue of images, we need to use power of 2 images.

Please find link.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top