Anonymous Login
2018-12-16 11:08 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001720OpenClonkEngine - Renderingpublic2016-04-21 19:21
ReporterMaikel 
Assigned To 
PriorityhighSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Versiongit master 
Target Versiongit masterFixed in Version 
Summary0001720: SetGraphics with GFXOV_MODE_Object takes both visibility of parent object and overlay_object into account
DescriptionThe one of overlay_object should not be taken into account, because that way you can never control the visibility of the new graphics independently.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0005061

Maikel (developer)

Reminder sent to: Zapper

~0005062

Maikel (developer)

Reminder sent to: Sven2

~0005065

Sven2 (developer)

Last edited: 2016-04-18 15:46

View 2 revisions

Can't you just attach a helper object to the clonk (make sure it doesn't take shockwave energy!) and overlay that with the modified graphics?

I'm not sure I like that it's not enough to set an object's visibility, but you also have to know about all its overlays.

~0005066

Maikel (developer)

That is what I did, I attach object dummy to the clonk and use:

clonk.Visibility = VIS_Owner;
dummy->SetGraphics(nil, nil, GFX_Overlay, GFXOV_MODE_Object, nil, nil, clonk);
dummy.Visibility = VIS_All;

Then the dummy is only visible to the owner of the clonk, i.e. the combination of the two visibilities.

~0005071

Marky (developer)

You could add this to Tests.ocf\OverlayTest.ocs, if it is not already in there. I think it makes sense to add it.
+Notes

-Issue History
Date Modified Username Field Change
2016-04-17 21:05 Maikel New Issue
2016-04-17 21:05 Maikel Status new => assigned
2016-04-17 21:05 Maikel Assigned To => Sven2
2016-04-17 21:08 Maikel Assigned To Sven2 =>
2016-04-17 21:08 Maikel Note Added: 0005061
2016-04-17 21:08 Maikel Note Added: 0005062
2016-04-18 06:15 Maikel Assigned To => Maikel
2016-04-18 06:15 Maikel Status assigned => new
2016-04-18 15:46 Sven2 Note Added: 0005065
2016-04-18 15:46 Sven2 Note Edited: 0005065 View Revisions
2016-04-18 18:04 Maikel Note Added: 0005066
2016-04-20 11:06 Maikel Assigned To Maikel =>
2016-04-21 19:21 Marky Note Added: 0005071
+Issue History