BlindSide Log

From Starsonata Wiki
Revision as of 01:44, 13 May 2009 by BlindSide (talk | contribs) (May 13th)

Jump to: navigation, search

BlindSide's Star Sonata Development Journal

May 12th

I've been improving the background generation on/off. On my Phenom 9950 system (2.6 ghz, Only using one core):

- Low/Medium settings take 60 milliseconds to generate the background nebula.
- High+ settings take ~400 milliseconds to generate the background nebula.

I may consider moving this to the gpu for better performance, as high settings systems will undoubtedly support this functionality (I would use the same code that creates the animated patterns on the suns, so it should be pretty damn fast). We'll see.

Currently the background is placed on a flat billboard but I am considering moving this to a hemisphere/quarter-sphere(?) to create a more 3 dimensional feeling.

May 13th

Finally it is lasers time! Lasers are certainly one of the more interesting graphics elements. Few methods/variations arise:

- Criss cross 2 billboards to create a beam effect, fairly simple. 

No textures are needed here as we can just 2 more vertices and interpolate the vertex color from black at the edges to whatever the color is in the center.

- I could place one or two of those billboard volume light scene nodes on the beam to create a bit more variation, 

I'm always meaning to use them somewhere but haven't found the place.

- A better idea would be to just use an elongated sphere and only render the bumps/animations on the lasers in the glow pass. 

This should create a nice effect, I will probably try this method first.

- For wide area laser/tractory type things a cone with scrolling textures (Via texture matrices would be appropriate). 

I will probably just use whatever texture is provided with C1 and scroll that along the 3 dimensional cone, should come out nice.

Well I am off to implement them and will hopefully have some screenshots in a few hours!

(Some time passes)

Ok, first of all, lets get acquainted with the Laser space objects. Process the start and endpoints and draw a simple line for debug output:

File:Http://img15.imageshack.us/img15/600/35511750.jpg

Oh dear that does not look right. Oh yes! The laser is using relative coordinates. Subtract that laser's position from the endpoint:

File:Http://img154.imageshack.us/img154/2766/81555071.jpg

That's more like it!