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

Pages: 1 ... 4 5 [6] 7 8 9
76
Projects / cool web site
« on: March 10, 2006, 02:23:13 am »
Hello Hrfan, i just registered to this mindmaker website. The idea is interesting to me because i m also studying in the AI field ( multi agents systems and stuff like that).  I will have a closer look at your project once i will have some time . Thanks for the link. :P

77
Support / help on an LWJGL exception
« on: February 28, 2006, 11:09:10 pm »
Thanks for the methodology... The problem doesn t seem to occur anymore... And thanks for the advice also. I wasn t so familiar with the thread process behind awt events... And now i understand many things  8)

I should build a statue in your honor Egon  :P

78
Support / help on an LWJGL exception
« on: February 28, 2006, 09:48:07 pm »
Hello Egon,

I come back with the first error i mentioned on this thread (the IllegalStateException). It occured very unfrequently so i didn t check it  until now.
It seems there may be a small problem with the pickPolygon method of Interact2D

Here is the error log
Code: [Select]

Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 10964
at com.threed.jpct.Interact2D.pickPolygon(Unknown Source)
at com.threed.jpct.Interact2D.pickPolygon(Unknown Source)
at multi.world.WorldInterface.picking(WorldInterface.java:253)
at multi.world.WorldInterface$WorldInterfaceMouseMotionListener.mouseMoved(WorldInterface.java:378)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: From thread Thread[AWT-EventQueue-0,6,main]: Thread[AWT-EventQueue-0,6,main] already has the context current
at org.lwjgl.opengl.Context.checkAccess(Context.java:169)
at org.lwjgl.opengl.Context.makeCurrent(Context.java:176)
at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:251)
at org.lwjgl.opengl.AWTGLCanvas.update(AWTGLCanvas.java:269)
at sun.awt.RepaintArea.updateComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


And here is the line 253 of my program

Code: [Select]

  SimpleVector ray = Interact2D.reproject2D3D(camera, buffer, mX, mY); // mX and mY are the coordinates of the mouse pointer
  int[] res=Interact2D.pickPolygon(theWorld.getVisibilityList(), ray); // line 253




The number afte arrayIndexOutOfBound exception is never the same. I suppose it must refer to a polygon that doesn't exist or something like that.
The error occurs when i try to pick an md2 model (it occurs for different models). The md2 models I use  are taken from http://www.planetquake.com/polycount/ (i can mail them to you if you need it for tests).

Manu

79
Support / Questions concerning transparent panels / particle systems
« on: February 21, 2006, 07:26:14 pm »
Thanks Egon, your help is very appreciated. I will let you know if I do something interesting

80
Support / Questions concerning transparent panels / particle systems
« on: February 20, 2006, 09:08:26 pm »
Hello everybody :P,

I would like to know what is the correct way people use to do transparent option/text panels (with or without AWTGLRENDERER). Do you use awt panels with an opaque color? Do you blit everything? Is it performance killing?
(if you have some code to show, that would be appreciated).

And another question for Egon, I ve seen that you did a particle system with JPCT and you put it in demos. I m not familiar with that concept but I may be interested in using such a thing. Is it possible to see the code if it isn t lost? If not, do you have good resources on how to design it with java? Concerning the particle, do each of them are Object3D? and again, have you made some test concerning performance?

Thanks for all,

Manu

81
Support / help on an LWJGL exception
« on: February 16, 2006, 11:02:59 pm »
back again, i don t post the logs since i know the problem now  :evil:

