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.

Messages - zerofox

Pages: [1]
Support / Re: Problem texture applied on object for Samsung S3 4.1
« on: July 26, 2013, 06:33:59 am »
solved!!?!?! have been banging my head for this issue, it turns out somehow the image in the server have a different alpha that its used. So i tried to edit the image and reapply the alpha on the image again, and it works no weird background issue. So something wrong when they applied the alpha on the image  :o

Support / Re: Problem texture applied on object for Samsung S3 4.1
« on: July 25, 2013, 10:22:42 am »
bmpList is an arraylist of Bitmap. It's populate the bitmaps by getting the image through the server and convert it to bitmaps also  in the app i make it scale to 256x256 in case the dimension is not supported by the texture function, could this probably the caused? But how come in Ace 2.2 and S2 they have no problem with this issue. anyway maybe my scaling function have an effect to this? i show you the code :

 public static Bitmap getScaledBitmapAndNoRotateBitmapPixel(Context ctx, Bitmap tempBmp, int width, int height){
        Bitmap resizedBitmap = Bitmap.createBitmap(Bitmap.createScaledBitmap(tempBmp, width,height, false), 0, 0,
               width, height,null, false);

     return resizedBitmap;

Any idea what this caused? or maybe a hacks to fix this issue Thanks!

Support / Re: Problem texture applied on object for Samsung S3 4.1
« on: July 25, 2013, 09:05:58 am »
Hi Egon, here is the code. pretty simple code actually

texture = new Texture(bmpList.get(i),true);
TextureManager.getInstance().addTexture("texture1", texture);

Support / Problem texture applied on object for Samsung S3 4.1
« on: July 25, 2013, 08:36:31 am »

I got problem on my object when i apply the texture, in Samsung S3 it looks there are some background color with not exact pattern , the texture image have alpha color. I tested on other device Samsung Galaxy Ace 2.2 and Samsung S2 4.0,  there is no problem with  this background color in texture when applied to the object. I attached the screenshots, the first one the image that got background in S3, and the second one is the actual texture image. Please help

[attachment deleted by admin]

Support / Re: visibility when rotating the object
« on: July 16, 2013, 02:41:03 pm »
i hope my question is clear enough :D
...not really... ;) Do you have a screen shot? Sounds like a modelling issue to me. You can try to do a setCulling(false); on the object. If that helps, it's a modelling issue with wrongly defined back faces.

it's works! thanks man. so it's a modelling issue? well i took it from a free 3d model, oh well glad thats it working now. :D

Support / visibility when rotating the object
« on: July 16, 2013, 02:04:45 am »

when i rotating the object it seems the back of the object's texture is not visible, so its like the object visible only on the front body but when it got rotated the back body seem like it's texture not visible (transparent). How to make it visible? i hope my question is clear enough :D

Support / Re: blitting text and images
« on: July 09, 2013, 04:41:55 am »
hi all,

want to ask about blitting the text. is there anyway to blit text vertically? thanks

Support / Re: help plaease how to Highlight a 3d object
« on: July 04, 2013, 07:49:36 am »
Hi Egon,

Thanks for replying. ok i can use projectCenter3D2Dright to get the center of 3d object to 2d coords and attach the bitmap with square line. But how to get the width and height of the 3d object? i mean i want the hightlighting square line to scale if the 3d object going far or near, so the square line get bigger if the object going near and shrink if going far.

 So looks like i need to get the corner top, left corner, right corner, and bottom of 3d object's vertex and using project3D2D to get the width and height? 

Support / help plaease how to Highlight a 3d object
« on: July 04, 2013, 05:53:41 am »

How to higlight a 3d object? attached is the image what i'm trying to do, you see there is a red ball as the 3d object and i want to higlight this object with the square line black color. how to achieve this? something like 2d drawing that is should know of to draw this line?

Thanks guys

[attachment deleted by admin]

Support / how to make an object inside the object visible
« on: March 28, 2013, 10:07:58 am »

Say i create a cube, inside the cube there is an object. I want the object inside the cube visible. i already try with texture qith alpha transparency. also try setting the cube tranparency to 50-100, still doesnt work. Anyone can help?

Bones / Re: move the object with path animation
« on: March 28, 2013, 09:21:23 am »
thanks raft for the info. i've been tried to make the path animation work in bones for hours.

Bones / move the object with path animation
« on: March 28, 2013, 05:09:55 am »

does bones able to move the object with path animation? I'm using blender to create animation and then i create path for object to follow and include the path animation as an action so when i export the path animation is included. but then i tried apply the path animation action in the app, the object isnt moving (stay still). Am i doing right? or this path animation is not possible to do?

Support / Re: [problem] detect object in target scope FPS
« on: March 14, 2013, 07:18:17 am »
If you know the coordinates of the scope in 2d, you could do some checks in 2d. You can get the 2d coordinate of the object's center from, com.threed.jpct.Object3D). You could something similar for any other 3d coordinate too. Maybe that's least it's simple and fast.

cool, i see there is package Interact2D for a static function to project 3d to 2d coords screen space, i didnt look it first on the docs! lol. this will do thanks.

but i stumble another problem hope you can give me another hint  ;D
so i'm using bones for the 3dobject, i want to draw square line to the object if the object is within scope.
my first attempt is to blitz dot string with the result min and max vector of calcBoundingBox (method from ninja-bone-example). but the min vector and max dot vector is somehow does not positioning perfectly on the i doing the right thing?

Support / Re: [problem] detect object in target scope FPS
« on: March 13, 2013, 12:32:47 am »
Hi Egon, it's doesnt have to be exact, i just need to know the way how to detect object within the scope. something that i have in mind is to create invisible box positioning in the center of scope so if an object collide with this invisible box i guess the object is within the scope. but maybe there some other way to do it. can you share how you would do this?

Support / [problem] detect object in target scope FPS
« on: March 12, 2013, 09:03:12 am »
Hi guys,

i'm trying to create FPS game like sniper shooter game. I stumble a problem to detect an object is within the scope of sniper. The sniper's scope is actually just an image that overlays on the view atop of the surfaceview in my layout.

anyone can help how to detect if the object is within the scope? i dont need a code, maybe some pointer how to do it or maybe jpct lib have an built in method to do this.Thanks!

Pages: [1]