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

Pages: 1 2 [3] 4 5 ... 105
Support / Re: Drawing a Graphic on a Separate Thread
« on: February 01, 2018, 05:34:44 pm »
It's a pre-splash graphic that's meant to run while the game is loading. Load time is as much as 20 seconds and I don't want a black or even just a static screen for that long.

Support / Drawing a Graphic on a Separate Thread
« on: February 01, 2018, 03:35:33 am »
Hardware renderer in (lwjgl's frame) fullscreen throws a RuntimeException ("No OpenGL context found in the current thread."). I created a WorldProcessor with two threads as well as tried it the lwjgl way (GLContext.useContext()). Neither worked.

Support / Re: Problem with animation model
« on: January 27, 2018, 06:29:26 am »
Any chance they're texture transparencies and the problem is a UV problem (perhaps caused by your animation)?

Support / Re: Interact2D
« on: January 20, 2018, 06:26:31 am »
I went with the mouse-follow demo and ray-cast. It's working but, academically, I'd still like to know how to make use of the method which takes the camera z value.

Support / Re: Interact2D
« on: January 19, 2018, 06:52:08 pm »
So how do I get the plane's z in cameraspace?

Support / Re: Interact2D
« on: January 18, 2018, 09:47:20 pm »
I don't need the height in wordspace. Only the x and the z.

Support / Re: Interact2D
« on: January 17, 2018, 09:29:51 pm »
I have x and y in screen coordinates, so about which z are you talking? And could you show me a snippet?

Support / Interact2D
« on: January 16, 2018, 08:38:03 pm »
I'm trying to make a little level editor. Right now, all it will do is to allow you to position some enemies by clicking on the 3d map. I'm not very interested in the y coordinate, because they will place themselves relative to the floor's height). But the following code always places the enemiies in the same (marked) spot:

Code: [Select]
     public void mouseClicked(MouseEvent e) {
Point p = e.getPoint();
SimpleVector p3d = Interact2D.reproject2D3DWS(camera, buffer, p.x, p.y);
System.out.println("p3d: "+p3d);
p3d.y = -2000f;
objects[numberOfObjects++] = Primitives.getCube(100f);

Support / Re: Does TextureManager Operate on a Parallel Thread?
« on: January 13, 2018, 06:41:15 am »
It did because the loader and the texture weren't in the same directory. I fixed it by getting the absolute path. Would it be possible to add a line identifying the fact that the problem is coming from trying to load the texture, rather than when loading the model?

Support / Re: Does TextureManager Operate on a Parallel Thread?
« on: January 12, 2018, 06:17:19 pm »
It's not the model loader that's failing, it's the TextureManager. Any chance you could improve the error message here, to indicate that it's the TextureManager that's failing to add the texture?

Support / Re: Does TextureManager Operate on a Parallel Thread?
« on: January 12, 2018, 05:57:40 pm »
I have loadModels() method whose first line is loadTextures(). But the loader fails at finding the texture even before loadTextures prints its name. What gives?

Support / Does TextureManager Operate on a Parallel Thread?
« on: January 12, 2018, 05:45:37 pm »
If so, how do I wait for it? My app is failing to find a texture after it's been added to the TextureManager.

Support / Re: rotateMesh Bug
« on: January 12, 2018, 03:45:29 am »
What about some logic to hide the fact that the matrix has not been cleared? Is that too convoluted? Even just a better message when throwing the exception would help. But in this particular example, you select your ship from inside a hangar. The whole thing is already short of 400k triangles, so I need all the optimization I can get inside the hangar. The game itself, naturally, has a different orientation to the hangar (since the ships have to be positioned aesthetically relative to the player). Thus my little hack.

Support / Re: rotateMesh Bug
« on: January 11, 2018, 04:30:28 pm »
Still... I made a hack, just compiling (then decompiling before rotation) for that one specific ship. Wouldn't it be better to just make rotateMesh() work in some form or another, though?

Support / Re: rotateMesh Bug
« on: January 10, 2018, 06:12:16 pm »
But then it's going to cost me performance, right?

Pages: 1 2 [3] 4 5 ... 105