This project aims to be a simple example for using SDL2 and OpenGL 3.2. In addition it should also be useful for experimenting with shader development.
Install XCode & CLI tools.
Install Development Libraries for SDL2: http://www.libsdl.org/download-2.0.php
sudo apt-get install freeglut3 build-essential libgl1-mesa-dev mesa-common-dev xorg-dev libudev-dev libts-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev libopenal-dev libogg-dev libvorbis-dev libaudiofile-dev libpng12-dev libfreetype6-dev libusb-dev libdbus-1-dev zlib1g-dev libdirectfb-dev
Get SDL2, make and install http://www.libsdl.org/hg.php
Add texture coords to object
-
Select your object.
-
3D View toolbar -> Edit Mode -> Mesh -> Faces -> Triangulate Faces (Ctl T)
-
Outliner -> Object Data -> UV Maps -> Add
-
Outliner -> Texture -> Show material textures -> Tex
-
Type = Image or Movie
-
Mapping -> Coordinates = UV
-
Image -> Open (test.bmp)
-
-
3D View -> Edit Mode -> Edge Select
-
(click where you want a seam)
-
Mesh Tools -> UV Mapping -> Mark Seam
-
(repeat as needed)
-
Select all faces
-
-
UV/Image Editor
-
Browse image to be linked -> test.bmp
-
UVs -> Unwrap
-
-
File -> Export -> Standord (.ply)
3D Math Primer for Graphics and Game Development
PLY objects created using blender