It is currently Wed Jun 19, 2013 9:18 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Light Angle
PostPosted: Sun Jan 08, 2012 5:09 pm 
Offline
User
User

Joined: Wed Oct 24, 2007 12:28 pm
Posts: 14
Hi
Ive been trying to rotate a light. but there is no function for that only LightLookAt but i don't want it to look at anything just turn. so how can this be done?

Cheers


Top
 Profile  
 
 Post subject: Re: Light Angle
PostPosted: Sun Jan 08, 2012 5:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jan 21, 2011 8:25 am
Posts: 560
Just use an imaginary point in space at an arbitrary distance from the light and rotate that point around
the center of the light yourself using Sin / Cos functions and then use LightLookAt to rotate it. :)

Don't have time to create an example at the moment, sorry.

_________________
Image
ImageImageImage
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds


Top
 Profile  
 
 Post subject: Re: Light Angle
PostPosted: Sun Jan 08, 2012 8:00 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Aug 19, 2003 11:36 am
Posts: 1107
Location: Doubs - France
You can attach a light to a node and rotate the node.

_________________
Please correct my english
http://purebasic.developpez.com/


Top
 Profile  
 
 Post subject: Re: Light Angle
PostPosted: Sun Jan 08, 2012 8:16 pm 
Offline
User
User

Joined: Wed Oct 24, 2007 12:28 pm
Posts: 14
yeah just found that out :D
Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye