Question about Computers & Internet

# Can i get the code for Implementing stellation and rosettes using openGL along with the discription

Posted by Anonymous on

×

my-video-file.mp4

Complete. Click "Add" to insert your video.

×

## Related Questions:

### How can i corredt this error ??

report to mojang and play the pe version for a while. or you can delete your minecraft file and download it again

May 23, 2014 | Kaltner.net Minecraft Mobile Admin

### Project on OpenGL

http://nehe.gamedev.net/lesson.asp?index=01
There are the best set of lessons for OpenGL beginners.

May 21, 2009 | Advanced Graphics Programming Using OpenGL...

### I want a program in openGL for the paint editor

i want a mini project on opengl the topic is graphics ediotor jst like ms paint

May 20, 2009 | Advanced Graphics Programming Using OpenGL...

### I need open gl source code to make a point move along the circumference of the circle.

Hi
I'm studying Physics, not CS, but I've had a few brushes with OpenGL.
I'll use a Basic-like pseudocode syntax since I don't know what language you're using, and basic is very easy to read:

'Constants - Radius is radius of the circle
Const PI = 3.14159, Radius = 10

'Current angle, and angular velocity (dTheta / dt)
Dim Shared Theta as Single, Omega as Single

'Frame is called when you want to draw a new frame
Sub Frame(dt as Single)
'dt is number of seconds passed since last frame (typically less than one, since you want several frames per second)

'Initialize the frame (clear buffers, set up projection, etc)
InitFrame

'Increase angle
Theta = Theta + (Omega * dt)

'Calculate co-ordinates of point
X = Radius * Cos(Theta)
Y = Radius * Sin(Theta)

glBegin(GL_POINTS)

'Set the colour of the point
glColor(<r>, <g>, <b>, <a>)

'Draw the point
glVertex2f(X, Y)

glEnd()

'Display the frame
RenderFrame

End Sub

May 16, 2009 | Advanced Graphics Programming Using OpenGL...

### Opengl code

OpenGL doesn't handle photonics or any other low-level physics - you'll either need a raytracer, such as POVRAY or Blender, or you'll have to write the physics yourself, to emulate light rays of varying colours (I recommend using a HSL colour space for your physics, only translating to RGB when rendering the frame).
The refraction of a ray at the interface of the prism and the "air" can be calculated using Index of Refraction, correction factor to account for different refraction dependent on frequency (Hue) and a random number generator to emulate slight scattering.

Apr 24, 2009 | Advanced Graphics Programming Using OpenGL...

## Open Questions:

#### Related Topics:

32 people viewed this question

## Ask a Question

Usually answered in minutes!

Level 3 Expert

Level 3 Expert