82
Support / help on an LWJGL exception
« on: February 16, 2006, 11:01:54 pm »
hum hum
Both versions don`t work and show the similar exception... Here are the error log (slightly different). I just modified your .bat file in order to use java and to see the errors. It failed with LWJGL 0.97 so i tried it with the 0.99.. Same results excepted that with the 0.97, on the MT_OPENGL version, the exception is thrown in loop whereas with the 0.99 it occurs only one time (but it s not related to my main problem) and block...

I was surprised so i come back with the car demo (in the package) and try to switch to openGL mode... And it failed due to the expected exception... So i suppose that this computer doesn t support OpenGL anymore (it worked in the past)... And i have some plans about killing all the technical support of my university... What  do you prefer? a chainsaw? a shotgun? or an axe?

 :evil:  :evil:  :evil:  :evil:  (lost two days on that bug !!!!)

83
Support / help on an LWJGL exception
« on: February 16, 2006, 01:39:28 am »
hello Egon, as usual, very quick to answer  :P

I checked the video modes. There are many different ones either with 16 or 32 bits depth (never 24). I also tried to split from 32 to 16 on the desktop. No results.
I checked the car and FPS demo on the same computer. Both work but i suppose they are not using AWTGLRenderer.  Is There a demo with an AWTGLCanvas that i could test?
I tried to modify Config (glColorDepth set to 16, 24 and 32) no results...
I join some of my initialization code... maybe i m doing something wrong...

Code: [Select]

public WorldInterface(String [] args, String mapName, VirtualLearning vl){
[...]
this.setSize(width, height);
try{
       Config.glRefresh=0;
   Config.glMipmap=true;
   World.setDefaultThread(Thread.currentThread());
   buffer = new FrameBuffer(width, height, FrameBuffer.SAMPLINGMODE_NORMAL);
   buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
   myCanvas=buffer.enableGLCanvasRenderer(IRenderer.MODE_OPENGL);
System.out.println("VIDEO MODE");
VideoMode []v = buffer.getVideoModes(IRenderer.RENDERER_OPENGL);
for (int i=0; i<v.length;i++)
System.out.println(v[i]);
   this.add(myCanvas);
   Config.maxPolysVisible = 50000; // max number of polygons that can be shown
   keyMapper = new KeyMapper(myCanvas);
   theWorld = new World();
   texMan = TextureManager.getInstance();
   this.setupLighting();
   this.setupFog();
   this.loadingTerrain(mapName+Constants.SEP);
   [...]
   this.setupCamera();
   Config.tuneForOutdoor();
   new Thread() {
public void run() {
   myCanvas.addMouseListener(new WorldInterfaceMouseListener());
   myCanvas.addMouseMotionListener(new WorldInterfaceMouseMotionListener());
}
   }.start();
}
catch (Exception e){
System.err.println("WorldInterface constructor");
e.printStackTrace();
   this.exit();
}
    }  

84
Support / hello
« on: February 15, 2006, 11:14:58 pm »
Back with a new LWJGL AWTGLCanvas exception...
I have an application that runs correctly on many different computers but on some others, i have the following exception just after loading an md2 model (all are using winXP) What i don t understand... it s that my application worked on the same computer with a previous version of jpct(1.07) and LWJGL (0.93... or something like that). I change the version in order to fix another exception that looped with the previous version of LWJGL. It is fixed now and  I am currently using the lattest downloadable version of JPCT and the version 0.99 of LWJGL. There has also been some updates on the config of the computer but I don t think those are significative changes. The current video card is a rage 128 pro AGP 4X TMDS but the driver is quite old (microsoft, march 2001)...
Any idea concerning where this error comes from and if it can be bypassed without having to change the config (i don t have such right on this computer).

Thanks

Manu

Code: [Select]

Loading file R:\JAVA\projets\multi\world\models\players\alita\tris.md2
File R:\JAVA\projets\multi\world\models\players\alita\tris.md2 loaded...312396 b
ytes
Magic number: 844121161
Version: 8
Skin width: 256
Skin height: 256
Frame size: 1460
Number of skins: 0
Number of Vertices: 355
Number of Texture coordinates: 346
Number of triangles: 688
Number of GL-commands: 3402
Number of Frames: 198
Reading Texture coordinates...
Done!
Reading polygonal data...
Done!
Reading keyframes...
Done!
Coverting MD2-format into jPCT-format...
Processing: stand...
Processing: run...
Processing: attack...
Processing: pain...
Processing: jump...
Processing: flip...
Processing: salute...
Processing: taunt...
Processing: wave...
Processing: point...
Processing: crstand...
Processing: crwalk...
Processing: crattack...
Processing: crpain...
Processing: crdeath...
Processing: death...
Done!
Loading Texture...R:\JAVA\projets\multi\world\models\players\alita\alita2.jpg
Adding Lightsource: 0
apres camera
fin
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: org.lwjgl.LWJ
GLException: Could not find a valid pixel format
        at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:261)
        at sun.awt.RepaintArea.paintComponent(Unknown Source)
        at sun.awt.RepaintArea.paint(Unknown Source)
        at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.lwjgl.LWJGLException: Could not find a valid pixel format
        at org.lwjgl.opengl.Win32PeerInfo.nChoosePixelFormat(Native Method)
        at org.lwjgl.opengl.Win32PeerInfo.choosePixelFormat(Win32PeerInfo.java:5
2)
        at org.lwjgl.opengl.Win32AWTGLCanvasPeerInfo.doLockAndInitHandle(Win32AW
TGLCanvasPeerInfo.java:59)
        at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85)
        at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:245)
        ... 11 more

85
Projects / Technopolies
« on: January 23, 2006, 03:55:29 am »
As usual, your screenshots are amazing.
I have 2 questions :

Where did you get your trees? Do you know somewhere where i could find free low polygons trees with texture?

Could you explain the algorithm you used for your transitions and for rendering the terrain? And also what is the method you use for shadow?

Thanks

Manu

86
Projects / Technopolies
« on: December 26, 2005, 09:31:16 am »
Hello Cinergy studios,

Concerning MD2 models generation, Raven told me about the misfits modeler ( http://www.misfitcode.com/misfitmodel3d/  ). I installed it but had not the time to test it yet. However it sounds great for low polygons models.

Manu

87
Support / error loading in Linux
« on: December 17, 2005, 08:36:07 pm »
Just to say that this error is due to the fact that the computer simply doesn t support direct rendering (as seen when using glxinfo command).

Ciao

Manu

88
Support / small collision detection problem
« on: December 16, 2005, 12:02:18 am »
yes LEG_SIZE was negative (in fact i made it positive to make everything more understandable).
I think also it was something like what you said... Anyway, it works just fine and that's cool :P

Thanks

Manu

89
Support / small collision detection problem
« on: December 15, 2005, 11:25:52 pm »
oups, by COLLISION_ELLIPSOID, i wanted to say ELLIPSOID_RADIUS :?

manu

90
Support / small collision detection problem
« on: December 15, 2005, 11:20:16 pm »
Hello Egon, thanks to your example, i finally found what caused the bug,
It was the COLLISION_ELLIPSOID parameter that is in my call to checkForCollisionEllipsoid. I changed it for a SimpleVector i defined myself and the problem is no more. But i don t understand why it resulted in a so strange behaviour. Any idea?

Manu

Pages: 1 ... 4 5 [6] 7 8 9