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

Pages: 1 [2] 3 4 ... 8
16
Feedback / How to read a text file from a website?
« on: October 01, 2008, 03:17:39 am »
Hi all, I need to read a text file from a website, for example:

http://localhost:2020/project/file.txt

I must read that file from my desktop application. Any ideas? This is really urgent and I dont have any ideas, I never have done that but was trying to do it with Streams, Files, URI, URL, etc etc. But I am just gessing and coding. Please any help would be very appreciated.

17
Feedback / Google SketchUp 6
« on: September 30, 2008, 04:17:42 pm »
Hey, check this out. It seems to be quite easy to draw buildings for games and can export to 3ds and other formats in the payed version.

http://sketchup.google.com/

18
Support / Everything is 6.50 MB?
« on: September 30, 2008, 02:30:11 am »
Hi, I tried to save the whole world as a file to read it without having  to load everything again, and I noticed that the outputfile was 6.50 MB, as that is too expensive to download I better tried to save just a small Object3D to see if works. but I found that the new outputfile was 6.50 MB again. Then I tried to save a smaller Object3D and I notices that the file was again 6.50 MB???


Why does this happens?

19
Support / Problem when getting a char from the KeyMapper
« on: September 29, 2008, 06:49:05 am »
Hi, I have almost finished the whole chat stuff on my game. I have 2 problems:

1.- WHen I press BackSpace once it seems to register twice or something becausse my event is fired two times. this is the code:

Code: [Select]

public void appendChatChar () {
   
    //System.out.println ("Haciendo el appendChatChar: "+mensajeChat);
   
        boolean estado=false;
       
    do {
            estadoTeclas=mapaTeclas.poll();
            if (estadoTeclas!=KeyState.NONE) {
            estado=estadoTeclas.getState ();
            if (estadoTeclas.getKeyCode()==KeyEvent.VK_ENTER) {
            //System.out.println ("enviando el mensaje");
            mensajeSalida=mensajeChat;
            chateando=!chateando;
            render.setEnChat(false);
            } else if (estadoTeclas.getKeyCode()==KeyEvent.VK_ESCAPE) {
            //System.out.println ("dejando de chatear");
            mensajeChat="";
            chateando=!chateando;
            render.setEnChat(false);
           
            } else if (estadoTeclas.getKeyCode()==KeyEvent.VK_BACK_SPACE || estadoTeclas.getKeyCode()==KeyEvent.VK_DELETE) {
            System.out.println ("BORRANDO UN CARACTER DEL CHAT");
            if (mensajeChat.length()>=1)mensajeChat=mensajeChat.substring(0, mensajeChat.length()-1);
            render.setMensajeChat(mensajeChat);
            } else {
            char C=estadoTeclas.getChar();
            int h=C;
            if (h!=0)mensajeChat=mensajeChat+C;
            render.setMensajeChat(mensajeChat);
           
            }
               
            }
        } while (estadoTeclas!=KeyState.NONE);
   
    }


The estadoTeclas.getKeyCode()==KeyEvent.VK_BACK_SPACE is always being fired two times, always. Anyway to fix it?



2.- When I get get the events for my game everything goes well, but when doing the chat stuff, for each key typed and appended to a String I am receiving this: For example I write HELLO and get H(blank)E(blank)L(blank)L(blank)O(blank)

char C=estadoTeclas.getChar();
int h=C;//used this to control it
if (h!=0)mensajeChat=mensajeChat+C;
render.setMensajeChat(mensajeChat);

I guess Its a bug on the getChar method.

20
Projects / SS3D
« on: September 26, 2008, 03:54:36 pm »
Hi, I am working a new project. The project short name is SS3D. The main idea is to load house maps, walking in the interior and changing on execution time the textures of floors, walls, ceilings, and things like that. It doesnt seem to be a complex project but I post the entry here to ask some help when needed.

21
Support / Out of memory when changing from one ogl windows to another.
« on: September 09, 2008, 04:39:47 pm »
Hi I ran my Flier Match and fixed some bugs when I tested it:

Machine 1: Server
Machine 1: Client 1
Machine 1: Client 2

