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.

Newcomers DBPro Corner / <tutorial> glows, explosisions, etc

Author
Message
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 11th Aug 2007 12:08
ok, this is my first tutorial. it's about making glows, explosions, suns, flames or anything like that.

You Will Need


an image of the glow, flame or whatever with a single colored background
DBpro
a 3d object(optional)


The tutorial

PART ONE

ok, we will be using a plain to do these effects, it is simple but very, very effective.

we start by making our image - in this we will be making a glowing effect around a 3d object so i have created this glowing image. (attached).

we then start up DBpro.
we will type our first line:

this will load up our effect image. the word in "" is the filename.
NOTE: ALWAYS REMEMBER TO ADD THE FILE EXTENSION (.BMP, .jpg, .tga)
The '1' is the image number, make sure this is unique for every image you load.


thanks to deathead for the sig!
Projects: alien abductor-5%

Attachments

Login to view attachments
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 11th Aug 2007 12:33
The tutorial

PART TWO

we then want to load up our 3d object, ive attached a funny looking cube, but you can use what you want.
to load the object we do this:

this loads up our object. the parameters are the same as for the load image command.
that is all the media we need to load - you can load a texture for the object but it isn't necessary.

now we need to make the plain that the effect image will be on.
we will also turn off the autocam now, otherwise the camera will automatically reposition but the view we have now is perfect.

we then need to texture the plain with our effect image.

great, if you ran that you would get a cube with a crumby looking circle around it, that's because we have one very important thing missing - transparency.


thanks to deathead for the sig!
Projects: alien abductor-5%

Attachments

Login to view attachments
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 11th Aug 2007 13:32 Edited at: 11th Aug 2007 13:34
The tutorial

PART THREE


to do transparency we will need to set the object so that the black around the outside is not drawn.

the first '2' is the object number and the second one is the flag.
now we must make the plain semi-transparent.

this makes the object semi-transparent. the '2' is the object number and the 45 is the transparency amount, this can be anywhere from 1(fully transparent) to 100(fully opaque).
so that is the transparency sorted - the image i provided looks better with a near-black background.
for this effect to work best you need it to always face the camera.
this can be done with the point object command.

here is an example i made of how this can be used.
(the cube texture is included in this post)



thanks to deathead for the sig!
Projects: alien abductor-5%

Attachments

Login to view attachments
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 15th Aug 2007 22:00
anyone found it helpful? got any improvements? any way to make it better?


thanks to deathead for the sig!
Projects: alien abductor-5%
Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 20th Aug 2007 21:17
Um ok I could be wrong but wouldn't that just create something that looked like an object with a semitransparent ring round it?

Maybe you should show how to code an actual explosion into it.

ie the ring growing in size then fading out or something along those lines?

'Ooh 'eck chief'...'crumbs'
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 20th Aug 2007 21:36
ya, that particular image would do that - a glowing effect - but with flames, explosions etc, all you need is an animated image. that glow image was pretty rushed so i dosn't work too well, but if you put more effort into making a good image then it would work better.


thanks to deathead for the sig!
Projects: alien abductor-5%

Login to post a reply

Server time is: 2024-11-26 11:57:27
Your offset time is: 2024-11-26 11:57:27