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 - Uncle Ray

Pages: 1 ... 3 4 [5] 6
61
Support / Re: question?why checkForCollision worked only single side?
« on: September 03, 2014, 11:14:50 am »
Thx,is there a better solution for invisible collide?


62
Support / Re: how to let rotationmartrix only rotate without translation?
« on: September 03, 2014, 11:07:31 am »
how to removed?example matrix a=A.getrotatematrix.
     ┎                           ┓
     │ a00 a01 a02 a03│
     │ a10 a11 a12 a13│
a= │ a20 a21 a22 a23│
     │ a30 a31 a32 a33│
    ┖                            ┛
a.setrow(3,0,0,0,1)

means:
(a30=0,a31=0,a32=0,a33=1)



i know this is wrong,but how to correct.what is the right code?

63
Support / Re: how to let rotationmartrix only rotate without translation?
« on: September 03, 2014, 07:06:20 am »
|          |         
|          |      step:1                                                         
|          |
|          |
|        / |
|      /   |
|     /    |→→→→waypoint
|    /     |
|          |
|   ▲    |→→→→→car





|          |         
|          |      step:2
|          |
|          |
|        / |
|      /   |→→→→→→waypoint
|    ▲   |→→→→car(car must rotation,and it's face should be the same as waypoint's)
|    /     |
|          |
|          |

64
Support / how to let rotationmartrix only rotate without translation?
« on: September 03, 2014, 05:21:49 am »
I know in fact the setrotationmartix include translation,but i dont need the translation,just need rotate only,
how to solved?Any help will be appreciated.

65
Support / Re: question?why checkForCollision worked only single side?
« on: September 02, 2014, 07:25:04 pm »
I found the second solution,if i want the "A" invisible and collideable,here is the code:

{
Object3D A;
A.setTransparency(0);
Config.glTransparencyOffset=0;
}

it's perfect,invisible,and all the collide method are worked.
last question,is there a better solution for invisible and colideable?

66
Support / Re: question?why checkForCollision worked only single side?
« on: September 02, 2014, 04:45:55 pm »
I know your means,two objects set in the same place but  opposite backface(which is depended on opengl rendering clockwise or counterclockwise)

Here is my question
1.collide two sides?
your suggestion is right,the problem is solved.Thx,ego.

2.invisible object collide?
you said in jpct collide with invisible object was impossible.

Here is my idea:
could i bounding a texture which is transparent with the object.
Although the object setvisible(true),but it's texture is transparent,in fact we can't see the object.   

Is this the best method for the invisible object collide detect?
or,if there is better method,could your tell me how,
 i dont want the detailed code,just the thought.

At last,thank ego again.for your huge help with me.
 

67
Support / Re: question?why checkForCollision worked only single side?
« on: September 02, 2014, 09:37:18 am »
In my scene,i creat a car racing game,this plane is used for fense,i want it to be invsible,and keep the collition-detect,let the car runing in the track rightly.
how to make a invisble object ues the collide_detect(i know the calmindistance is ok,but others....)

68
Support / Re: question?why checkForCollision worked only single side?
« on: September 02, 2014, 04:44:03 am »
is that createDummyObj?

69
Support / Re: question?why checkForCollision worked only single side?
« on: September 02, 2014, 04:40:07 am »
sorry,i am not clear got it.how to add "collision objects" to the world that won't be rendered ?


70
Support / Re: question?why checkForCollision worked only single side?
« on: September 01, 2014, 08:20:01 am »
but when object set invisible,all collision method will never work.
because all the collision_detect  without calmindistance(the only which can detect invisible object)
can not detect invisible object.

71
Support / question?why checkForCollision worked only single side?
« on: September 01, 2014, 06:46:31 am »
SOLVED THX EGO

1.
             │
         →→ │→→→→→→→→Passed
            │
The checkforcollision is not worked,pass through the plane   



2.                   

                 │
stoped       │←←←←
                  │
The checkforcollision worked,everyththing is work.



what is wrong,anyone can tell me how to solved it,thanks.             

72
Support / Re: Scale - not sure if I have it right
« on: August 06, 2014, 03:32:57 am »
I have read it,which is very useful for me,thanks very much.

73
Support / Re: How to set light's intensity?
« on: August 05, 2014, 03:39:46 am »
Thanks above everyone, i now know it,rgb not only means the color but also means the strength of light.Strong light or weak light all belong to RGB.

74
Support / Re: How to set light's intensity?
« on: August 04, 2014, 10:53:02 am »
I can't got it,255,255,255 means white.but how to adjust the degree of white?brightter or darker.

75
Support / How to set light's intensity?
« on: August 03, 2014, 12:32:06 pm »
Light.setIntensity(r,g,b) is uesed to set colors,but i don't want to change color, just want to change the  intensity of the light.
how can i do?

Thanks for Ego.

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