Jump to content

Sphere


trancexx
 Share

Recommended Posts

Sphere is probably one of the most important geometric entities in 3D modeling.

OpenGL gives more than one way of rendering sphere. One is explained here since the sphere can be seen as the special case of the torus.

Another way is to use available glu function. The name of the function is gluSphere.

Description can be found here, and implementation in AutoIt in this example:

H2O.zip

Example is showing two molecules of water (red is oxygen, blue hydrogen). Since I'm not that good with chemistry it could be a little off. I hope you wouldn't mind.

Snowman script is another example. Link to that script.

Edited by trancexx

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

My colors was messed up. Why?

I would like to learn linear algebra someday. Do you know it?

I was trying to "compile" as much elements as I could with that script to reduce the CPU maximally. Since I'm in process of learning handling OpenGL hence often not knowing the outcomes of my actions, that lead to a total confusion of materials.

Coincidentally, that code was and is working just fine on XP. Nevertheless, it seems wrong now.

Algebra is boring and some parts of it tend to hurt my head. I love mathematical analysis and that part of mathematic though.

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

This is a sweet example! I do a lot of experiments with electrolysis of water and always wanted to make something showing the H20 molecule being split into hydrogen and oxygen. This will help so much if I every try to take a crack at it again. I'm also shocked to see how low the cpu is without any assembly. Thanks for sharing. Your scipts are the best to learn from.;)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...