Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - angieIe

#1
Support / Change Texture in Runtime
September 06, 2016, 04:00:27 AM
Hai, i have to change texture when user click a button. How to change texture in runtime? i try add texture to texture manager and setTexture in onDrawFrame, but it not working, have error out of memory. Thank you.
#2
Hi everyone,

I am trying integrate jpct ae with wikitude AR. I already look at the tutorial integrate artoolkit with jpct ae as reference. But i have problem that object 3D not stay in marker.  Here is my code so far:

  public void onDrawFrame(GL10 gl) {
               if (_wikitudeRenderExtension != null) {
                _wikitudeRenderExtension.onDrawFrame(gl);
                }

              if (_currentlyRecognizedTarget != null) {
                world.removeAllObjects();

                float[] projectionCamera = _currentlyRecognizedTarget.getProjectionMatrix();
                projMatrix.setIdentity();
                projMatrix.setDump(projectionCamera);
                projMatrix.transformToGL();
                SimpleVector translation=projMatrix.getTranslation();
                SimpleVector dir=projMatrix.getZAxis();
                SimpleVector up = projMatrix.getXAxis();
                cam.setPosition(translation);
                cam.setOrientation(dir, up);


                markerMatrix.setIdentity();
                float[] marker1Transformation= _currentlyRecognizedTarget.getViewMatrix();
                markerMatrix.setDump(marker1Transformation);
                markerMatrix.transformToGL();
                cube.clearTranslation();
                cube.setRotationMatrix(markerMatrix);
                cube.setTranslationMatrix(markerMatrix);
               // cam.setBack(markerMatrix);
                world.addObject(cube);
                world.renderScene(fb);
                world.draw(fb);
                fb.display();


Please kindly assist. Thank you :)
#3
Support / Re: 3ds not render perfectly
December 09, 2014, 11:30:24 AM
yes..i have and still it likes transparent..
It seems that white color texture is become transparent..
in my 3d max screenshoot the roof of Burj al arab white.. but when i render it becomes transparent
#4
Support / Re: 3ds not render perfectly
December 09, 2014, 10:43:03 AM
 3d artist said it maybe flip surface when i render it in jpct-ae. how to fix flip surface of texture?
#5
Support / Re: 3ds not render perfectly
December 09, 2014, 09:29:07 AM
it should like this in 3d max ..in my previous pic, texture like transparent (sorry i have difficult in english so i can't explain it in detail). As you can see it different between 3dMax and in my phone... :-\
#6
Support / 3ds not render perfectly
December 09, 2014, 06:05:13 AM
Hai, i have 3ds file and when i render it with jpct-ae i can see the object not render perfectly.. this my code:

                world = new World();
world.setAmbientLight(30, 30, 30);
sun = new Light(world);
sun.setIntensity(255, 255, 255);
// Create a texture out of the icon...:-)
TextureManager txtMgr = TextureManager.getInstance();
if (!txtMgr.containsTexture("BURJ_AL_.JPG")) {
Texture texture = new Texture(BitmapHelper.rescale(
BitmapHelper.convert(mActivity.getResources().getDrawable(R.drawable.burj_al_arab_map)), 512, 512));
txtMgr.addTexture("BURJ_AL_.JPG", texture);
}

Context mContext =mActivity.getApplicationContext();
InputStream stream = null;
try {
stream = mContext.getAssets().open("burj_al_arab.3DS");

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//cube = Primitives.getCylinder(20, 80);
cube=Loader.load3DS(stream, 1f)[0];
cube.setCulling(false);
cube.strip();
cube.build();
world.addObject(cube);


I attach pic of screen shot.
#7
Bones / Re: unable to load collada resource
December 09, 2014, 03:02:49 AM
as you suggest i use OgreMax plugin, and now may file have ext format .scene . How to use it? in many tutorial they use .xml
#8
Bones / Re: unable to load collada resource
December 08, 2014, 10:43:21 AM
well, i will try that way..Thank you :)
#9
Bones / Re: unable to load collada resource
December 08, 2014, 10:28:37 AM
Would you try to load the 3d file? may be my 3d file has error or something.. Can i send my file to you?
#10
Bones / Re: unable to load collada resource
December 08, 2014, 10:26:29 AM
my friend create it in 3d max.. and i export it to  dae. I am using Autodesk 3ds Max design 2009.
#11
Bones / Re: unable to load collada resource
December 08, 2014, 10:07:50 AM
Here is the error .
#12
Bones / unable to load collada resource
December 08, 2014, 04:36:29 AM
hai, i have collada file that contains animation. i tried load using ardorCollada2bones.bat but show error unable to load collada resource. thank you
#13
Support / about rotate concept
November 25, 2014, 06:16:39 AM
Hai, when i want to rotate i got confused..how the concept of rotating?
#14
Hi Egon,
plane.setTransparency(100); but i still see black border line.how to make that border line invisible?
#15
Thank you Egon for the answer it's working.
I setCulling false and  rotate the plane by 180 degress around the x-axis  ;D and yes my plane too huge..i don't know how to calculate it..thanks for information  :D