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
16
Support / Re: Mouse Mapper
« on: June 04, 2007, 01:31:16 pm »
Hi EgonOlsen

    Thanks for the code. But I could not make it work. I called mouse.hide(); in gameLoop()  (fps example),  Is it just to call method or some thing else to be done.

    With Regards
    San14

17
Support / Re: Mouse Mapper
« on: June 02, 2007, 09:42:04 am »
Hi EgonOlse
         
       I have tried to understand with my limited gaming knowledge. I have made changes to this method and tried to call in fps game loop as  move(theWorld,mouse);
But did not work. could you plz help me out with this. Am i near to the solution

                                           
         public void move(World world,  MouseMapper mouse) {
           SimpleVector pos = getPosition();
           if (pos != null) {
              
               pos.add(new SimpleVector(0, ellipsoid.y, 0));
               SimpleVector dir = world.checkCollisionEllipsoid(pos, null, ellipsoid, 1);
               pos.add(new SimpleVector(0, -ellipsoid.y, 0));
               dir.x = 0;
               dir.z = 0;
               pos.add(dir);
               setSpeed(dir);

               pos.add(new SimpleVector(0, ellipsoid.y, 0));

            
               Matrix rot = getRotation();

               int dx = mouse.getDeltaX();
               int dy = mouse.getDeltaY();

               float ts = turnSpeed ;
               float tsy = ts;

               if (dx != 0) {
                   ts = Math.abs(dx) / -500f;
               }
               if (dy != 0) {
                   tsy = Math.abs(dy) / 500f;
               }

               if (dx < 0) {
                   viewRot.rotateAxis(viewRot.getYAxis(), ts);
                   rot.rotateY(ts);
               }

               if (dx > 0) {
                   viewRot.rotateAxis(viewRot.getYAxis(), -ts);
                   rot.rotateY( -ts);
               }

              
               pos.add(new SimpleVector(0, -ellipsoid.y, 0));
              camera.setPosition(pos);
           }
          
       }
                                           


With Regards
San14

18
Feedback / Re: Members' backgrounds...
« on: May 31, 2007, 01:04:42 pm »
HI friends
      I am Indian citizen. I have done my Masters In Computers. I am working on Java from 2 years. But gaming world has caught interest. As profession gaming is new to me but could do lot more then what i thought, Due to simplicity of JPCT and Heats of to forum members specially EgonOlsen for solving all doubts. I have a desire to do lot in same using JPCT.


Best of Luck To JPCT....

San14

19
Support / Re: Mouse Mapper
« on: May 31, 2007, 12:20:51 pm »
Hi EgonOlsen

I tried for your  this  suggesion 
Quote
  If you don't want/need that, do it directly on the camera instead. What you basically have to do, is to get the delta-values in x/y direction from the mouse (the mapper does this for you) and rotate accordingly. It's really quite simple.


  I don't know I am dong right or wrong This is something I tried But could not get result Could give some more hints to me



         
class JPCTDemo  implements Runnable{

    private MouseMapper mouse = null;


  JPCTDemo(String[] args) {
           mouse = new MouseMapper();
   }

   private void gameLoop() {
         while (!exit) {

               if (!isIdle) {
           
                      long difTicks=(timerTicks-ticks);
                      ticks=timerTicks;

                for (int i=0; i<difTicks; i++) {
                    mouse.getDeltaX();
                       mouse.getDeltaY();           
   
                     doMovement();
                }
      if (openGL) {
                            
                     pollLWJGLKeys();
                }

     }
   }


}
         