I had the ran well, but when I press alt+tab and changed from one OpenGL fullscreen client to the other I got an exceptio that it runs out of memory. I cant post the exception now becausse I forgot my pen drive at home.  :-[

It seems to be out of video memory becausse is not the typical message when running of of ram memory. I will post the exception tomorrow but I post this today becausse maybe someone has an idea anout how to fix it.

22
Support / Problem loading applet
« on: August 29, 2008, 06:57:39 am »
Hi I made an applet and signed it, I extractes the class folder from lwjgl.jar, lwjgl-util.jar and jpct.jar and put the in the classpath. I coipied the lwjgl.dll in the system32. and I am getting tis:


Java version is: 1.5.0_07
-> support for BufferedImage
Version helper for 1.2+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
java.lang.LinkageError: Version mismatch: jar version is '12', native libary version is '11'
   at org.lwjgl.Sys.<clinit>(Sys.java:105)
   at org.lwjgl.opengl.AWTGLCanvas.<clinit>(AWTGLCanvas.java:88)
   at com.threed.jpct.AWTGLRenderer.init(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableGLCanvasRenderer(Unknown Source)
   at visor.Visor.<init>(Visor.java:55)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.lang.Class.newInstance0(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at sun.applet.AppletPanel.createApplet(Unknown Source)
   at sun.plugin.AppletViewer.createApplet(Unknown Source)
   at sun.applet.AppletPanel.runLoader(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)



Any idea?

23
Support / How to set or change tiling on an object
« on: August 28, 2008, 08:07:48 pm »
Hi, i am working on a app to view some houses from inside and outside, the idea is that the user is able to change dinamicly the texture of floor, walls, etc.

Now my problem is:
 - When I use a texture like wood, it has to be applies on some way, but if I use another one like

or




then I must adjust the tiling on somehow to make fit a determined amount of those textures in a squared meter.

The first pic may be displayed in a distribution from 2x2

but the second one may be only one of those for each squared meter.

Any ideas, any suggestion about how to work with this kind of project.

24
Support / Question about textures
« on: July 21, 2008, 08:17:44 pm »
Hi, here is my question. Can I load a TextureManager from an object without having the files on my disc, for example lets say I use an ObjectOutputStream to save the TextureManager, can I restore it fro mthat file eve withput having the jpg files on my disc? will it work?

25
Support / Object3d got from a database
« on: July 12, 2008, 01:38:29 am »
Hi, Can I make an Object3D from a database information, I mean, I want to save all the 3ds files and textures on a database as blob and reconstruct them to use them in jpct. I have no idea about this, any clues?

26
Support / when a collisionEvent is fired
« on: May 20, 2008, 11:39:08 pm »
Hi, I want to know when the collisionListener recognizes a collision. Do I need to do use a chekCollision.. method to make this happens or it will be recognized just by moving the object arround my world without calling to a check collision method for that object3d?

27
Feedback / How to use ogl on an applet
« on: May 15, 2008, 07:25:37 pm »
Hi, I have already done applets with opengl by signing them, but I dont know how to distribute them, because of the dll file needed. My question is? How to pack, join, merge, or whatever, all the dlls needed for running an applet that use dlls!!!!!

28
Support / how to know the target of a collision.
« on: May 12, 2008, 07:34:04 pm »
Hi, I want to know the target of a collision but the CollisionEvent only has getSource () and getObject () that are the same object inmost cases, but a method getTarget () is missing. Is there any way to get the target of a collision is my CollisionListener is on the source of the collision.....?  >:(

I want to put the collisionListener on the bullets to be fired and when they collide with something do something, but on this situation theObject and getSource returns the same object that is the bullet.

29
Hi, I think there is a bug in CollisionListener or addCollisionListener or something. This is the problem :o

I have a class (on the server side) wich implements the CollisionListener, when I do:

first: Object3D.addCollisionListener (this);
then: ObjectOutputStream.writeObject (Object3D);

I am getting a not Serializable exception. I dont know why.

But if instead I try to do this:

first: ObjectOutputStream.writeObject (Object3D);
inmediatly: Object3D.addCollisionListener (this);


I got an OptionalDataException with EOF=true.


I guess that there is some kind of problem with serialization and the collision listening.

30
Support / Coloring everything
« on: April 15, 2008, 08:00:05 pm »
Hi, Is there (or will be) anyway to colour all the FrameBuffer, for example to see everything with a red tint filter or something.

I want to use this to colour everything a few milliseconds when receiving a shot.

Pages: 1 [2] 3 4 ... 8