Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / help with sprite "transparency like" effect

Author
Message
noobnerd
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 4th Jul 2011 16:52
hi everyone!

Id like to make my sprites have the same effect as photoshops screen or linear dodge modes. In other words so that black would be transparent and almost black would make the background it is on slightly brighter. Not like the normal dbpro transparency where a nearly black 50% transparent sprite makes the background a lot darker. Any help? I need it to make certain things in my spacegame look real (engine flames, lasrs etc. )
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 4th Jul 2011 17:23
I'm not sure you can do this with sprites - but you should be able to do that with 3D objects, plains etc. Perhaps switching from sprites to plains would open up other avenues, and make it worthwhile. With plains, you could use the ghost object command, which should provide the look your going for. I consider this stuff a lot, here are some potential benefits...

* Ghosting - so you get an additive blend, perfect for bright particle effects, lighting etc.
* Negative ghosting - pretty decent for shadowing, as ghosting tends to have less issues than transparent objects.
* Resolution independance.
* Shaders, should you ever need them.
* Animation - like a simple bone structure on a segmented plain - I've used this for bendy spines and snakes and all sorts.
* Extra cameras, for maps or whatever.
* Performance - plains should be faster than sprites.
* Z-Depth - usually easier to arrange your z-depth with 3D plains.

One thing I have found, is that particle texture generators don't often support alpha - they concentrate on black backdrops. These textures are practically impossible to convert to alpha, there are just so many factors, and the black backdrop particles with ghosted plains look so much better than trying to do it with alpha and sprites.
Alpha transparency is good for things like smoke effects, effects that are not additive - like lots of smoke particles will be grey, but lots of fire particles should be bright - as they overlap they should get brighter and brighter. Sprites can only really do the smoke, wheras plains can do both.

Health, Ammo, and bacon and eggs!
noobnerd
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 6th Jul 2011 01:22
thanks for the ansvear. As i am only familiar with the 2D aspects of dbpro, how would i set up a textured plain with my sprite images? Will the black parts be invisible on planes too or would i need to do some other stuff?
Also are there similiar commands like stretch and scale for the plains? I actually like the idea of using plains it opens some nice new avenues for 3D ish effects.

Login to post a reply

Server time is: 2026-07-11 02:36:28
Your offset time is: 2026-07-11 02:36:28