Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Apr 18, 2024 4:19 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Oct 06, 2008 11:59 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Ok, cylinders removed.
The path is clear if you want to do yourself :roll:


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 4:14 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
I've just seen that capsules creation is a bit wired. RAYDIUM_ODE_AUTODETECT does not work, Z axis is always used, and arguments given for capsule creation to Raydium are not the sames as the ones sent to ODE (length is (ty-(tx*2.0f)) ...) so it's not possible to create again the capsule using dGeomCapsuleGetParams() ...

I'll try to change this, because simply switching test6's rockets from box to capsule tends to be -quiet- complex ! :)


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 4:34 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Ops, I forgot autodetect (it was experimental and a bit tricky).

About axis, is always Z, according ODE guys (i asked'em). So i explain in the doc that the models must have cylinder length in Z axis.

The ty=ty-(tx*2.0f) was the "human-friendly change" i did, but i knew i would have to revert it soon or later. Beware: this revert will impact in the autodetect function (cause this function will return the full length, not the internal cylinder length). Also thinking in this function it's reasonable to make mandatory that models be Z aligned... or adding a new parameter to extract the length orientation (but than you will have to store it, or you won't be able to draw the debug capsule).

There is no glut functions to draw a capsule, right? I didn't found it.


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 7:57 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Seriously, this commit was done way too fast ... Size autodetect was fully broken: Y and Z axis were all swaped, radius was in fact diameter, debug drawing was broken (length was not used correctly) and quadratic were not deleted.

Already spent almost 3 hours on this, and still a lot to do.

It should be known, now: Adding an new shape is an important task, it needs rigorous testing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group