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.

Author
Message
HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 20th Apr 2003 04:26 Edited at: 10th Oct 2011 14:26
Hey, I just need some help hear real quick. I can never seem to get lighting to work. Here's my program (without textures) that needs to use lighting:



Any ideas? Thanks in advance for the help
HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 20th Apr 2003 05:11
Perhaps I should mention that my problem is that the light just doesn't show up...

QuothTheRaven
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 20th Apr 2003 06:36
dont forget that a light will only shine on the verticies (or CORNERS) of the object. If you have a cube that's huge, and each side is only one polygon, you can only see the light on the corners of the cube. A light can only shine on the corner of each polygonal face

Darken the skies, we are god
http://www.DelvarWorld.com
HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 20th Apr 2003 06:48
; I'm using a plain...plus I never knew that...

Here's my code without the use of textures so you can see for yourself what I'm doing:


BackDrop Off

` Set display mode
Set Display Mode 800, 600, 32 : Hide Mouse

` create background
Make Object Plain 1, 800, 600
Texture Object 1, 2
Rotate Object 1, 9, 0, 0
Position Object 1, 0, 0, 150

` create scrolling text plain
Make Object Plain 2, 800, 600
Position Object 2, 0, 0, -425
Rotate Object 2, 65, 0, 0
Scale Object 2, 150, 400, 100
Set Object Transparency 2, 1

` create light
Make Light 1
Set Light Range 1, 50
Position Light 1, 5, 5, 5

Wait key


Sigh...

Login to post a reply

Server time is: 2026-07-11 17:26:38
Your offset time is: 2026-07-11 17:26:38