Fixing shadows and such

Fixing shadows and such

Requests for features in the spring code.

Moderator: Moderators

User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Fixing shadows and such

Post by aGorm »

Ok... This may be a huge job, I dont know. But this needs fixing.

Image

Basicly... alpha (which is kinda important for trees...) does not work properly, as in shadows it has no effect. The whole face casts a shadow.

No maybe casting shadows with teh alpha is to much to ask, I dont know, but it would be nice If it could be fixed, or atleast give us an option to say wether the faces with alpha should cast a shadow or not. Becasue in teh case of the trees, Id think not casting a shadow at all would be better in this case if it can't be totaly fixed.

Second thing... features that dont apear dont cast shadows, which is fine for small things, but big freekin trees... Well it looks daft.

This problem of course also affects maps with large buildings, and stuff.

Anyone want to make a patch?

(Also... while there at it can tehy fix teh alpha in water reflections? Only that also looks realy nasty!!)

I know this is probablie a big job, but if you dont ask you'll never get so i thought Id try!

aGorm

(PS and those trees arnt even half the size of the ones I want... :P )
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

I might look into the alpha issue at some time, seen as spring's default trees have thir shadows rendered correctly.

no promises on when, mind.
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

Wicked! :-) The more things that get fixed the more likly I am to release the tree map. I think the default trees also render in water correctly, so maybe its a conected bug? Maybe you can fix to birds with one stone.

aGorm
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10455
Joined: 24 Jan 2006, 21:12

Post by PicassoCT »

ME IS HIT BY TREEMAPFANBOYISM-----AAAAAAAAAAHHHHHHHHH!!!!! So finally you will make it AGORM :) After hundreds of Request you show Mercy...
User avatar
LathanStanley
Posts: 1429
Joined: 20 Jun 2005, 05:16

Post by LathanStanley »

interesting looking trees on posts...

reminds me of cartoons.. :P
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

:-) my feature test map... its basicly the old old tree map, but i just swap out any feature i want to test. Means you cant lose them becuase there all on the hill tops. Its not ment to be a map you can play :P

Image

aGorm
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10455
Joined: 24 Jan 2006, 21:12

Post by PicassoCT »

Another Unnamed Agormscreenshot:
Shall i do it ? Beeing First needs somebody experienced and hardboiled!

What Map is that Screenshot from?

The Painz,,, the repeating... yes, that is the real thing. Thats why i am on Board!...

:wink:
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

This is just me testing stuff for when I make the tree map. Those trees are just a practace moddle, the final ones will need taller trunks to get the sort of tree I want.
I just figured I I showed waht could be if someone fixed things that someone would be more likly to fix them...

aGorm
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

Has anyone has a chance to look into this at all yet??? Only I will keep bugging till someone does it!

BUG

BUG

BUG

... :evil:

http://spring.clan-sy.com/phpbb/viewtopic.php?t=10453

Come on look its goona be great if someone can fix these issues. I'll even send the person who fixes it the map (as in the map as it stands at the mo while Im working on it) so they can check its all looking correct.

Please... :-)

aGorm
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Check the recent SVN log for Tobi's commits.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

They've written a new shadow shader, which I believe fixes this.
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

WOOT!!!!

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

Post by smoth »

agorm, you really need to join my forum
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Image


Not all issues are resolved though, but I've seen enough shadow code for a while ;-)
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post by LOrDo »

That makes me tempted to actually turn on shadows next spring version.
Does this work for units as well?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

I don't think there are any units with transparency in their textures?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

Image
there will be.....
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

Yhe... I use it in SWSpring to... so there are!

And lots of my features are starting to now aswell.

Anyone know if theres a way I can get a build with this in befor release? (Unless your gona release like in the next few days anyway...)

I did try downloading some "nigtly build thing" and sticking it in the spring folder, but It was a no go, and I could not see an obvios answer...

I realy want to see what my trees are like with decent relections and shadows. (PS... this did fix refelctions att he same time right? PLEASE tell me thats the case.)

aGorm
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

OK... I got this.

Image

So obviolsy I must have the wrong build. But I did download all the latest dll's there, and the exc with teh latest date, so I dont know how. Are you sure thats in the latest build, and not just in his personal one?

aGorm
Post Reply

Return to “Feature Requests”