4,861 reputation
11635
bio website
location
age
visits member for 4 years, 9 months
seen 2 days ago

Jun
26
comment Physics timestep questions
@cossacksman Milliseconds since something. The origin of the time is irrelevant, as we are only interested about difference between two time points.
Jun
25
comment LWJGL: loading textures of various types
The format of BufferedImages more or less correlates with the created or loaded PNG files, but there is no guarantee about that and there is not much control over it. You can try using BufferedImage.getType() and it may work for you and even for everyone. But it definitely cannot tell the difference between 1, 2, 4 or 8 bit grayscale PNGs.
Jun
9
comment Bullet Physic: Stack transformations on body after adding
You can multiply transformations.
May
20
comment Lasers in 3D space game
Related question: gamedev.stackexchange.com/questions/63997/…
Apr
22
comment In Java swing, while handling a 2D top down game, how should I handle scaling for quality transformations (mainly screen rotation)
Why do you want to draw to a pixel array first? I think you need to provide some pictures to clarify what you are really after.
Apr
21
comment In Java swing, while handling a 2D top down game, how should I handle scaling for quality transformations (mainly screen rotation)
You should use Java2D transformations for rotating and scaling images. This way you get both quality and performance in an easy way.
Apr
17
comment Image edges are distorted inside game
Try setting your texture filter to Linear.
Apr
17
comment Image edges are distorted inside game
You have not given any info about the technology or software stack you are using.
Apr
12
comment trouble getting the lighting and material set up right
The specular looks correct in the left sphere. Perhaps there is something wrong with the geometry of the other object, e.g. normals are incorrect. Check if there is any different when using glEnable(GL_NORMALIZE);
Mar
26
comment (Java) Trying to animate an arraylist of coins with a (working) animation class
If draw() is overridden for Coin class, why does it check if (type == ObjectType.COIN)? It's hard to say how your Animator class should interact with Coin as you didn't give any details of the Animator class.
Mar
15
comment Flipped model has wrong triangle order
As far as I know the options are either to do it this way or create a copy of the index buffer with reversed vertex order. If you are rendering reflections, you only need to change the winding order one time if you render all reflected models at once.
Mar
5
comment Is there a quick way to determine if a vector is in a quadrant?
Related: gamedev.stackexchange.com/questions/49290/…
Feb
13
comment How to implement accurate frame-rate-independent physics?
The linked question and answers explain that using fixed time step is really the way to solve your problems.
Feb
13
comment How to implement accurate frame-rate-independent physics?
possible duplicate of Fixed time step vs Variable time step
Feb
5
comment Physics-based rotation with an array of pixels
For reference, I have created a simple physics simulation with the above method. Video at youtube.com/watch?v=CXEqf5zPSsk. I also believe that the game Gish uses this method successfully.
Feb
1
comment Java JBullet models not colliding
You need to ensure that the sizes you are passing are correct. This applies to both createByteBuffer() and TriangleIndexVertexArray(). At least for indices * 3 doesn't look correct.
Jan
30
comment Java JBullet Mesh collsion problem
What is the problem?
Jan
28
comment How to create custom cubemap images?
Are you looking for a software or an algorithm / method to create them programmatically?
Jan
26
comment How does rendering with Swing compare to rendering with openGL?
You should also consider JavaFX as a third option.
Jan
5
comment How do I convert a cube map to an equirectangular projection?
Are you looking for an algorithm, library or software?