android-developers
[Arriba] [Todas las Listas]

Re: [android-developers] Cómo a overlay un GLSurfaceview en un surfacev

To: Android Developers <android-developers@xxxxxxxxxxxxxxxx>
Subject: Re: [android-developers] Cómo a overlay un GLSurfaceview en un surfaceview?
From: Jitender Maurya <jkmaurya161@xxxxxxxxx>
Date: Wed, 9 Nov 2016 01:57:36 -0800 (PST)
Cc: brandipa@xxxxxxxxx
Delivery-date: Wed, 09 Nov 2016 04:58:24 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=I/b/iNKuvw4oPxPdR9ICVMp/39U0KRNkA6Gsf7I8XnY=; b=ulE8PCkr+WAW8ckdCBSzOHONWY8gNXeWhfF5oKL4mJoI70Dl6y/JzZUJXvvZVVy2vK IyOlpBQ2p0PXwYoshkQFB6YrcYdRSWX+uVE/e0wfDWPrKAF9KZ5CPKQya5w8UJn492cj tVIfKTY2iE6xrV8+vqYoCJP6jlB6JU8Y/RDFAdkE0djGTNoZr554+gycu8drPLD+echf LpOld5/dkHAKvj9iZBVY3NqvHXMsEDoaah8tJHp6kagPzze9K27XZ9RUbnIYIGZ0LJjk mwe79guuM/UhvsGcw9EmieBF8FPObY4bF0nLR+rfOk0PYt4LIZlfpl/J1Rin894HrbFH KNaA==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=I/b/iNKuvw4oPxPdR9ICVMp/39U0KRNkA6Gsf7I8XnY=; b=iLGOxj2Rt07O+sdPINuNkwV0xaguIs/1alG+pajrQ5ayEsm3Mf0/WhVHBMdWNMIu5h XeI1RYzOdNuBA8ec5fG2pttoQlbaifn8un/Z1Z6iEqP5aRfsNF38B0Sd86THwFkiOep+ aLBBX+ebdblbPwdZ7GMraIKL6S/xVU7MdoRSQOzgEFLoS8Fdt/CFRsaRd8FS+SkjgKwb uXYxBUCcrOxeRLm4Vendhmvdn20ZmwRK6Vl2OyeHe0A3tFNvXLuehQSDZ8OG28HE+h94 KapdF/6qIMKagTbhXWOWzKbv/dGlQzbNoDiqMcs7bOSwlFLkGE3Lo0kjR/CsPf+qTAV0 D3Jg==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <9cf2c054-3a3d-4f04-850b-8398ce98c66f@11g2000yqr.googlegroups.com>
List-archive: <https://groups.google.com/group/android-developer>
List-help: <https://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <https://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <https://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>, <https://groups.google.com/group/android-developers/subscribe>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
References: <9cf2c054-3a3d-4f04-850b-8398ce98c66f@11g2000yqr.googlegroups.com>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
*Hi *paolo,

 conseguías la respuesta a ti cuestiona. *i También estoy afrontando el mismo problema. 
Puede me ayudas? *i También estoy probando a *overlay 3*d el modelo cargado en 
*glsurfaceview y cámara *preview en *surfaceview. Tan finalmente *i estoy probando a *overlay 
*glsurfaceview sobre *surfaceview .

Compartido.*renderer(*r);
_*glSurfaceView = Nuevo *GLSurfaceView(este);//abierto *gl la superficie es creada
//_*glSurfaceView.*setEGLContextClientVersion(2);
_*glSurfaceView.*setEGLConfigChooser(8, 8, 8, 8, 16, 0);
//_*glSurfaceView.*setRenderMode(*GLSurfaceView.*RENDERMODE_CUÁNDO_SUCIO);
_*glSurfaceView.*getHolder().*setFormat(*PixelFormat.*TRANSLUCENT);
//_*glSurfaceView.*setRenderMode(*GLSurfaceView.*RENDERMODE_CUÁNDO_SUCIO);
_*glSurfaceView.*setZOrderMediaOverlay(Cierto);
_*glSurfaceView.*setRenderer(*r);
//*setContentView(_*glSurfaceView);
*addContentView(_*glSurfaceView, nuevo *ViewGroup.*LayoutParams(*ViewGroup.*LayoutParams.LLENA_PADRE, *ViewGroup.*LayoutParams.LLENA_PADRE));
*cameraView = nuevo *CameraView(esto, *mCamera);
//*cameraView.*mHolder.*setFormat(*PixelFormat.*TRANSLUCENT| *WindowManager.*LayoutParams.BANDERA_*BLUR_DETRÁS DE);
*addContentView(*cameraView, nuevo *ViewGroup.*LayoutParams(*ViewGroup.*LayoutParams.LLENA_PADRE, *ViewGroup.*LayoutParams.LLENA_PADRE));


*thanks


-- 
recibiste este mensaje porque eres *subscribed al *Google Grupos "*Android *Developers" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx.
Visita este grupo en *https://grupos.*google.*com/Grupo/*android-*developers.
Para ver esta discusión en la visita de web *https://grupos.*google.*com/*d/*msgid/*android-*developers/1*b7*b5*c59-*c40*c-463*e-8334-#uno1#uno63*b73*f248%40*googlegroups.*com.
Para más opciones, visita *https://grupos.*google.*com/*d/*optout.
Hi paolo,

did you got the answer to you question. i am also facing the same problem. 
can you help me? i am also trying to overlay 3d model loaded in 
glsurfaceview and camera preview on surfaceview. so finally i am trying to 
overlay glsurfaceview over surfaceview .

Shared.renderer(r);
_glSurfaceView = new GLSurfaceView(this);//open gl surface is created
//_glSurfaceView.setEGLContextClientVersion(2);
_glSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
//_glSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
_glSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
//_glSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
_glSurfaceView.setZOrderMediaOverlay(true);
_glSurfaceView.setRenderer(r);
//setContentView(_glSurfaceView);
addContentView(_glSurfaceView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
cameraView = new CameraView(this, mCamera);
//cameraView.mHolder.setFormat(PixelFormat.TRANSLUCENT| WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
addContentView(cameraView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));


thanks


-- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/1b7b5c59-c40c-463e-8334-a1a63b73f248%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>
  • Re: [android-developers] Cómo a overlay un GLSurfaceview en un surfaceview?, Jitender Maurya <=