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

Pages: [1] 2 3 4
1
Support / Increase View Area
« on: November 17, 2007, 03:51:24 pm »

HI 
    I want to increase view area in the jpctDemo type example is it possible. Could any one help me. What is the default angle of vision used in game engine?


With Regards
San14


2
Support / Re: Mouse Mapper
« on: August 09, 2007, 03:15:39 pm »
Hi EgonOlsen
   
       Please can you tell me, which portion or file implements this kind of mouse movement in Advance Example.


With Regards
San14

3
Support / Re: Mouse Mapper
« on: August 08, 2007, 12:46:09 pm »
Hi EgonOlsen

      I looked for movements in Advance example but could not make out. But I am able to achive the movements using this code. But the problem is that When I take turn the user. The user forgets the direction and moves in other direction.


  if (mouse.buttonDown(0)) { 
             SimpleVector s=camera.getDirection();
           SimpleVector ss=new Matrix().getZAxis();
                   theWorld.checkCameraCollisionEllipsoid(ss, UP_MOVEMENT, 2, 2);

       
     }
    if (mouse.buttonDown(1)) {              
           SimpleVector s=camera.getDirection();
           SimpleVector ss=new Matrix().getZAxis();
                   theWorld.checkCameraCollisionEllipsoid(ss, UP_MOVEMENT, -2, 2);
     }



Can suggest how to go about this


With Regards
San14

4
Support / Re: OutOfMemoryError
« on: July 25, 2007, 07:38:29 am »
Hi

    Thanks for suggestion I will work it out today. And I am sorry it is not during compile time. As EgonOlsen  said I am using Eclipse  So it compiles and runs at same click of run button. So could not make out the difference.

With Regards

San14

5
Support / Re: OutOfMemoryError
« on: July 24, 2007, 04:09:30 pm »
Hi Mizuki Takase

   Thanks for your reply. But I am facing this problem while compiling and after this error message It comes out of compilation.

With Regards
San14

6
Support / OutOfMemoryError
« on: July 24, 2007, 03:22:47 pm »
HI
   I have added some object to existing, working project. and now I am getting memory out of  error as

     
Quote
               Processing object from 3DS-file: Line39
               Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
     

How do I over come this. Can some one help me for the same


With Regards
San14

7
Support / Re: Glass Effect
« on: July 19, 2007, 09:15:25 am »
HI

    Thanks Melssj5 It worked It gave some reflection effecte to glass.
    Can we have some thing like Mirror effect. Where user can see him self. In the Mirror ?
     

      Object3D[] levelParts = Loader.load3DS("3ds" + File.separator + "Full_final_Light.3DS", 0.02f);     
       
      level = new Object3D(0);
      glass = new Object3D(0);
   
      for (int i = 0; i < levelParts.length; i++) {
         Object3D part = levelParts;
     
         part.setCenter(SimpleVector.ORIGIN);
         part.rotateX( (float) - Math.PI / 2);
         part.rotateMesh();
         part.setRotationMatrix(new Matrix());
     
      if (!part.getName ().startsWith("Glass"))
          level = Object3D.mergeObjects(level, part);
           
      else {
          glass = Object3D.mergeObjects(glass, part);
            
         }
      }
       
       glass.setTransparency (1);

   
       glass.createTriangleStrips(2);
       glass.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
       glass.setCollisionOptimization(Object3D.COLLISION_DETECTION_OPTIMIZED);
   
       glass.setTexture("envmap");
       glass.setEnvmapped(Object3D.ENVMAP_ENABLED);
       glass.setEnvmapMode(Object3D.ENVMAP_WORLDSPACE);
     
       theWorld.addObject(glass);
     

     


With Regards
San14

8
Support / Re: Glass Effect
« on: July 18, 2007, 10:43:56 am »
HI

    Thanks A lot EgonOlsen and Melssj5 It worked.  :D
    Can I Increase Reflection on Those glass Object


With Regards

San14

9
Support / Re: Glass Effect
« on: July 17, 2007, 01:49:14 pm »
 
 Hi
    Do i need to load glass object separately.
    My object name is Box62 But it is one of The part of entire room in max file
    I tried in this way.
 
 
   Object3D[] levelParts = Loader.load3DS("3ds" + File.separator + "Full_final_Light.3DS", 0.02f);   
   
    level = new Object3D(0);

    for (int i = 0; i < levelParts.length; i++) {
      Object3D part = levelParts [ i ];
 
      part.setCenter(SimpleVector.ORIGIN);
      part.rotateX( (float) - Math.PI / 2);
      part.rotateMesh();
      part.setRotationMatrix(new Matrix());
     
      level = Object3D.mergeObjects(level, part);
     
      Object3D part2 = levelParts[582]
      part2.setTransparency(155);
     
    }
With Regards
San14

10
Support / Glass Effect
« on: July 16, 2007, 08:38:26 am »
HI
   
    I have fps type example. Which contains some objects of glass. I have given transparency to those object in MAX. I want it to appear as glass when I load it to jpct.  How do i handle it. Can any one help me for same. or any eacmples.

I tried to put glass texture to those object's, but did not serve the purpose.

With Regards
San14

11
Support / Re: Mouse Mapper
« on: July 11, 2007, 12:22:47 pm »
HI
    I am able to move in environment using mouse. I want to move in front and back , even if i am seeing at roof..etc.

   Means Player should not leave the floor while seeing roof and walking ahead.
   This is the code for normal movement. Can some one help me out with it.


 if (mouse.buttonDown(0)) {              
         SimpleVector s=camera.getDirection(); 
         theWorld.checkCameraCollisionEllipsoid(s, UP_MOVEMENT, 2, 2);
     }

 if (mouse.buttonDown(1)) {              
           SimpleVector s=camera.getDirection();
         theWorld.checkCameraCollisionEllipsoid(s, UP_MOVEMENT, -2, 2);
    }



With Regards
San14

12
Support / Re: GUI which Support JPCT
« on: June 13, 2007, 02:36:36 pm »
Hi
     Can any one help me for creating Gui (front end )  in JPCT.

                     
After scene rendering you get a FrameBuffer - there you can draw your GUI in its current state.
Can any one give small example for same..

With Regards
San14 

13
Support / Re: Mouse Mapper
« on: June 13, 2007, 12:39:31 pm »
Thanks EgonOlsen
     
        It worked.  :D

With Regards
San14

14
Support / Re: Mouse Mapper
« on: June 13, 2007, 11:27:40 am »
HI EgonOlsen

     The mouse code is working fine. I have tried to put forward movement as
                 
            float speedForMouse=3;

             if (mouse.buttonDown(0)) {
                      SimpleVector s=camera.getDirection();
                theWorld.checkCameraCollisionEllipsoid(s, UP_MOVEMENT, 2, 2);              
              }

             
            And is Working fine
           How do I do same for Right Click of Mouse


With Regards
san14

15
Support / Re: Mouse Mapper
« on: June 05, 2007, 08:17:50 am »
Hi EgonOlsen
     
        Is it what I need to do As
       private void initMouseMapper(){
                            mouse.hide();
     
              }
              private void gameLoop() throws Exception {
                            move();
             }
       
       



         Is some thing else to be done in initMouseMapper(). As i tried with this and could not do.


With Regards
San14



Pages: [1] 2 3 4