View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000128OpenClonkEnginepublic2010-02-07 14:062010-04-10 14:28
ReporterNewton 
Assigned ToClonk-Karl 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Fixed in Version 
Summary0000128: Material color field in c4m
DescriptionFollowing the discussion here http://forum.openclonk.org/topic_show.pl?tid=359, [^] we need either a color field for each material or some elaborated function which calculates the color of the material at a given position by the color of the texture.
Personally, I don't think #2 is worth the effort, #1 just requires to set an average color for every material.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000255)
Clonk-Karl (developer)
2010-02-07 14:14

I'd go with #2. It can't be so hard to compute an average color from a texture.
(0000470)
Newton (administrator)
2010-04-09 17:42

A solution would be needed for the dust effect of the shovel. (Or in general, dust effects on DigFree and BlastFree).
(0000478)
Clonk-Karl (developer)
2010-04-10 14:28

I added int GetAverageTextureColor(string texture_name).

Note that this function might not be synchronous if some computers use 16 bit and others use 32. If it is only used to set particle color this should not be a problem though. Maybe we should simply drop 16 bit support.

- Issue History
Date Modified Username Field Change
2010-02-07 14:06 Newton New Issue
2010-02-07 14:14 Clonk-Karl Note Added: 0000255
2010-04-09 17:42 Newton Note Added: 0000470
2010-04-10 14:28 Clonk-Karl Note Added: 0000478
2010-04-10 14:28 Clonk-Karl Status new => resolved
2010-04-10 14:28 Clonk-Karl Resolution open => fixed
2010-04-10 14:28 Clonk-Karl Assigned To => Clonk-Karl


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker