View Full Version : Z axis
vivek vyas
06-06-2009, 02:06 AM
i had programmed few little codes with z axis
but don't know how it define in OpenGL API and not want to know in these Large Mesa Package
Please any one know how to define Z axis in any API(Which have 2 parameter(x,y) function )
please humble request
if(you_know)help_me;
if(not_know){
if(want_to_help){give_me_suggestion;
give_me_suggestion = help_me;
help_me = give_me_suggestion;
}
if(help_me)
{thanks = 1000;
}
else
{thanks = 500;
}
Dark Photon
06-06-2009, 10:23 AM
i had programmed few little codes with z axis
but don't know how it define in OpenGL API and not want to know in these Large Mesa Package
Please any one know how to define Z axis in any API(Which have 2 parameter(x,y) function )
Are you saying you have a 2D function you want to render using OpenGL, but are unsure how what you should specify for the Z coordinate?
vivek vyas
06-07-2009, 06:01 AM
yes something like this but it will other API
Like GUI, java2D etc.. ..
and look like
ApiVertex3f()
{
z = x,y manipulation (Trigno,complex)
}
Cause
I want to try to make API Independently
ZbuffeR
06-07-2009, 06:26 AM
read about "projection transformations" :
http://jerome.jouvie.free.fr/OpenGl/Lessons/Lesson2.php
vivek vyas
06-07-2009, 06:47 AM
Will it means
i need to derive an API With Matrix manipulation
cause i want to interact with hardware by using a software
(it will like deriving function for z axis
2D + smartness = 3D(Non-real))
but not need to think about z axis every time
just save it in memory
and must portable for all type of 2D screen
(even in Pentium BLABLABLA 10KHZ)
so,
is your mean is
IT MUST USE MATRIX FOR 3D VISUALITY ELSE IT FAIL FOR 3D
Dark Photon
06-08-2009, 04:54 AM
I think your meaning is being totally lost due to language difficulties.
Start with gluOrtho2D, glBegin( GL_TRIANGLES ), glVertex, glEnd, and work up from there. See the red book (http://www.opengl.org/documentation/red_book/) for tutorials/reference, and the man pages are here (http://www.opengl.org/sdk/docs/man/).
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.