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

Pages: 1 2 3 [4] 5
46
Support / texture is faded after Object3D.setTransparent
« on: December 23, 2011, 01:45:46 am »
please see the attachement. I want to let the icon's black background
be transparent,  and do a setTransparent(0) on the icon. the result
is the icon seems faded than before, how can I keep it as before ?
thanks.

[attachment deleted by admin]

47
Support / Re: lost texture when do animating
« on: December 22, 2011, 05:56:07 am »
ah, yes. I do a calcNormals(), and it shows up. thanks.

48
Support / lost texture when do animating
« on: December 21, 2011, 01:56:37 pm »
I do a setTexture on my model , and setup keyframe animation for it,
but after animate, the model become black, seems lost its texture ,
how can I keep the texture ? should re setTexture after each frame ?
thanks.

49
Support / Re: any hint on anti-alias ?
« on: December 21, 2011, 12:56:34 pm »
yes.  I am using intel onboard chips.
is there a software way to do anti-alias ?

50
Support / Re: any hint on anti-alias ?
« on: December 21, 2011, 12:15:11 pm »
I try this.
Code: [Select]
buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_GL_AA_4X);

and the result  seems the same.  am I missing something others ?

see the attachment.

[attachment deleted by admin]

51
Support / Re: any hint on anti-alias ?
« on: December 21, 2011, 11:49:07 am »
by the way, I also tested my app with jPCT desktop version.
does code
Code: [Select]
buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_HARDWARE_ONLY);

will enable anti-alias ? the result seems no effect.
look the attach image

[attachment deleted by admin]

52
Support / Re: showing 3DS model without texture
« on: December 21, 2011, 10:58:19 am »
thanks. I will check this.

53
Support / Re: showing 3DS model without texture
« on: December 21, 2011, 09:48:20 am »
jPCT loads texture coordinates and names from 3DS as well as diffuse colors (but only if there are no textures assigned). Everything else will be ignored.
If the file contains diffuse colors but still comes out black, have a look at the log output. Diffuse colors can exist in two different formats. The file itself doesn't contain any information about which one it uses, so jPCT has to guess. However, some exporters create diffuse color information that i couldn't make any sense of.
If this is the case, this will be written to the log.

here is the log, there has a line " I/jPCT-AE ( 3464): Texture named RCA_orig.jpg added to TextureManager!"
seems like jPCT-AE find a texture in the model file, but my colleague said he doesn't mapping any texture. strange.
Code: [Select]
I/jPCT-AE ( 3464): File from InputStream loaded...508231 bytes

I/ActivityManager( 1214): Process com.google.android.apps.maps:FriendService (pid 3480) has died.

D/dalvikvm( 3464): GC_FOR_MALLOC freed 480K, 25% free 13608K/18055K, external 1625K/2137K, paused 14ms

I/jPCT-AE ( 3464): Processing new material Metal-Chrome!

I/jPCT-AE ( 3464): Texture named RCA_orig.jpg added to TextureManager!

I/jPCT-AE ( 3464): Processing new material Metal-Chro1!

I/jPCT-AE ( 3464): Processing new material Metal-Chro2!

I/jPCT-AE ( 3464): Processing new material __!

I/jPCT-AE ( 3464): Processing new material __!

I/jPCT-AE ( 3464): Processing new material __!

I/jPCT-AE ( 3464): Processing new material ____!

I/jPCT-AE ( 3464): Processing object from 3DS-file: Light_Targ

I/jPCT-AE ( 3464): Processing object from 3DS-file: Camer

I/jPCT-AE ( 3464): Processing object from 3DS-file: Camera_Tar

I/jPCT-AE ( 3464): Processing object from 3DS-file: ____1

I/jPCT-AE ( 3464): Processing object from 3DS-file: rca

I/jPCT-AE ( 3464): Processing object from 3DS-file: stojan

I/jPCT-AE ( 3464): Processing object from 3DS-file: ____

I/jPCT-AE ( 3464): Processing object from 3DS-file: __7

I/jPCT-AE ( 3464): Object '__7_jPCT67' created using 144 polygons and 148 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: Cylin2

I/jPCT-AE ( 3464): Object 'Cylin2_jPCT68' created using 1872 polygons and 1012 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: Cylin1

I/jPCT-AE ( 3464): Object 'Cylin1_jPCT69' created using 1872 polygons and 1012 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: Cylin3

I/jPCT-AE ( 3464): Object 'Cylin3_jPCT70' created using 430 polygons and 294 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: __4

