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 - zerofox

#1
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
#2
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);
       
        tempBmp.recycle();
        tempBmp=null;

    
     return resizedBitmap;
   }

Any idea what this caused? or maybe a hacks to fix this issue Thanks!
#3
Hi Egon, here is the code. pretty simple code actually

texture = new Texture(bmpList.get(i),true);
texture.keepPixelData(false);
TextureManager.getInstance().addTexture("texture1", texture);
#4
Hi,

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]
#5
Support / Re: visibility when rotating the object
July 16, 2013, 02:41:03 PM
Quote from: EgonOlsen on July 16, 2013, 07:30:12 AM
Quote from: zerofox on July 16, 2013, 02:04:45 AM
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
#6
Support / visibility when rotating the object
July 16, 2013, 02:04:45 AM
Hi,

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
#7
Support / Re: blitting text and images
July 09, 2013, 04:41:55 AM
hi all,

want to ask about blitting the text. is there anyway to blit text vertically? thanks
#8
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? 
#9
Support / help plaease how to Highlight a 3d object
July 04, 2013, 05:53:41 AM
Guys,

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]
#10
Hi,

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?
#11
Bones / Re: move the object with path animation
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.
#12
Bones / move the object with path animation
March 28, 2013, 05:09:55 AM
hello,

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?
#13
Quote from: EgonOlsen on March 13, 2013, 08:16:03 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 http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Interact2D.html#projectCenter3D2D(com.threed.jpct.FrameBuffer, com.threed.jpct.Object3D). You could something similar for any other 3d coordinate too. Maybe that's sufficient...at 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 object...am i doing the right thing?
#14
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?
#15
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!