MJW

Render Sphere Height Map

Recommended Posts

This is a rather specialized plugin. It generates a spherical height map for use with my various height-map plugins. Though it logically fits in the Render submenu, I put it in the Height Map submenu instead, since it's only really useful with those effects.

 

The plugin: RenderSphereHeightMap.zip

 

The UI:

RenderSphereHeightMapUI_zpsneyh1u5j.png

 

As described by the Help Menu:

 

Render Sphere Height Map renders a 24-bit height map for a sphere.

The controls are:

Sphere Diameter: Specifies the diameter of the rendered sphere. The choices are:

510: Sets the diameter to 510 (so the radius is 255).
Minimum Selection Dimension: Sets the diameter to the minimum of the width and height of the selection.
Selection Dimensions (Elliptical): Sets the horizontal diameter to the width of the selection and the vertical diameter to the height of the selection.

Maximum Sphere Height: Specifies the maximum height of the rendered sphere, relative to the full 24-bit depth range.

Feathering Height (If Transparent Background): When used with a transparent background, specifies the maximum height at which the sphere begins to become transparent.

Transparent Background: Specifies that pixels outside the sphere should be made transparent instead of black.

 

Here is an example of a 512x512 sphere height map:

SphereTranspBGRA_zps7ho9pazu.png

 

The Texture Merger plugin allows a height map in the clipboard to be scaled, stretched in X or Y, and to have the depth scaled, so there isn't usually a need to generate new sphere height map when a new size is required. Up to now, I've been using the one I included in my initial Texture Shader comment. (That image was generated with a simpler predecessor to this plugin.)

 

The reason the sphere is scaled to the selection instead of having the size specified is mostly historical. I may decide to change it later, especially if I make this a Visual Studio (instead of CodeLab) plugin, so I can provide both options and disable the inapplicable controls.

  • Upvote 5

Share this post


Link to post
Share on other sites

As a longtime fan of Texture Shader I can't overlook your latest two plugins, MJW. I can only somehow imagine their possibilities, but I felt I had to say something in praise of your coding and artistic skills, even when I can't make use of them due to the still outdated hardware/software I use. Kudos!

Share this post


Link to post
Share on other sites

Thank you, Maximilian! If you can install Visual Studio in some form on your system, I'll be happy to provide the VS project code. There are some things that use features not available in older PDN versions, but I think they can be gotten around without too much difficulty.

 

Perhaps I will get around to making 3.5 versions myself, but I've been busy with other things.

 

I wish you'd get a newer system. Refurbished computers are very reasonably priced. I realize, though, that there are often more pressing needs for money.

 

(I believe Visual Studio Express is what you'd need. It's a free download from Microsoft. As far as I can recall, I don't use any features that aren't available in older versions of C#)

  • Upvote 1

Share this post


Link to post
Share on other sites

That's true, but the version that Maximilian could use on his outdated system is, I believe, VS Express.

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now