Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Raduprv

Spheroid creation

This topic is 5705 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to create some sort of ''personal forcefield'' around my charcters, and I want it to look kind of like an egg rendering it is not a problem, but my math is not exactly in the best shape, so I was wondering if anyone can provide with some pseudocode to create an egg Oh, and I want both vertices and UV coordinates... (some sort of sphere map would be good enough, I guess) Thanks in advance. Height Map Editor | Eternal Lands | Fast User Directory

Share this post


Link to post
Share on other sites
Advertisement
It would take less processor usage if you just modelled a sphere with some graphics software and scale it in your own program when necessary.

Share this post


Link to post
Share on other sites
You can do that if you use a mesh. Although I would use one I generated myself, because it only has to be created once and isn''t that slow. Also varying degrees of detail can be implemented, which is always nice. The two main ways of generating a sphere(can be morphed into an egg easily) are to make rings and then join them up, or to start with a simple shape(eg icosahedron) and then split faces, producing 4 times as many tris and more vertices each time.

I''ve never actually done it or read anything on it, but in 3D modellers that''s what they do I think.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!