Sphere Map/Gravity

Sphere Map/Gravity

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

Moderator: Moderators

Post Reply
uamadman
Posts: 11
Joined: 08 Jan 2011, 23:49

Sphere Map/Gravity

Post by uamadman »

Before i go modeling up a entire world ^.^

Simply, Is is possible to have all the units drawn to a single point in the middle of a sphere (Institute Gravity)? In effect enabling the ability to create a seamless map/world.

I understand the current cameras may have limited use on such a map.

History of myself since my activity as a modeler on this forum is currently non existent: I'm a modeler, I've been playing TA since 1995. I want to help spring. Having the stated above possible would help motivate me to move my attention from other venues.

Cheers,
mad
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Sphere Map/Gravity

Post by smoth »

uamadman wrote:TA since 1995.
no.
Last edited by smoth on 23 May 2011, 00:41, edited 1 time in total.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Sphere Map/Gravity

Post by knorke »

sphere map: not possible.
the closest you can get is make units teleport to the left edge if they exit on the right edge.

Though if you can model/script there are lots of projects who might want your help.
uamadman
Posts: 11
Joined: 08 Jan 2011, 23:49

Re: Sphere Map/Gravity

Post by uamadman »

Dope ... it was 1999 ^.^
I started just a little after CC was released
...
Its been a while, i old man is allowed to have a brain fart once and a while right xD
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Sphere Map/Gravity

Post by smoth »

just having fun. click the link.
uamadman
Posts: 11
Joined: 08 Jan 2011, 23:49

Re: Sphere Map/Gravity

Post by uamadman »

I've seen games do the transport trick from one side of a map to another but the feeling/attraction of seamless isn't there for me. I'm going to do a little more research, but i would like to continue after this goal.

Any additional ideas/suggestions are welcome.

mad

Edit: You say "no" alot ^.^

found this in the first post i clicked on
smoth wrote:no
Thanks for the link :) i was headed in that direction next :P
i'll keep you posted xD
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Sphere Map/Gravity

Post by knorke »

the teleport from edge to edge is relatively easy and done:
http://www.youtube.com/watch?v=EGaahexSBe4

the seamless sphere thing..basically forgett about it. Would require massive rewrite of the engine.
No offense, but if you had the knowledge to do it, your thread would probally look different ;)

On wiki you find stuff about game/engine development.
uamadman
Posts: 11
Joined: 08 Jan 2011, 23:49

Re: Sphere Map/Gravity

Post by uamadman »

Heh non taken, but I never said I could code. Im proficent enough to change a few variables and write some basic changes.

I do mostly technical modeling and prefer to leave the coding to you guys :D

Is there a way to tell a unit to stick to surface like a magnet to a wall? Ive seen spider bots walk nearly strait up a wall... I could make half a world. Is there a setting to make buildings not sit flat?
uamadman
Posts: 11
Joined: 08 Jan 2011, 23:49

Re: Sphere Map/Gravity

Post by uamadman »

Edit: double post... Silly cellphone ;)
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Sphere Map/Gravity

Post by knorke »

Is there a setting to make buildings not sit flat?
i guess yes, but might require some tricks.

But that are kind of detailed questions already and can not be answered in one sentence.
I would suggest first start with simple stuff.
just unpack a game file (they are just renamed 7zip files) and try to find a variable name that sounds like what you want, ie change maxVelocity to make a unit go faster or something.

http://springrts.com/wiki/The_Complete_ ... pring_Game

http://springrts.com/wiki/SpringTutorialGame

http://springrts.com/wiki/Lua_Scripting

http://answers.springlobby.info/questio ... est-my-mod
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Sphere Map/Gravity

Post by Beherith »

uamadman wrote: Is there a way to tell a unit to stick to surface like a magnet to a wall?
upright = 0
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Sphere Map/Gravity

Post by PicassoCT »

spiderbots employ this method
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Sphere Map/Gravity

Post by hoijui »

as was already said, just forget about it. it would need a lot of refactoring in the engine, or thousands of Lua hacks.. lots of non simple, ugly, tiresome coding.
come again in 10 years, then it might be feasible.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Sphere Map/Gravity

Post by Warlord Zsinj »

Hey, if you can animate for TA, we need your help animating our walkers etc with SW:IW
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Sphere Map/Gravity

Post by PicassoCT »

You could cheat though, opening just two spring games at the same time, glua those hamburger hill shaped maps together and make a border transfer.
Post Reply

Return to “Engine”