To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Games and Graphics Programming

Reply Post New Thread
 
Thread Tools Display Modes
Old Aug 19th, 2006, 10:23 AM   #1
LiLo
Lively Member
 
Join Date: Mar 06
Posts: 108
LiLo is an unknown quantity at this point (<10)
Red face How to make a lamp post light up properly?

Hi,

I have created a lamp post which is supposed to light up at night. It is made up of a cylinder(the base) and a sphere.

How do I create the effect of the lamp post lighting up at night?
I placed a light source at the position of the sphere and adjusted the diffuse values. But the entire scene is lighted up instead.

I also tried using emissive materials for the sphere but it did not have the "lighting up" effect.
LiLo is offline   Reply With Quote
Old Aug 19th, 2006, 12:38 PM   #2
fartman_900
Lively Member
 
Join Date: Jul 02
Posts: 86
fartman_900 is on a distinguished road (10+)
Re: How to make a lamp post light up properly?

As for the effect of the lamp lighting up at night, this might work. Create a loop and just increase the RGB of the light from 0.0f to something like 0.5f by 0.05f or another small value and set it to the lights RGB. This will make the light somewhat dim, just play around with the values. Try that with the diffuse property of the light.

The same thing can be done for the sphere surrounding the light. In the loop, change the actual colour of the sphere from black to almost white.

Can you post some pictures of it so I can see it? Like before the light is on and when it is on?
fartman_900 is offline   Reply With Quote
Old Aug 21st, 2006, 07:14 AM   #3
NoteMe
Retired G&G Mod
 
NoteMe's Avatar
 
Join Date: Oct 02
Location: @ Opera Software
Posts: 10,190
NoteMe is a glorious beacon of light (400+)NoteMe is a glorious beacon of light (400+)NoteMe is a glorious beacon of light (400+)NoteMe is a glorious beacon of light (400+)NoteMe is a glorious beacon of light (400+)
Re: How to make a lamp post light up properly?

Are you using Dx or OGL or something? Use a directional light.



- ии -
__________________
NoteMe is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Games and Graphics Programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:10 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.