3D Collission Mesh?

3D Collission Mesh?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

3D Collission Mesh?

Post by SpikedHelmet »

Must give unit models proper 3D collision meshes! And while you're at it, features, so we can have bridges that units can walk over!
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

This has been discussed before.

I believe the issue with 3D collision detection is the massive calculation required, given the scale of TA.

I suggestion was raised whereby a cylinder could be used instead of a sphere, which would be less resource-heavy than a polygonal collision detection, but would still be able to approximate oblong objects far better.
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

I say use collision meshes for weapon and unit collisions. The spheres can still be used for path finding
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I thought zaphod was already planning to use a basic collision mesh for weapon hits.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

You just added that in then.
I would deduct a point from you, but I forgot the password to log into cpanel for the new host the site is now on.
-0 to SwiftSpear
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

Talking about bridges is a returning topic. (for a long long time).

It's Necicary that coalission is as efficiant as possible. Or suffer a CPU overload.
Bridges would be nice though.
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Post by Masse »

how abaut modeller giving hes model some "boxes" that are used for collission ? i dont know can that be made or anything

Image
the lines there are the "box" and if there could be added more boxes that would give more "detail" DAMN I SUCK AT WORDS *cry's inside*
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

We could at least move towards generating boxes rather than spheres untill e get a better representation.

A method a friend fo mien told em to apss on was defining smaller spheres, say a kbot would have 8 small spheres around each major body part etc ratehr than a large one encompassing the whole.

For features I suggest making them non-blocking then placing smaller invisible features inside them as a quickfix or usign aGorms trick fo filling them with terrain.

The sphere thgin si similair to what amsse is trying to say onyl using boxes. Which si really a simplified version of the mesh collision zaphod is gonna use for weapons exept it's simpler and uses a few boxes rather than a mesh.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Warlord Zsinj wrote:I suggestion was raised whereby a cylinder could be used instead of a sphere, which would be less resource-heavy than a polygonal collision detection, but would still be able to approximate oblong objects far better.
During the change between 61b2 and 62b1, the sphere collision was replaced by a footprint based collision.

SPRING DOES NOT USE SPHERE BASED COLLISION ANYMORE!
(save for flying units)

SPRING USES THE FOOTPRINTS DEFINED IN THE FBI OR TDF!
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Post by Masse »

IT DOES !?!... i havent read the CVS for awhile now :cry: gotta start reading again
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

If onyl that where the case for selecting objects with the mouse and weapons fire showing up. You still get explosions appearing in the wrong place, just look at flash emg fire against a HLT or radar tower.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Maelstrom wrote:You just added that in then.
I would deduct a point from you, but I forgot the password to log into cpanel for the new host the site is now on.
-0 to SwiftSpear
I'm allowed to add it, it's one of the topics that comes up every month. How do you think all those topics got added in the first place? Half of them I either added or edited.

[edit] MTR nazis who don't even know the rules in the first place should not run competitions.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Well, I agree, I don't think you should get points for this one after just adding it... that makes the scoring system too open for abuse. Now, the next time this topic comes around it would count, but you can't just go add something and then call it, that's like playing chess and then changing the movement rules for the enemy's queen in the middle of the game without warning :P (in other words, how could anyone else call it if it didn't exist before you put it there specifically for this topic? It's unfair in every definition of the word)
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

IMO, the mtr wiki is sortof a feature request list, that stops people from asking the same stuff over and over again. I don't mind that you people make a competition out of it, but it shouldn't stop others from updating it with new requests.
SwiftSpear also didn't actually request any point.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

I know they need to be added. Im not against that at all. But, what SwiftSpear did, was edit the wiki, adding the new topic in, then making a post that looked as if he was trying to score points from it. Which is against the rules as defined on the MTR scoring page thing. However, it no appears if Swift was just posting that link to show the fact that it HAD been added to the wiki entry, and as you said was not after points. Not that it would matter, as I STILL cant log in...
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

zwzsg, the reference was to air units, because SpikedHelmet was referring too his Star Wars in Space mod, which is largely aircraft based.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: 3D Collission Mesh?

Post by zwzsg »

SpikedHelmet wrote:[...] so we can have bridges that units can walk over!
Sorry, that made me think he was talking about ground based units. :wink:

I suppose Spring isn't the right engine for space RTS with large variation in unit size. :(
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Once we've got proper weapon impact detection, via box or whatever weapon collision model, there's only one or two things preventing an accurate depiction of space-like combat, and I know for a fact they're being worked on.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Box hit detection wont fix things always shooting at the center of units. Unless this is one of the things that are being worked on.
Post Reply

Return to “Engine”