RSAGL, More Features

This planet has a slice taken out of it.

It uses a very simple ray-caster to compute a deformation of the sphere onto three planes. This has a benefit that we can take normal vectors from the planes, saving us the cost of computing normals for the entire deformed surface. It also has the benefit that as the ray-caster gains more geometries, it will be possible to project surfaces onto those geometries as well.

The ray caster will also be used to implement collision detection for projectiles and beams.

ringedplanetcut3.png

Advertisement

About Christopher Lane Hinson

A hairy Haskell hacker and developer of Roguestar, a 3D science fiction roguelike game.
This entry was posted in RSAGL. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s