A downloadable tool

Download NowName your own price

Did you want to generate eggs in Godot as easily as other shapes like spheres and boxes? Did you want to customize different shapes of eggs for different species of birds? Did you want to then display different speckling patterns on those eggs, again to match different species of bird eggs?

These are some tools to help generate eggs of different shapes and colours in Godot.


Egg Mesh Primitive

Generates a mesh primitive, like the SphereMesh or BoxMesh. This can be used anywhere that meshes are used.

Current variations include Two Radii Egg where the shape is defined by the radius of the blunt end and of the pointy end. Four Coefficients Egg is defined by a series of coefficients used in the formula: ๐‘ฆโก(๐‘ฅ)=๐‘‡โข(1+๐‘Žโข๐‘ฅ+๐‘โข๐‘ฅ2+๐‘โข๐‘ฅ3)โขโˆš1โˆ’๐‘ฅ2 from Biggins et al Accurately quantifying the shape of birdsโ€™ eggs (2018) And the Preston Egg defines the shape according to parameters defined by F.W. Preston. (Elongation, Asymmetry, and Bicone)


Speckled Egg Shader

Shader that adds speckles to eggs and allows you to customize their appearance.


Cubemap Egg Shader

The generated egg mesh has UVs, but any texture you use needs to account for faces pinching near the ends. You might find it handy to texture your egg with a cubemap instead.

Speckled Egg Shader to Cubemap Converter

There's also a tool to convert a Speckled Egg Shader material into a cubemap.

Rolling Movement

There's a tool that helps create rolling animations for meshes. This also works with shapes other than eggs.

Cracked Eggs

A mesh tool can convert the egg mesh into two cracked halves, useful for egg-opening animations.


Egg Stylebox

You can assign an EggStyleBox to a Control node.

There's also the AutoEggStyleBox which differs in that it uses the dimensions of the Control node for Elongation, rather than using the parameter.


Egg Texture

There's a procedural egg texture you can use anywhere you would otherwise use a Texture2D 

Egg Bitmap

If you use a TextureButton, you can assign a bitmap to the Click Mask to make the shape the cursor can hover over or click on the button. If you assign Egg Textures to the Pressed, Hover and other states, and an EggBitmap to the Click Mask, you can make them all match by assigning the same parameters for the shapes.


Future Updates

The speckle shader could use some more flexibility in speckling, allowing for rings and more combinations of large and small speckles.


I might add support for the Preston et all shape indices as well as Preston.

Now that I've got the colours from Color Standards and Color Nomenclature in there, maybe there's something I could make that will be easier to search for colours based on name.



Updated 16 days ago
StatusReleased
CategoryTool
AuthorR Hill

Download

Download NowName your own price

Click download now to get access to the following files:

egg_tools.zip 88 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.