Results 1 to 6 of 6

Thread: Static shadows?

  1. #1

    Static shadows?

    I tried a game "Live For Speed". How are the shadows of trees in the roaddone?

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Nov 2002

    Re: Static shadows?

    If you call them static shadows then most likely they're lightmaps (runs like h.ll & cheap to use). BTW I really like artwork in Hitman2 I have PII-350 (Overclocked to 434 3.5@124), 384MB RAM & GeForce2 GTS w 32VRAM & I havn't experienced any slowdowns for now. Only thing that isn't maxed out is env bumpmapings. And light+fog effects looks really great.

  3. #3

    Re: Static shadows?


    Are lightmaps usually generated load time (is it heavy operation?) or are they ready get from file? What resolution (pixels per triangle)?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Bonn, Germany

    Re: Static shadows?

    Lightmaps are usually pregenerated (can be very compute intensive, radiosity and that kind of stuff) and packaged into the distribution files.

    Typical resolution (wild guess) would be about 1/16th of base texture resolution (ie 1/4 in each dimension, one light map texel per 4x4 base map texels).

  5. #5
    Senior Member Regular Contributor
    Join Date
    Oct 2002
    San Diego, CA, USA

    Re: Static shadows?

    I have used Crystal Space before, and that engine will calculate lightmaps on map load, if the lightmaps aren't cached already. They are really computation heavy, I suggest you either precalculate them or provide a mechanism for calculating and caching the 'maps, since you shouldn't expect them to change.

  6. #6

    Re: Static shadows?

    But does this result in very many amount of lightmap textures? because every triangle in scene has its lightmap.
    And thus lightmap texture coordinates cannot be per vertex, they must be per (face,corner).

    This means I must render triangles separately, cannot use indexed trianglestrip (I can, but it doesn't help).

    Am I right, or lacking something?

Similar Threads

  1. Deferred Shadows or Forward Shadows?
    By mrMatrix in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 01-18-2016, 01:01 PM
  2. Problem with point light shadows (cubemap shadows)
    By Ryno Engine in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-20-2015, 04:36 AM
  3. shadow for static mesh and static lights
    By jide in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 05-03-2006, 06:19 PM
  4. Static... How do I get rid of it?
    By ceige in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 03-30-2004, 10:17 AM
  5. Replies: 2
    Last Post: 08-17-2003, 01:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean