MantisBT

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003230Spring engineGeneralpublic2012-07-31 17:292012-12-16 23:04
Reportergajop 
Assigned TojK 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version89.0 
Target VersionFixed in Version 
Summary0003230: Features aren't always rendered when visible
DescriptionFeatures aren't always rendered when they should be. They aren't rendered if they are only partially visible (probably their base isn't visible). The same applies to features' shadows.
Detailed report is here: http://springrts.com/phpbb/viewtopic.php?f=11&t=28492. [^]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0009095)
Kloot (developer)
2012-07-31 18:33

sounds like incorrectly set radii values on the modeller's part
(0009101)
gajop (reporter)
2012-08-01 15:42

I'm not sure where those values are set, since it doesn't seem to be in the .lua part. I'm using "Spring Features", and some models are indeed properly rendered, f.e: http://code.google.com/p/spring-features/source/browse/trunk/spring-features.sdd/features/beherith/btreechi_1.lua [^]
This feature is getting clamped too soon though:
http://code.google.com/p/spring-features/source/browse/trunk/spring-features.sdd/features/artturi/artoakoldlo.lua [^]

However it seems that all of them have shadows cut when not in view (which is not the case of units), is this related to:
https://github.com/spring/spring/blob/develop/rts/Rendering/FeatureDrawer.cpp#L438 [^] ?
(0009102)
knorke (reporter)
2012-08-01 22:31

radius (and model height, dunno if that matters too) is set with the upspring programm in the .s3o file. (maybe there is a lua tag now, too. but not in "spring features")
the "spring features" features are not all perfect/working.
(0009147)
Beherith (reporter)
2012-08-30 15:48

I noticed this as well, in the altair crossing v2, so I compensated by making large radiuses for the trees. But this interacted badly with aiming, even if I had small collision volumes set for the features. Thus in altair crossing v3 the tree's radius is greatly reduced.

It would be nice if the features in view had a little relaxation built in - as most of the time mappers dont want features to interfere with aiming too much, but the visual 'pop-in' of trees and their shadows is also not too pretty.

Could we please have an additional grace distance of approx 64 elmos when calculating visibility?

Thank you!
(0009148)
zerver (developer)
2012-08-30 19:21

I think it is related to the quad field. Spring renders certain quads depending on where the cam is aimed and this algorithm is a bit flawed and does not take the size of models into account.

- Related Changesets
spring: develop e7f9c7c7
Timestamp: 2012-12-16 23:04:17
Author: jK
Committer: jK
Details ] Diff ]
differ between radius (colvol) & drawRadius
fixes 0003230 by 80%, quadfieldmap & shadow frustum checking are still broken but both minor
mod - rts/Rendering/FeatureDrawer.cpp Diff ] File ]
mod - rts/Rendering/Models/3DModel.h Diff ] File ]
mod - rts/Rendering/Models/3DOParser.cpp Diff ] File ]
mod - rts/Rendering/Models/AssParser.cpp Diff ] File ]
mod - rts/Rendering/Models/S3OParser.cpp Diff ] File ]
mod - rts/Rendering/UnitDrawer.cpp Diff ] File ]
mod - rts/Sim/Features/Feature.cpp Diff ] File ]
mod - rts/Sim/Objects/WorldObject.cpp Diff ] File ]
mod - rts/Sim/Objects/WorldObject.h Diff ] File ]
mod - rts/Sim/Projectiles/WeaponProjectiles/MissileProjectile.cpp Diff ] File ]
mod - rts/Sim/Units/Unit.cpp Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-07-31 17:29 gajop New Issue
2012-07-31 18:33 Kloot Note Added: 0009095
2012-08-01 15:42 gajop Note Added: 0009101
2012-08-01 22:31 knorke Note Added: 0009102
2012-08-30 15:48 Beherith Note Added: 0009147
2012-08-30 19:21 zerver Note Added: 0009148
2012-12-16 23:04 jK Changeset attached => spring develop e7f9c7c7
2012-12-16 23:04 jK Assigned To => jK
2012-12-16 23:04 jK Status new => resolved
2012-12-16 23:04 jK Resolution open => fixed


Copyright © 2000 - 2013 MantisBT Team
Powered by Mantis Bugtracker