Main Menu
Menu

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.

Show posts Menu

Messages - qcrist

#1
Support / Re: Object collision and model loading
May 04, 2012, 04:15:50 AM
Thanks
#2
Support / Re: Object collision and model loading
May 02, 2012, 11:06:12 PM
I'm trying to do some collision detection in an project where I cannot use external libraries. I am currently trying to do ellipsoid collision detection, but I am struggling. I used the library a little while ago and loved how the checkXXXCollisionEllipsoid methods work. I was wondering what algorithm they use.

Also, I just noticed I failed when I posted this, it is meant to be here:
http://www.jpct.net/forum2/index.php/board,3.0.html
If you want you can move it there, but it doesn't really matter
#3
Support / Re: Object collision and model loading
May 02, 2012, 10:51:02 PM
Quote from: EgonOlsen on May 01, 2012, 09:14:01 PM
I don't get the question. Formulas to load models? No libraries are being used. It's all build in...but as said: I don't get the actual question...???
I was wondering what libraries were used for the model loading and collision detection. And for the collision detection, if no libraries were used, what formulas/equations is used to calculate the collision detected.
#4
Support / Object collision and model loading
April 30, 2012, 08:27:52 PM
I was wondering what libraries/formulas are used to load models and do collision detection in jpct?

#5
Support / Re: Blitting question
September 09, 2011, 12:43:10 AM
Lots :D

I guess I have to optimize the blitting then :o
#6
Support / Blitting question
September 08, 2011, 08:25:08 PM
Is there any way to write to the display without using blitting when using opengl?

I am having issues with the blitting slowing down the game.
#7
Support / Re: GetRotation() help
September 08, 2011, 08:08:59 PM
k
#8
Support / Re: How slow is FrameBuffer.getOutputBuffer()
September 08, 2011, 08:08:22 PM
Ok.


How mutch faster is the ogl renderer than the software renderer?
#9
Support / How slow is FrameBuffer.getOutputBuffer()
September 08, 2011, 07:23:18 PM
How slow is FrameBuffer.getOutputBuffer()?

When I used this method, I did not see any major performance changes.
#10
Support / Re: GetRotation() help
September 08, 2011, 06:16:01 PM
How does one rotate with rotation matricies?
#11
Support / GetRotation() help
September 08, 2011, 02:13:17 AM
I'm using this code:
public SimpleVector deriveAngles(Matrix mat) {
    SimpleVector s=new SimpleVector();
    float[] m=mat.getDump();
    s.x=(float) Math.atan(m[9]/m[10]);
    s.y=(float) Math.asin(-m[2]);
    s.z=(float) Math.atan(m[4]/m[0]);
    return s;
}


Which is supposed to change rotation matrices to angles. (I think?)

But the following code does not work :o

Both objects should be rotated the same amount, but they arnt :?


Object3d obj1,obj2;
[make objects bla bla bla]
SimpleVector rot = deriveAngles(obj1.getRotationMatrix());
obj2.rotateY(rot.y);
obj2.rotateX(rot.x);
obj.rotateZ(rot.z);

#12
Support / Re: Strange Lighting
September 05, 2011, 03:59:05 AM
changing the discard distance and attenuation didn't seem to change much.

I did notice small changes of the model changed it tho.

The model is made with Google Sketchup pro.

3ds:
http://www.mediafire.com/?llyqu6g34pwfksa

skp:
http://www.mediafire.com/?3p3fgv491oaewuv
#13
Support / Re: help loading an md2 model in a java applet
September 04, 2011, 03:04:23 PM
Make sure the file is in the same directory that you get when you run:

new File(".").getAbsolutePath()
#14
Support / Strange Lighting
September 04, 2011, 04:06:07 AM
[I'm good with titles :D]

:l?

The reason it is wierd, is because the light is in the center of the room. :o




world.addLight(new SimpleVector(0,-50,0),Color.WHITE);
Config.fadeoutLight=false;
world.setAmbientLight(10,10,10);
#15
Support / Re: Strange Shadows
September 04, 2011, 12:39:21 AM
k :[