Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - general sirhc

Pages: [1]
1
Graphics / Simple static 2d shadows
« on: August 10, 2010, 10:29:57 am »
I am currently converting my game from GML (Game Maker Language) to C++ and I am using the SFML library for all graphics however I am having a lot of trouble replicating how surfaces in GM work.

A surface in GM is basically a render target which you can draw onto.

My actual problem is that I have static shadows that I want to draw with say an alpha of 0.6 (these are loaded from file) but the shadows overlap when they're drawn and the overlap areas are darker because of it, so I was wondering how do I draw them all say to say another image or something and then draw that image as a sprite with 0.6 alpha

Apologies if I didn't make myself clear enough, its a bit confusing to explain.

I'm using SFML 1.6.

Thanks to anyone that can help

Pages: [1]
anything