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.


Topics - Uncle Ray

Pages: 1 [2]
16
Support / Is there a way to set several textures into one object3D?
« on: September 23, 2014, 06:16:48 am »
SOLVED THX EGO



In my project, there is 5 or 6 textures with one object3D.
here is my solution:
one:combined several jpgs into a big one,i think the new big one's resolution would be very large,may be fall down the jpct's fps?

the other one:split the big model(for example,A.md2)into several smaller model(a1.md2,a2,md2,a3.md2.....);
so every new small Object3D just set the only one texture

question:
which way is the best fps?
And more,is there a better way to set several texture into a one model?
Thx,ego.

17
Support / in racing game how to creat a minimap?
« on: September 18, 2014, 05:44:21 am »
    SOLVED THX EGO                                                                                                         ________________
                                                                                                             |    ___________   |
                                                                                                             |    ____●___     |  |
                                                                                                             |                  |    |  |→→→→→→→→→minimap
                                                                                                             |                  | ● |  |
_______________________________                                                     |__________|__|_|
                                                       |
                  npc_car ← ■                   |
______________________               |
                                       |  my_car  |
                                       |    ↑ ■       |→→→→→→→→→→→→my_main_world(which place the Object3D)
                                       |               |
                                       |               |



                                                                                                                           _____________________________________________________________________________________________________________

In the unity 3d ,if you want to create a minimap just set second camera,and...............

but in the jpct,how?
And i want to show whole of  the trace in the minimap,and just the location of the my_car and npc_car but not rotation,because in my game cars always forward.

i have the model of trace,how to reach that?
Anymore help would much appreciated.


18
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.

19
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.             

20
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.

21
Support / Tutorial:how to start Jbrush_AE
« on: July 31, 2014, 10:25:07 pm »
this topic only talk about android jbrush_AE.

First:1.
         open the jbrush.jar.load A.md2 or A.3ds or A.obj
        2.
        mouse left_click which object you want.
        objects-set object texture(this is the most important);
        objects-set object properties(many,like,light,coliide,.....)
        3,
         do anything you want....
        4.
        file——save scene(the scene file is .txt),in this case,i called it B.txt.
        5.
        copy eveything about your model with scene(xxx.jpg,xxx.png,xxx.3ds,xxx.md2,xxx.obj)to        /assets/       
        6
         the systerm default modle is floor.3ds,please remove it
        in jbursh. if you dont remove it,in the jbrush .the jbrush will never work......
        this is the most useful,please remember it.



Second: open your eclipse(i use "HelloShader" for my example)           
            1:
              mouse-right-click the HelloShader,
              properties-java buid path-Libraly-Add exteral jar-jbush_ae_lib.jar
           2:
               package com.threed.jpct.shader;//this the helloshader default,you dont have to code it.
               import java.util.Vector;//you have to code it
               import com.jbrush.ae.*;//you have to code it
               import android.content.res.AssetManager;//only jbrush ae must code it.
          3:
             public class HelloShader extends Activity implements OnScaleGestureListener
             {
               private Vector<EditorObject> objects;
          private Vector<LightData> lights;
          private Object3D object_jpct;// this method will translate from jbrush's objcet to jpct's Object3D.
              }
          4.public void onSurfaceChanged(GL10 gl, int width, int height) //this is default dont need code.....
        {
     Resources res = getResources();
          world.addObject(plane);  //this is default,dont code it,but folloed the jbrush code must set under  the  world.addObject();
          AssetManager assetManager=getAssets();//just for jbrush_ae
      objects=Scene.loadSerializedLevel("B.txt",  objects,world, assetManager);//it is used for eclipse load the resource of /assets/
           object_jpct=Scene.findObject("id", objects);//translate the id(which in jbrush objects-set object properties you can get and edit            it)to Object 3d.             
           }





Last:that is all,but there still have some important information must be told         
             1.world.addObject(object_jpct);// it is wrong,becasuse the codes before have realize the  display of object_jpct already.             
             2.the texture's size 512*512,1024*1024,256*256,etc....
             3,in eclipse if you update or edit your resource of  /assets/  ,please refresh or clean and then run.




                                                                                           THANK YOU VERY MUCH-----------------------------by 409544041



           
         

22
i know the most important feature of simplevector is that,every simplevector have a direction.
for example ,if i want cal the angle of a:(0,0,-1),b(0,0,1).
if use a.calcAngle(b),
the result is 0.
in fact the result is wrong,in the reality,the result is pi/2.

may be i can use other math method,but it is not convenient.

Any suggest?i just want cal the more correcter angle of simplevector,which has a direction.


 
 

Pages: 1 [2]