Guys, hi ,
I'm a newbie to openGL, and my purpose in the context of engineering
project in school is to render
a volume on a mobile device. I'm using android g1 phone and it
supports opengles 1.1
The result i'd like to get is something like this:
http://www.academicsuperstore.com/images/cs4_photoshop_21.jpg
I've found a library for my mobile device that renders an md2 file so
i am wondering if i can use it.
The point here is that the body is translucent, i.e. it's the front
face doesn't block completely the back face.
Is it possible to use md2 for such volume rendering ?
If not, how could i do it under the constraints of openglES ?
Please advise,
Arie
|
|
0
|
|
|
|
Reply
|
Arie
|
6/24/2009 6:21:22 AM |
|
On Jun 24, 8:21=A0am, Arie Meir <arie.co...@gmail.com> wrote:
>
> The point here is that the body is translucent, i.e. it's the front
> face doesn't block completely the back face.
>
> Is it possible to use md2 for such volume rendering ?
> If not, how could i do it under the constraints of openglES ?
>
If the polygons have correct orientation you can use
glCullFace() for this.
Set culling to GL_FRONT and render (this draws the back
polygons).
Set culling to GL_BACK and render again.
--
<\___/>
/ O O \
\_____/ FTB.
http://www.topaz3d.com/ - New 3D editor for real time simulation
|
|
0
|
|
|
|
Reply
|
fungus
|
6/24/2009 10:56:19 AM
|
|