Hello,
I've got a lovely OpenGLES code slice that renders up images for me. When I want to, I can call a function on it:
-(UIImage *)renderToImage;
That does a lot of rendering work and returns me an image. This includes the generation of FBOs, textures, etc.
Lately, I've found myself needing to enhance this. The image generation ta...
Hello,
I'm fighting from some time with taking a screenshot of Android OpenGL.
The code I found is as follows:
nt size = width * height;
ByteBuffer buf = ByteBuffer.allocateDirect(size * 4);
buf.order(ByteOrder.nativeOrder());
glContext.glReadPixels(0, 0, width, height, GL10.GL_RGBA, GL10.GL_UNSIGNED_BYTE, buf);
int da...
I am basically developing a Tracking application in C++. Can anyone please tell me how to overlay the trackers (lines) and mapped points (circles) which I generate through the C++ code on the frame by frame video that i am capturingin Javasource code? Do I need to use GLSurfaceView? Sorry for the newbee question.
But someone please let ...
how to set the coordinate in openGL ES? I have import my 3D object in openGL ES then I use gltranslatef (x,y,z) to translate the object. However, may I ask how to set the coordinate of the 3d object? any API of OpenGL? not using gltranslate because gltranslate just make the simple translation of object. But then, I want the user key in t...
Is it possible to use OpenGL to display video and be able to resize the view in runtime?
...
I'm currently working on a couple of shaders for an iPad game and it seems as if Apple's GLSL compiler isn't doing any optimizations (or very few). I can move a single line in a shader and drop my FPS from 30 to 24 but I really have no idea why this is happening.
Does anyone have any references for the following:
what PowerVR instruc...
In OpenGL ES, how do I specify what the maximum visibility distance is? I've found that when I do:
gl.glTranslatef(0,0,-10f);
everything I draw is invisible because it's too far away from the camera. How do I specify that it should draw things farther away?
...
What are the necessary steps to update an existing OpenGL ES 1.1 based 2D iPhone game to be compatible w/ the iPhone 4's retina display? I'm still using the Texture2D class that came w/ Apple's CrashLanding (download) sample code.
After reading Apple's documentation, watching the WWDC video (session 134 "Optimize Your iPhone App for t...
How to make the crosshair point in OpenGL ES? After I get the coordinate of my object by using glTranslatef, I want to make my point become visible and in the crosshair style. How to do it? thanks. Any references of the sorce code?
...
Hi,
I want to build an web app that uses openGL, a native one.
(examples: http://www.apple.com/webapps/index1.html)
I must use openGL and i cannot figure out if i can build a plugin that uses the native openGL component. I do not want it to look as openstreet map or google map in javascript.
What i really want is not simple web app, bu...
Anyone know of an example of an opengl implementation of something like the Gallery widget? Basically, I am looking for an example of how to horizontally scroll a list of images using opengl. I have seen this behavior in the Gallery 3D app from cooliris but there is ALOT of code in that app and I haven't been able to figure out how it wo...
Using Iphone and Objective C
Im trying to find what plane has been clicked/touched in my opengl view. Typically i would use glPushName/ flPopName but this function doesn't seem to be implemented in the sdk or defined in . Does anyone know where to get there useful functions or another way to get the object that was clicked?
...
I'm experimenting w/ improving the "resolution" of an OpenGL ES based app. Apple mentions here (developer.apple.com) that OpenGL ES in iOS 4 supports multisampling... and this can improve the graphics somewhat. How do you enable multisampling?
...
Hey guys,
The following is giving me triangles not squares, anyone know why??
//Defining as...
addcube(2,-2, 1, -1, 10);
addcube(float lx, float hx, float ly, float hy, floathz){
final float array1[] = new float[] {
//Front face
lx, ly, hz,
lx, hy, hz,
hx, ...
Hey Guys,
I'm confusing myself terribly grasping the concept of plotting on a 3D plane, if I'm looking down the -Z axis, to put an objectinfront of me I just make the Z value Negative and to put it behind I just make it positive.. but.. how do I Put objects to my left or right? Sorry, I realise this is a stupid question but none the les...
Hey Guys,
I've created an openGL square like so..
final float array1[] = new float[] {
//Front face
lx, ly, hz,
lx, hy, hz,
hx, ly, hz,
hx, hy, hz
};
I've also got a Ray. I'd now like to put bounding boxes around every square I draw so that I can check if th...
Hi, I got a problem with OpenGL ES on iPhone.
I'm working on a project, it draws something on the view, and then save the image. It also has a background image. I combined the image get from view and the background image.
I set the view's opaque property as NO, but the image get from the view still opaque. So I could not combine the tw...
Hello
Does anyone know a tutorial hat explains how to shade an object to look like
silver metal? (on iphone)?
Maybe starting with a spere like in this:
http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-part-5-living.html
Or can this not be accomplished without the new shaders in 2.0?
Thanks
Sebastian
...
Hello,
I'm playing around with the GLPaint Example from Apple.
But I don't know how to create an effect which fades the already drawn stuff out.
I created an example in Flash which shows the effect I'm looking for:
http://staging.rwichmann.com/openglexample/
In Flash I'm drawing a texture on a BitmapData and in every frame I'm adding ...
I have android:screenOrientation="portrait" set for my activity. Creating an AVD with resolution 800x480 and running my activity, the GLSurfaceView is created with dimensions 800x480 (ie. not rotated and width > height).
I would expect it to be created with dimensions 480x800 and be rotated 90 degrees.
Is this a bug in the emulator or ...