Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: @Chroma (buggy demo?)  (Read 1160 times)
JeffWeber
Community Member
*
Posts: 1023


« on: March 10, 2003, 07:41:04 PM »

@Chroma,

Could explain a little bit how you are doing the landscape collisions for your buggy demo.   Are you using the TriList collision stuff in ODE? If not, how exactly are you detecting the collisions of the Sphere geoms with the tv3d landscape?

-jeff
Logged

""Space is deep, Man is small and Time is his relentless enemy" --Orson Scott Card
Chroma
Community Member
*
Posts: 173


« Reply #1 on: March 11, 2003, 10:31:40 AM »

No I dont use the Tricollider, u'll have to create a new collider class.

I'm using Delphi but u can find the source code here:
http://www.clancommunity.com/chroma/Delphi_TV_ODE.zip

Check the demo Buggy+Landscape and look at the function "CustomColliderFnSphere". It will show u how to generate contact points for a sphere colliding a heightmap.
There is also some code to collide a box against a heightmap.

Hope this helps..

Chroma
Logged
JeffWeber
Community Member
*
Posts: 1023


« Reply #2 on: March 11, 2003, 02:25:29 PM »

Ok, so I see you created a custom extenstion to ODE.  I don't have Delphi, so I can't see your function.  Would you mind posting that function?

If that's a problem that's ok, I think I should be able to figure it out.

-jeff
Logged

""Space is deep, Man is small and Time is his relentless enemy" --Orson Scott Card
Chroma
Community Member
*
Posts: 173


« Reply #3 on: March 11, 2003, 02:54:24 PM »

just open the Main.pas file in notepad or something like that Smiley
Logged
Chroma
Community Member
*
Posts: 173


« Reply #4 on: March 11, 2003, 02:57:09 PM »

U can get the file here: http://www.clancommunity.com/chroma/Main.pas

Be sure your normals are correct, u might need to invert them if u are using RC3 and the landscape normals.
Logged
JeffWeber
Community Member
*
Posts: 1023


« Reply #5 on: March 11, 2003, 03:08:00 PM »

k, thanks
Logged

""Space is deep, Man is small and Time is his relentless enemy" --Orson Scott Card
denisnovak
Community Member
*
Posts: 47


« Reply #6 on: March 12, 2003, 08:20:53 AM »

To: Chroma

I use Delphi for programing and I download Delphi_TV_ODE.zip. Everything works o.k, except  Buggy+Landscape. Buggy doesn't stop on landscape surface (dropping down?). What is wrong?

Denis
Logged
Slider
Community Member
*
Posts: 1135


« Reply #7 on: March 12, 2003, 09:06:41 AM »

Quote
I use Delphi for programing and I download Delphi_TV_ODE.zip. Everything works o.k, except Buggy+Landscape. Buggy doesn't stop on landscape surface (dropping down?). What is wrong?


Same problem here  :roll:
Logged

Slider is the name, and logic is my game...
Helping retards through life since 1981
Chroma
Community Member
*
Posts: 173


« Reply #8 on: March 12, 2003, 09:24:23 AM »

Your landscape normals are inverted.
Try to change them in the ColliderFormulaNormal function.
Logged
Chroma
Community Member
*
Posts: 173


« Reply #9 on: March 13, 2003, 11:46:01 AM »

For information, someone in the ODE mailing list released a piece of code to handle Sphere/heightmap collision.
U can find his code here: http://q12.org/pipermail/ode/2003-March/003641.html
I havent looked at it yet, but i will try to include it in the ode.dll and make some test.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks