Re: How to create the Sun?

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Tue, 7 May 1996 21:27:02 +0100


This is probably a bit ambitious for a light point.

Create a circular piece of geometry along the y axis facing the origin and
ensure that it subtends the appropriate angle with the origin that the sun does
with your eye on the earth. Make the geometry white and ensure its state
information is untextured & unlit etc. Ensure it lies far along the y axis,
near your far clip (or sky geometry) but not too near.

Attach the geometry to a DCS positioned at the eye & use the pitch and heading
on the same DCS for elevation and azimuth of the sun.

Rgds,
ANgus.

On May 6, 12:01pm, Nuno Godinho wrote:
> Subject: How to create the Sun?
> Hi.
>
> I would like to represent the Sun. I don't want it to cast light. Just
> need a yellow sphere crossing the sky.
>
> Now I am using a pfGeode sphere but I get a shaded Sun.
>
> What is, in your opinion, the best way to do this?
>
> Some ideas I have:
>
> -Should I be using a pfBillboard instead? Since the sun is spherical I
> only need a circle, right? But this doesn't solve my shade problem!
>
> -using pfLPointState with a single huge yellow light point should be
> the straight forward solution.
> Don't know if it's possible. The example lpstate.c is too
> complex and actually I'm a bit scared with pfLPointState.
> Is it possible to create a big light point? In the manual
> it mentions SMALL points only.
>
> -I tried to disable lighting on the Sun object but I just got a
> white circle crossing the sky
>
> -I'm considering pointing a light projector directly at the Sun so that
> I don't see any shades but this seems like confusing what should be
> simple!
>
> please help me
>
> thanks
> Nuno
>-- End of excerpt from Nuno Godinho

-- 
Angus Dorbie,
The Reality Centre,
Silicon Graphics Ltd, UK
dorbie++at++reading.sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:52 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.