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.

Newcomers DBPro Corner / Lights inside an object

Author
Message
Sina
18
Years of Service
User Offline
Joined: 18th Aug 2006
Location:
Posted: 18th Aug 2006 11:00
I'm trying to make sphere as a model of sun.
I've placed POINT LIGHT inside of it.
It sends light to other objects in world, but sun itself is not illuminated!
Can I make inside sphere's polygons of sun to be illuminated?

Thanks


Sina
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 18th Aug 2006 13:34
You won't get a true "glow" without the use of shaders, such as a bloom shader. Youcan make it brighter though by setting the object ambience to 100, and playing with object fade and specularity.



Whisper Wind
21
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 18th Aug 2006 17:53
The reason why it doesn't light up if the light is inside of it is because then the polygons are all backfacing: they have their backs towards the direction of the point light and therefore don't light up.

Searching for files named 'sanity'...
No files were found.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 19th Aug 2006 00:27 Edited at: 19th Aug 2006 00:28
How do you change that, Whisper Wind? Is it something with the culling or...

Whisper Wind
21
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 19th Aug 2006 00:42
I don't think it can be changed, it is the way the lighting algorithm is made. The amount each vertex is lit is based on the difference between the angle of the light, and the angle of the surface normal of the triangle (which represents the direction the triangle is facing). If there is too much of a difference, there will be no light at all (because the triangle is backfacing). If the triangle is facing directly at the light, it will be fully lit. Any where in between and you will get different intensities of light.

Searching for files named 'sanity'...
No files were found.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 19th Aug 2006 01:26
Ah I see. Would scaling the object by -100 fix this?

Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 19th Aug 2006 05:46
Don't think so

That would make make whatever part of the sphere your looking at see through and you would see the other side.

Applyby has Flies in his Eyes.
Sina
18
Years of Service
User Offline
Joined: 18th Aug 2006
Location:
Posted: 21st Aug 2006 12:17
Thanks guys,
For now I'll texture sun SET LIGHT x,0 and place point light inside.

Sina

Login to post a reply

Server time is: 2024-11-27 09:46:35
Your offset time is: 2024-11-27 09:46:35