I/jPCT-AE ( 3464): Processing object from 3DS-file: Cylinder

I/jPCT-AE ( 3464): Object 'Cylinder_jPCT71' created using 1728 polygons and 1269 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: Cylin

I/jPCT-AE ( 3464): Object 'Cylin_jPCT72' created using 1728 polygons and 1269 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: ___NURBS

D/dalvikvm( 3464): GC_CONCURRENT freed 1075K, 20% free 14612K/18183K, external 1625K/2137K, paused 1ms+0ms

I/jPCT-AE ( 3464): Object '___NURBS_jPCT73' created using 4488 polygons and 2346 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: ___1

I/jPCT-AE ( 3464): Object '___1_jPCT74' created using 66 polygons and 68 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: ___2

I/jPCT-AE ( 3464): Object '___2_jPCT75' created using 66 polygons and 68 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: mikro

I/jPCT-AE ( 3464): Processing object from 3DS-file: Extrude_NU

I/jPCT-AE ( 3464): Object 'Extrude_NU_jPCT76' created using 196 polygons and 210 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: __3

I/jPCT-AE ( 3464): Object '__3_jPCT77' created using 1656 polygons and 923 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: _roubky

I/jPCT-AE ( 3464): Processing object from 3DS-file: __

I/jPCT-AE ( 3464): Processing object from 3DS-file: _roub_4

I/jPCT-AE ( 3464): Object '_roub_4_jPCT78' created using 350 polygons and 268 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: _roub_3

I/jPCT-AE ( 3464): Object '_roub_3_jPCT79' created using 350 polygons and 268 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: _roub_2

I/jPCT-AE ( 3464): Object '_roub_2_jPCT80' created using 350 polygons and 268 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: _roub_1

I/jPCT-AE ( 3464): Object '_roub_1_jPCT81' created using 350 polygons and 268 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: Capsule

D/dalvikvm( 3464): GC_CONCURRENT freed 1109K, 19% free 15610K/19207K, external 1625K/2137K, paused 2ms+1ms

I/jPCT-AE ( 3464): Object 'Capsule_jPCT82' created using 2160 polygons and 1194 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: __2

I/jPCT-AE ( 3464): Processing object from 3DS-file: __5

I/jPCT-AE ( 3464): Object '__5_jPCT83' created using 1188 polygons and 739 vertices.

I/jPCT-AE ( 3464): Processing object from 3DS-file: ___

I/jPCT-AE ( 3464): Name in hierarchy found: Light_Targ

I/jPCT-AE ( 3464): Name in hierarchy found: Camer

I/jPCT-AE ( 3464): Name in hierarchy found: Camera_Tar

I/jPCT-AE ( 3464): Name in hierarchy found: ____1

I/jPCT-AE ( 3464): Name in hierarchy found: rca

I/jPCT-AE ( 3464): Name in hierarchy found: stojan

I/jPCT-AE ( 3464): Name in hierarchy found: ____

I/jPCT-AE ( 3464): Name in hierarchy found: __7

I/jPCT-AE ( 3464): Name in hierarchy found: Cylin2

I/jPCT-AE ( 3464): Name in hierarchy found: Cylin1

I/jPCT-AE ( 3464): Name in hierarchy found: Cylin3

I/jPCT-AE ( 3464): Name in hierarchy found: __4

I/jPCT-AE ( 3464): Name in hierarchy found: Cylinder

I/jPCT-AE ( 3464): Name in hierarchy found: Cylin

I/jPCT-AE ( 3464): Name in hierarchy found: ___NURBS

I/jPCT-AE ( 3464): Name in hierarchy found: ___1

I/jPCT-AE ( 3464): Name in hierarchy found: ___2

I/jPCT-AE ( 3464): Name in hierarchy found: mikro

I/jPCT-AE ( 3464): Name in hierarchy found: Extrude_NU

I/jPCT-AE ( 3464): Name in hierarchy found: __3

I/jPCT-AE ( 3464): Name in hierarchy found: _roubky

I/jPCT-AE ( 3464): Name in hierarchy found: __

I/jPCT-AE ( 3464): Name in hierarchy found: _roub_4

I/jPCT-AE ( 3464): Name in hierarchy found: _roub_3

I/jPCT-AE ( 3464): Name in hierarchy found: _roub_2

I/jPCT-AE ( 3464): Name in hierarchy found: _roub_1

I/jPCT-AE ( 3464): Name in hierarchy found: Capsule

I/jPCT-AE ( 3464): Name in hierarchy found: __2

