Тег ‘OpenGL’:

GLKit and MSAA

Enable MSAA Anti-Aliasing in GLKit. Just enable: 12GLKView *view = (GLKView *)self.view; view.drawableMultisample = GLKViewDrawableMultisample4X; Without MSAA:   With MSAA: GLKit_MSAA_Sample

Теги: , , , , ,

Комментарии отсутствуют

Distance between vertices and magnitude of a vector

Distance between vertices: 12345678910111213static inline GLfloat Vertex3DDistanceBetweenVertices (Vertex3D vertex1, Vertex3D vertex2) {     GLfloat deltaX, deltaY, deltaZ;     deltaX = vertex2.x – vertex1.x;     deltaY = vertex2.y – vertex1.y;     deltaZ = vertex2.z – vertex1.z;     return sqrtf((deltaX * deltaX) +         (deltaY * deltaY) +   [...]

Теги: , ,

Комментарии отсутствуют

iPhone 3D Samples from “iPhone 3D Programming” book

iPhone 3D Samples from “iPhone 3D Programming Developing Graphical Applications with OpenGL ES” book. Thanks Frank and Doris Rideout and O’REILLY 31 iPhone 3D Samples OpenGL ES 1.1 and 2.0 All links direct to http://examples.oreilly.com/ All Samples HelloArrow

Теги: , , , , , , ,

Комментарий (1)

Good book!

Do you have a great idea for a graphics-intensive iPhone or iPad application, but don’t know how to bring it to life? This book offers the perfect solution: a crash course on the OpenGL graphics library with an overview of iPhone 3D development. Whether you’re an experienced OpenGL developer looking to build iPhone apps for [...]

Теги: , , , , ,

Комментарии отсутствуют

iPhone Particles samples OpenGL ES

This is just one possible configuration – one of the simpler ones, actually, as it is only using point rendering and simple gravity – no textures, no wind, no transparency, etc. I call this configuration “fountain”, and it’s can be created in one line of code: ParticleEmitter3D *fountain = [ParticleEmitter3D fountain]; then, you just need [...]

Теги: , , ,

Комментариев (2)

Saving screenshot of OpenGL ES content to the Photo Album

Very interesting article: Anyway, for an app I’m working on, I needed to take a screenshot of OpenGL ES rendered content. I assumed there was some built in function for that, but much searching led me to the conclusion that it’s a roll-your-own kind of thing. So, after a couple of days, I was finally [...]

Теги: ,

Комментарии отсутствуют

PVRTexture & Texture2D

Hi guys! Расскажу о приимуществах и недостатках о разных видах текстурирования. Начну с текстурирования не PVR, более простое. Простота заключается в следуещих удобствах: – Возможность использовать любое расширения картинки с неодинаковой высотой и шириной (желательно до 1024×1024). – Можно использовать картинки TGA, PNG, JPG, etc. – Один из значительных плюсов является простота размещения. Создается bound [...]

Теги: , , ,

Комментарии отсутствуют

OpenGL and gif – gifPlayer for iPhone

It’s really easy! If you have this source code :) OpenGL GIF Player iPhone P.S.: I’ve returned!

Теги: , , ,

Комментариев (2)

SIO2 answers on questions from forum sio2

Center of object from 12345678910111213141516171819SIO2object *tmp = sio2ResourceGetObject( sio2->_SIO2resource, "name of your object" );          tmp->buf = ( unsigned char * )sio2MapBuffer( tmp->vbo, GL_ARRAY_BUFFER );          unsigned int i = 0,                 n_vert = sio2ObjectGetNumVert( tmp );           [...]

Теги: , , , ,

Комментариев (3)

Create 3d earth for SIO2 project

Припомощи SIO2 мне захотелось сделать землю. Другими словами просто создать шар и наложить на него текстуру. В процессе этих действий столкнулся с некоторыми проблемками: – Это какой тип шара можно использовать в SIO2. – Размер текстуры. – Накладывание текстуры. Сейчас пошагово опишу как я это сделал: Открываем Blender. Удаляем стандартный куб. Нажимаем пробел и в [...]

Теги: , , ,

Комментариев (7)