Showing posts with label OpenGL. Show all posts
Showing posts with label OpenGL. Show all posts

Wednesday, April 17, 2013

3D solar system with OpenGL and C# - CodeProject

Solar System
Solar System (Photo credit: Joe Plocki (turbojoe))
 Introduction to Article

Hello this is a 3D solar system implementation with OpenGL and C#. I tried to keep it simple because this demo it’s only for educational purposes. It contains the sun, the planets, our moon, the planet’s orbit and some stars. It is programmed in Visual Studio 2008 and I have upgraded it to Visual Studio 2010 without any kind of issue.  I used for this demo the TAO namespace which it’s an interop between the OpenGL dll and the .NET Framework. I also used Shadowengine, a small graphic framework developed by me to get rid you of the tedium of hard coding the loading of textures, the initialization of the graphic context among others. 

3D solar system with OpenGL and C# - CodeProject
Enhanced by Zemanta

Thursday, March 29, 2012

A very simple car race game in C# and OpenGL - CodeProject®


This article is a simple straightforward car race game with minimum lines of code (LOC). By Vasily Tserekh 

A very simple car race game in C# and OpenGL - CodeProject®

Sunday, January 16, 2011

PicZoom: A Photo Viewer created in OpenGL. - CodeProject

Introduction to Article

This article explains implementation details of PicZoom application [A photo viewer with some functionalities are similar to the Picasa Photo Viewer]. PicZoom is an MFC Dialog based application, and OpenGL is used for drawing. Shader programs are not used for display, and therefore I hope PicZoom will run without a high-end graphics card.


PicZoom: A Photo Viewer created in OpenGL. - CodeProject
Enhanced by Zemanta

Friday, January 14, 2011

Android 3D Carousel - CodeProject

Introduction to article

For a while I was looking for 3D carousel control for Android platform. The only one I found was UltimateFaves at [1]. But as it turned out it uses OpenGL. And it’s not open source. I thought if it is possible to avoid a use of OpenGL. Continuing my investigations I stamped on Coverflow Widget at [2]. And it uses standard Android 2D libraries. So the idea was the same – to use Gallery class for the carousel. The Coverflow Widget just rotates images and I wanted to rotate all group of them. Well, at least it implies the use of simple trig methods. More complicated stuff goes with the Gallery class. If you’d look through the article about Coverflow Widget at [3] you’d see a bunch of problems, such as unavailability of default scope variables in AbsSpinner and AdapterView classes. So I went the same way and rewrote some classes. And the Scroller class will be replaced by the Rotator class wich looks like Scroller but it rotates the group of images.


Android 3D Carousel - CodeProject
Enhanced by Zemanta

Thursday, September 9, 2010

How to create Android Live Wallpaper - CodeProject

Here is the introduction:
Starting with Android 2.1. (API Level 7), developers can create live wallpapers - richer, animated, interactive backgrounds - on their home screens. A live wallpaper is very similar to a normal Android application: you can create menu with settings, use SGL and OpenGL for drawing, accelerometer, etc.
In this article I want to demonstrate how to create live wallpaper from scratch. Step-by-step we will create live wallpaper that would output TV test pattern on out home screen. Just like on real TV during night ours!
This article will highlight following aspects of Live Wallpaper development:
  1. Drawing on graphic primitives (circles, rectangles) using android.graphics.Canvas class.
  2. Developing of applications for screens with different resolution and orientation.
  3. Creation of settings dialog for live wallpaper.
  4. Reading of variables values for resource XML file.
  5. Actual creation of live wallpaper for Android
How to create Android Live Wallpaper - CodeProject
Enhanced by Zemanta