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

Pages: [1] 2
1
Support / Re: Object collision and model loading
« on: May 04, 2012, 04:15:50 am »
Thanks

2
Support / Re: Object collision and model loading
« on: 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:
Code: [Select]
http://www.jpct.net/forum2/index.php/board,3.0.htmlIf you want you can move it there, but it doesn't really matter

3
Support / Re: Object collision and model loading
« on: May 02, 2012, 10:51:02 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
« on: 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
« on: September 09, 2011, 12:43:10 am »
Lots :D

I guess I have to optimize the blitting then :o

6
Support / Blitting question
« on: 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
« on: September 08, 2011, 08:08:59 pm »
k

8
Support / Re: How slow is FrameBuffer.getOutputBuffer()
« on: 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()
« on: 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
« on: September 08, 2011, 06:16:01 pm »
How does one rotate with rotation matricies?

11
Support / GetRotation() help
« on: September 08, 2011, 02:13:17 am »
I'm using this code:
Code: [Select]
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 :?

Code: [Select]
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
« on: 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
« on: 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
« on: 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



Code: [Select]
world.addLight(new SimpleVector(0,-50,0),Color.WHITE);
Config.fadeoutLight=false;
world.setAmbientLight(10,10,10);

15
Support / Re: Strange Shadows
« on: September 04, 2011, 12:39:21 am »
k :[

Pages: [1] 2