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

Pages: 1 ... 3 4 [5] 6 7 ... 12
61
Support / Re: The question about billboarding
« on: December 30, 2014, 06:03:29 am »
Thank you Lobby, I will try it and tell you the result  :)

62
Support / Re: The question about billboarding
« on: December 29, 2014, 02:37:24 pm »
I mean the object  is't  rotate correctly. it seems not rotate. The object is not enalbe billboarding. I'm sorry for my poor english :)

If object must setRenderHook ?  I only calculat in ondrawframe .

63
Support / Re: The question about billboarding
« on: December 29, 2014, 02:54:11 am »
Thank you Lobby, I use

                  SimpleVector dir = world.getCamera().getPosition().calcSub(obj.getTransformedCenter());
                  dir.y = 0;
                  dir = dir.normalize();
                  dir.scalarMul(-1);
                  SimpleVector up = new SimpleVector(0, -1, 0);
                  obj.setOrientation(dir, up);

in ondrawframe, but it seems no effect , why? thanks


 Does your method  must set camera in special ? my camera is movement in my game.

64
Support / Re: The question about billboarding
« on: December 28, 2014, 02:18:49 pm »
Thanks for you advise ! :)

65
Support / Re: The question about billboarding
« on: December 28, 2014, 02:08:21 pm »
Hi Egon,I have no idea,  could you give me some example code? Thank you very much !

66
Support / Re: The question about billboarding
« on: December 28, 2014, 01:32:45 pm »
Thank you Lobby, How to  calculate the the rotation? Could you give me some example code ? Thanks !

67
Support / The question about billboarding
« on: December 28, 2014, 08:34:38 am »
Hello Egon, I  use a single plane  to show tree in my game, I can place it on the "ground" when  not set it billboarding , but when I set it billboarding, It float abover the "ground", and I can't place it  on the "ground", It  seems out of contral ( I try used translate function). Could you help me to resove this question?  Thanks a lot ! :)

68
Support / Re: The question about setTexture
« on: December 17, 2014, 01:29:28 am »
Oh , thanks very much ! :)

69
Support / Re: The question about setTexture
« on: December 16, 2014, 02:49:15 pm »
Thanks Egon.  Another question , when I run game , it always output this log:

12-16 21:43:20.124: D/dalvikvm(2414): GC_CONCURRENT freed 1952K, 36% free 9981K/15367K, external 1326K/2221K, paused 4ms+4ms
12-16 21:43:26.540: D/dalvikvm(2414): GC_CONCURRENT freed 1956K, 36% free 9969K/15367K, external 1326K/2221K, paused 6ms+3ms
12-16 21:43:33.237: D/dalvikvm(2414): GC_CONCURRENT freed 1945K, 36% free 9978K/15367K, external 1326K/2221K, paused 4ms+3ms
12-16 21:43:40.153: D/dalvikvm(2414): GC_CONCURRENT freed 1945K, 36% free 9987K/15367K, external 1326K/2221K, paused 6ms+5ms
12-16 21:43:47.040: D/dalvikvm(2414): GC_CONCURRENT freed 1963K, 36% free 9978K/15367K, external 1326K/2221K, paused 4ms+3ms
12-16 21:43:53.937: D/dalvikvm(2414): GC_CONCURRENT freed 1954K, 36% free 9978K/15367K, external 1326K/2221K, paused 4ms+3ms
12-16 21:44:00.814: D/dalvikvm(2414): GC_CONCURRENT freed 1954K, 36% free 9978K/15367K, external 1326K/2221K, paused 3ms+3ms
12-16 21:44:07.850: D/dalvikvm(2414): GC_CONCURRENT freed 1954K, 36% free 9975K/15367K, external 1326K/2221K, paused 7ms+3ms

What's this ? and How to resolve this ?  Thanks !

70
Support / Re: The question about setTexture
« on: December 16, 2014, 09:47:49 am »
hello, "using a lot of different textures in an unoptimizable rendering order (i.e. transparent objects)" , I don't know how to config rending order, is this do by jpct default? thanks

71
Support / Re: The question about setTexture
« on: December 15, 2014, 01:40:13 pm »
Thanks Egon, I only want to improve the game performace by this way, thanks for your advise. I want to know  If packed all textures into one texture,  the jpct can perfomace a  fast GL draw?

72
Support / Re: The question about setTexture
« on: December 15, 2014, 01:19:10 pm »
Thanks Egon,  Could you give me a simple way  to solve this problem?  I'm sorry for  I realy no idea  :-[ (Modify either the texture coordinates at the edges or the texture atlas, I 'm not clear how to do this, could you give me a simple example ?)

73
Support / Re: The question about setTexture
« on: December 15, 2014, 10:10:52 am »
Thanks , I  shrink the uv ( 0 changed to 0.001 and 1 changed to 0.009)  , it seems edge is ok , but I think this is not a good solution,  when one model use one texture  everything is ok ,but when one model use part of texture it's not ok , what's the diffrent between this case?

I found  when Object3D use transparent mode , there is a black border around the model.  If use a texture , setClamping(true) can resovle this issue , but when use part of  texture , it's no effect .

74
Support / Re: The question about setTexture
« on: December 15, 2014, 08:46:14 am »
Your great !   I got it , as you say  that bilinear filtering might cause bleeding into adjacent textures at the edges,The road texture by repeat mode,  and  there looks somethings like a black line at the edges , How to resove  this issue?

75
Support / Re: The question about setTexture
« on: December 15, 2014, 08:25:26 am »
Thanks Egon,My means  I have some 3d models ,i,e  3 models 1.ser 2.ser 3.ser , and each model  have  a textue , i,e  1.png 2.png and 3.png , now I use texturePacker tool pack  1 2 3 .png to  a  single picture  x.png , and I  want to set each model  use this single texture , How can I do this ?

Thanks a lot ! :) 

Pages: 1 ... 3 4 [5] 6 7 ... 12