Multiple lights and glow effects?

chrgibson
03-24-2002, 03:01 AM
Hi.

I managed to get my sprite based trading game to D3D, no more messing with loads of texture space for animations!

I want to know how to create multiple lights in a scene. I can create them, but as far as i know, i can only set one light.

I also need to know how to make my 3d sun look like a ball of gas instead of a yellow sphere. A bit of glow wouldnt go amiss, anyone know of anything i can do?

I have max 3.1 so i can make my models very detailed and use them in game!

Word of warning to newbies, in 3D coordinates 0,0 is the center of the screen unless you move the camera etc. This caused a bit bother so i moved the camera to width/2, height/2. This solved the display but to solve it correctly, you have to use height - y to get ojects to display correctly on the y axis.

Cheers in advance.

Toyemann
03-24-2002, 02:48 PM
When you create a light, you specify the Index. By assigning different number to it, you can create a new light.

For an example:

Call Dev.SetLight( Index, Light)


Later you could turn on or turn off the light by calling:

Call Dev.LightEnable( Index, True)

or

Call Dev.LightEnable( Index, False)


Note that the Index=0 is a default light.

Hope that helped.



But regarding the glowing affect, I have no idea. I'm dying to know that myself. :D

chrgibson
03-25-2002, 02:09 AM
I'll let you know if i find out about the glow.
Cheers.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum