Delta Engine
»
Support
»
Rendering
»
Strange behavior while drawing a line over a background image (v0.9.8.0)
Joined: 3/18/2013(UTC) Posts: 29
Thanks: 5 times
|
Whether I draw a line over a picture (a png generated from a jpg), the line appears black even if I set a red color. To maintain the original color you need to add a second image and leave it transparent. Have you the same problem? Here the sample project (v0.9.8.0; Win8; VS2012). Code:
public class Game : Entity
{
public Game(ContentLoader content, ScreenSpace screen)
{
var view = screen.Viewport;
new Sprite(content.Load<Image>("Background"), view);
// new Sprite(content.Load<Image>("Empty"), view);
new Sprite(content.Load<Image>("White"), view).AlphaValue = 0f;
new DeltaEngine.Rendering.Shapes.Line2D(view.TopLeft, view.BottomRight, Color.Red);
}
}
|
|
|
|
Joined: 8/23/2011(UTC) Posts: 245
Thanks: 6 times Was thanked: 12 time(s) in 11 post(s)
|
Hi fg_garda,
I'm pretty sure this was fixed on Saturday, so should work properly following this week's release.
I downloaded your project and ran it using our latest engine and it drew a red line across the image even with the Empty Sprite commented out, so it looks to me that it's all working properly.
Thanks for the bug report though!
- Phil
|
|
|
|
Delta Engine
»
Support
»
Rendering
»
Strange behavior while drawing a line over a background image (v0.9.8.0)
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.