I/jPCT-AE ( 3464): Name in hierarchy found: __5

I/jPCT-AE ( 3464): Name in hierarchy found: ___

I/jPCT-AE ( 3464): Object '____jPCT84' created using 34 polygons and 36 vertices.

D/dalvikvm( 3464): GC_FOR_MALLOC freed 1210K, 20% free 16139K/19975K, external 1625K/2137K, paused 12ms

D/dalvikvm( 3464): GC_FOR_MALLOC freed <1K, 17% free 17031K/20487K, external 1625K/2137K, paused 14ms

I/jPCT-AE ( 3464): Memory load object micro done.

I

54
Support / showing 3DS model without texture
« on: December 21, 2011, 01:48:22 am »
My colleague have made  a model for me. He only apply some material to the model, and not texture.
the model looks realistic  in Cinema 4D. and he export the model to .3ds file, and I load this file to jPCT,
the model looks black in jPCT,   how can I make it looks realistic as it in Cinema 4D ? thanks.

55
Support / Re: any hint on anti-alias ?
« on: December 21, 2011, 01:03:10 am »
You can't. It isn't supported on ES 1.0 as far as i know.
thanks. so what's the minimum ES version should I get ?
or is there any other way to implement it ?

56
Support / any hint on anti-alias ?
« on: December 20, 2011, 10:03:53 am »
hi,  my app will run on a custom hardware, and it only support opengl es 1.0,
so how should  I implement anti-alias on my app with jPCT-AE ? thanks.

57
Support / Re: project 3D to 2D
« on: December 12, 2011, 01:17:25 pm »
thanks. this is exactly what I want.

58
x=4 is no axis. I'm not sure what you are after...maybe setRotationPivot() is more what you want?
oh, I mean a line parallel to Y axis and pass through  point (4,0,0). how can I rotate around this ?

59
http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#rotateAxis(com.threed.jpct.SimpleVector, float)
if I use this api,  how should I represent a axis  (for example  x=4)  in vector form ? thanks.

60
Support / Re: project 3D to 2D
« on: December 12, 2011, 11:12:13 am »
I use the following code to project a vertex to screen, and the following output seems not what I want.
the mesh belong to a object which has a parent dummy object, I have scale and transfer the parent dummy object  to let
the object totally visible in the screen.  my question is how can I project a vertex which belong to a dummy object's son object ? sorry for my poor english.
Code: [Select]
public class VertexInfo extends GenericVertexController {

@Override
public void apply() {
// TODO Auto-generated method stub
SimpleVector[] sv = this.getSourceMesh();
Logger.log("mesh");
for(int i=0; i<sv.length; i++){
Logger.log(sv[i].toString());
}
// sort out the topLeftVertex
mMesh = new SimpleVector[sv.length];
for(int i=0; i<sv.length; i++){
mMesh[i] = SimpleVector.create(sv[i]);
}
}
private SimpleVector[] mMesh = null;
public SimpleVector getTopLeftVertex(Camera cam, FrameBuffer fb){

SimpleVector s = new SimpleVector();
for(int i=0; i<mMesh.length; i++){

SimpleVector sv = Interact2D.project3D2D(cam, fb, mMesh[i]);
Logger.log("project "+mMesh[i].toString()+" to "+sv.toString());
if(sv.x <= s.x && sv.y <= s.y){
s = SimpleVector.create(sv);
}

}
return s;
}

}
the output goes here:
mesh
(200.0,-15.0,50.0)
(-200.0,-15.0,50.0)
(-200.0,-15.0,-50.0)
(200.0,-15.0,-50.0)
(200.0,5.0,50.0)
(200.0,5.0,-50.0)
(-200.0,5.0,50.0)
(-200.0,5.0,-50.0)
project (200.0,-15.0,50.0) to (1496.2988,145.64708,0.0085648345)
project (-200.0,-15.0,50.0) to (-696.2988,145.64708,0.0085648345)
project (-200.0,-15.0,-50.0) to (-5812.3594,278.66663,0.048534058)
project (200.0,-15.0,-50.0) to (6612.3594,278.66663,0.048534058)
project (200.0,5.0,50.0) to (1447.0271,253.25842,0.008179899)
project (200.0,5.0,-50.0) to (5304.495,754.7368,0.03831637)
project (-200.0,5.0,50.0) to (-647.0271,253.25842,0.008179899)
project (-200.0,5.0,-50.0) to (-4504.495,754.7368,0.03831637)
top left of current board: (0.0,0.0,0.0)

Pages: 1 2 3 [4] 5