GLKit and MSAA
Рубрики: iOS on Jan.04, 2012
Enable MSAA Anti-Aliasing in GLKit. Just enable: 12GLKView *view = (GLKView *)self.view; view.drawableMultisample = GLKViewDrawableMultisample4X; Without MSAA: With MSAA: GLKit_MSAA_Sample
Рубрики: iOS on Jan.04, 2012
Enable MSAA Anti-Aliasing in GLKit. Just enable: 12GLKView *view = (GLKView *)self.view; view.drawableMultisample = GLKViewDrawableMultisample4X; Without MSAA: With MSAA: GLKit_MSAA_Sample
Рубрики: OpenGL on Dec.22, 2011
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) + [...]
Рубрики: Apple, iPad, iPhone, OOP, Tutorials on Jun.09, 2010
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
Рубрики: Apple, iPad, iPhone, Mac OS X, OOP, Tutorials on Jun.08, 2010
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 on Oct.14, 2009
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 [...]
Рубрики: iPhone on Oct.12, 2009
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 [...]
Рубрики: Apple, iPhone on Jul.29, 2009
Hi guys! Расскажу о приимуществах и недостатках о разных видах текстурирования. Начну с текстурирования не PVR, более простое. Простота заключается в следуещих удобствах: – Возможность использовать любое расширения картинки с неодинаковой высотой и шириной (желательно до 1024×1024). – Можно использовать картинки TGA, PNG, JPG, etc. – Один из значительных плюсов является простота размещения. Создается bound [...]
Рубрики: iPhone on Jul.27, 2009
It’s really easy! If you have this source code :) OpenGL GIF Player iPhone P.S.: I’ve returned!
Рубрики: iPhone, OOP, others on May.30, 2009
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 ); [...]
Рубрики: iPhone, others on Mar.15, 2009
Припомощи SIO2 мне захотелось сделать землю. Другими словами просто создать шар и наложить на него текстуру. В процессе этих действий столкнулся с некоторыми проблемками: – Это какой тип шара можно использовать в SIO2. – Размер текстуры. – Накладывание текстуры. Сейчас пошагово опишу как я это сделал: Открываем Blender. Удаляем стандартный куб. Нажимаем пробел и в [...]