   Do I need to change at or some other place to
   
private void keyAffected(int code, boolean event) {
      switch (code) {
         case (KeyEvent.VK_ESCAPE): {
            exit=event;
            break;
         }


With Regards
San14
 

20
Support / Re: Mouse Mapper
« on: May 31, 2007, 09:52:15 am »
Hi
    Mouse Movement in advanced example in the News-section is quit good and that is what i am looking for. But is much dependent on client server base. I find quit difficult to change it for my Stand alone code (fps example ) Could you plz give some simple example for similar type. That would be of great help to beginners like me.


With Regards
San14

21
Hi EgonOlsen

      That would be of great help to me, What is that method ? name


With Regards
San14

22
Support / Re: Mouse Mapper
« on: May 29, 2007, 12:11:51 pm »
Thanks EgonOlsen

    I increased the heap space (java -Xmx256m ....)  to (java -Xmx456m ....) and Its working fine now(Using bat file ) .
  In Code what do i need to chage to increase the heap space.  To make the code working on my system.


With Regards
San14

23
Support / Re: Mouse Mapper
« on: May 29, 2007, 11:28:49 am »
Hi EgonOlsen


     I tried web start and is working fine But when I downloaded code for it and compiled, It comes to a  black screen and then comes out with error message as
 

Loading textures...
Loading level...
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading file from InputStream
File from InputStream loaded...23908 bytes
Processing new material Cielo!
Processing object from 3DS-file: Sphere02
Object 'Sphere02_jPCT-1' created using 1024 polygons and 514 vertices.
Java version is: 1.5.0_06
-> support for BufferedImage
Version helper for 1.2+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Current mode:800 x 600 x 32 @70Hz
Driver is: ialmrnt5/6.14.10.3847
OpenGL renderer initialized (using 4 texture stages)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space


With Regards
san14

24
News / Re: An advanced example
« on: May 26, 2007, 08:54:09 am »
Hi
     Thank's for all support, Its working fine now I had problem with my graphic driver.
Really great good graphics, light and nice controls.


With Regards
San14

25
News / Re: An advanced example
« on: May 25, 2007, 01:19:54 pm »
Hi EgonOlsen
       
    It worked Thanks, Now it is giving me error for vedio mode. I will change vedio mode and try again.
     

Loading file from InputStream
File from InputStream loaded...23908 bytes
Processing new material Cielo!
Processing object from 3DS-file: Sphere02
Object 'Sphere02_jPCT-1' created using 1024 polygons and 514 vertices.
Java version is: 1.5.0_06
-> support for BufferedImage
Version helper for 1.2+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Can't find desired videomode (800 x 600 x 24) - searching for alternatives
Current mode:800 x 600 x 32 @1Hz
[ Fri May 25 16:35:04 IST 2007 ] - WARNING: ZBuffer depth of 16 not supported - trying something else now...!
[ Fri May 25 16:35:04 IST 2007 ] - WARNING: Does this machine actually support OpenGL? Trying everything at lowest settings now!
[ Fri May 25 16:35:04 IST 2007 ] - ERROR: Can't set videomode - try different settings!
[ Fri May 25 16:35:04 IST 2007 ] - ERROR: java.lang.RuntimeException: [ Fri May 25 16:35:04 IST 2007 ] - ERROR: Can't set videomode - try different settings!
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space



With Regards
San14

26
News / Re: An advanced example
« on: May 25, 2007, 12:45:48 pm »
HI EgonOlsen
     
     I tryed with 800 * 600 vedio on my system But still it gives me same error for web start.  I download the sources and got this error. I am using eclipse.3.2.2
   
    I dont have any extra vedio card. My system is P-915 Mother board with built in card. Is that a problem. Do i need to put extra vedio card


Loading textures...
Exception in thread "main" java.lang.NullPointerException
   at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
   at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
   at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
   at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
   at java.io.ObjectInputStream.<init>(Unknown Source)
   at src.feud.testgame.BlueThunderClient.load(BlueThunderClient.java:660)
   at src.feud.testgame.BlueThunderClient.run(BlueThunderClient.java:250)
   at src.feud.testgame.BlueThunderClient.<init>(BlueThunderClient.java:78)
   at src.feud.testgame.RunGame.main(RunGame.java:8 )



With Regards
San14

27
Support / Re: V R glasses Support
« on: May 24, 2007, 03:07:40 pm »
Hi thanks for your help, But still not clear will JPCT  work directly with VR Glasses.? or need to do some codding for the same .

With Regards

San14

28
Support / Re: Mouse Mapper
« on: May 24, 2007, 03:04:57 pm »
Hi EgonOlsen

    I am trying to implement MouseMapper (One from News-section) in JPCTDemo.java type example. I have called
       
   
        private MouseMapper mouse = null;

        mouse = new MouseMapper(buffer);
   


     and called mouse = new MouseMapper(buffer); in gameLoop(); in JPCTDemo.java  Is this, is the way to do it. Could you suggest me for the same. I am not geting it.


With Regards
San14



29
News / Re: An advanced example
« on: May 24, 2007, 10:29:07 am »
Hi

http://www.jpct.net/demos/feud/feud.jnlp.

I tried this link and is giving me this error message.?


java.lang.RuntimeException: [ Thu May 24 16:46:19 IST 2007 ] - ERROR: java.lang.RuntimeException: [ Thu May 24 16:46:19 IST 2007 ] - ERROR: Can't set videomode - try different settings!
   at com.threed.jpct.Logger.log(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at feud.testgame.BlueThunderClient.initWorld(BlueThunderClient.java:414)
   at feud.testgame.BlueThunderClient.run(BlueThunderClient.java:251)
   at feud.testgame.BlueThunderClient.<init>(BlueThunderClient.java:78)
   at feud.testgame.RunGame.main(RunGame.java:8 )
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


With Regards
San14

30
Support / V R glasses Support
« on: May 22, 2007, 09:57:58 am »
Hi

  Does JPCT support Virtual reality glasses .  Did some one used in JPCT if so,  your Ideas and suggestion would be of great help to me..


With Regards

San14

Pages: 1 [2] 3 4