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
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Games and Graphics Programming

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Aug 15th, 2006, 03:18 PM   #1
LiLo
Lively Member
 
Join Date: Mar 06
Posts: 108
LiLo is an unknown quantity at this point (<10)
Smile How to create a day and night effect?

Hi,

I am drawing a house (shaped as a cube with a triangular roof) and a couple of lamp posts next to it. The ground is rendered as a sandy patch.

How do I create a day and night effect using openGL lights? For night time, the environment (the house and the sandy patch) is supposed to be dimmed to simulate the darkness and the lamp posts are supposed to light up.

How do I manipulate the lights to achieve the night time dimming effect? Is it to change the ambient light to black?
And how do I enable the lamp posts to light up? Do I use diffuse or emissive lights?

Day time is ok. When the picture is rendered, the scene looks quite bright already. I think i'll just have to turn off the lights for the day time effect.
LiLo is offline   Reply With Quote
Old Aug 15th, 2006, 03:25 PM   #2
Jacob Roman
Banned
 
Jacob Roman's Avatar
 
Join Date: Aug 04
Location: Cocoa Beach, FL Chit Chat Posts: 500+
Posts: 4,371
Jacob Roman is a jewel in the rough (200+)Jacob Roman is a jewel in the rough (200+)Jacob Roman is a jewel in the rough (200+)
Re: How to create a day and night effect?

For daylight, I make sure my textures colors are RGB(255, 255, 255) for full color, and night, RGB(55, 55, 55), for a darker color, even for the skybox. And when you have your lights, it gives that effect you are looking for.
Jacob Roman 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 Search this Thread
Search this Thread:

Advanced Search
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 01:19 PM.




To view more projects, click here

Acceptable Use Policy


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.