Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: vivek vyas

Page 1 of 7 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,649

    Re: how can i get the vertex after rotation?

    not it is a function and definition is depends on you
    better to say vecXmat
    take in this way


    void GetCol(float Mat[16],float (&Res)[4],int c)
    {
    assert(c<=4);
    for(int r=0;r<4;r++)
    {
  2. Replies
    3
    Views
    1,649

    Re: how can i get the vertex after rotation?

    you can do it like in this way
    GLfloat mat[16];//Global
    make your own function(like MulMat) which multiply matrix with 3 Co-Ordinates with taking care of OpenGL Matrix Order

    glPushMatrix();...
  3. Replies
    3
    Views
    1,193

    Re: colors acting weird

    gluPerspective(90.0, 16.0 / 9.0, 0, 200);

    gluPerspective(90.0, 16.0 / 9.0, 1, 200);
  4. Re: simple texturing shader not working...Black Screen

    I am not sure for your solution but you can use nVidia Cg.
    It supports wide varierty of shaders.
    and I think that black screen is due
    glClearColor(0,0,0,0); by default
    try use this with other...
  5. Replies
    3
    Views
    2,631

    Re: Help Basic 2D Grid

    if you find this
    http://www.opengl.org/resources/code/samples/redbook/pickdepth.c
    then the solution of your problem is also in this code
  6. Replies
    8
    Views
    4,140

    Re: Very Very Strange results with shaders

    if you don't know(but i think you know)

    model-view
    both are two matrix


    model->Translate,Scale,Rotate...
    view->gluLookAt()which is also Translate Rotate...

    make some changes on your...
  7. Replies
    8
    Views
    4,140

    Re: Very Very Strange results with shaders

    I am not understand where your init is
    but
    it look like matrix which are multiplied are different

    if your init() is inside main for define and not change
    then it not get multiplied with a...
  8. Re: GL file is not being found? Unresolved External Sy

    it worked with "console" new empty project
    atleast in my system ;)
  9. Replies
    4
    Views
    1,095

    Re: 3DS Model & normals

    do you use lib3ds
    if yes then i have solution for calculating normal as it have function for it
  10. Replies
    0
    Views
    617

    blur technique???

    if I want to make blur object at max

    Do they have to be convex in shapes{
    I tried by focusing the eye's on nose and watching the world
    }


    so my shader have to act like this way

    ...
  11. Replies
    10
    Views
    4,755

    Re: Toolkit for Borland C++

    hey what the fun behind it
    is it "windows.h"

    really

    i am also hunger to laugh on my words.
  12. Replies
    10
    Views
    4,755

    Re: Toolkit for Borland C++

    if toolkit not supported then this is look like last option
    else go for dev c++(you already said
    "switching to something else is not an option"
    )
    as you said
    "My requirements are basic GUI -...
  13. Replies
    10
    Views
    4,755

    Re: Toolkit for Borland C++

    "toolkits (Qt,wxWidgets, even freeGlut) don't support Borland"

    oh then create a new project(dll)
    download source code of freeglut

    and start compiling

    check for error if any occur
  14. Re: How to get eye (observer) position in space ?

    while thread is not created by me but i want to say thanks
  15. Re: How to get eye (observer) position in space ?

    hay dude

    i don't know how to make a look At
    but i think you had saw the function definition of the gluLookAt
    but the Q i think you know the definition

    while i think the position is given by...
  16. Replies
    10
    Views
    2,659

    Re: Hz and Resolution

    yes i read some artical that thus CRT don't have safe guard with them
    so they can't stop the some kind of supply
    so either they get burned or get damaged
    and article is X11 windows system's 6.9...
  17. Re: How to get eye (observer) position in space ?

    if i m not wrong
    if observer at
    10,10,10
    using gluLookAt to positioned at 10,10,10

    do you want to display that position

    then it will be use of fprintf (for console application) function...
  18. Replies
    6
    Views
    1,989

    Re: Error changing projection matrix?

    damn,
    i haven't notice
  19. Replies
    6
    Views
    1,989

    Re: Error changing projection matrix?

    can you use
    gluOrtho2D
    i m not sure but -50, 50);
    may cause some problem
    may be use gluOrtho2D
    and read gluOrtho2D spec
    read
    if u don't know gluOrtho2D.
  20. Replies
    4
    Views
    1,725

    Re: Question on VBO

    you may also know which function where fitted
    i hope you have seen songho and might as it at first place by google search

    www.songho.ca/opengl/gl_vbo.html

    but i hope you also go at...
  21. Replies
    7
    Views
    1,440

    Re: Is it C or C++ or what is this?

    and OpenGL is also available for many languages(ie c,c++,java,python).
    and
    if you don't know API
    API means Application programming interface
    OpenGL
    M3G (may be)
    Mascot Capsule (hi)...
  22. Re: vertex program light works but i can't understand

    At last I found that
    the c code goes in General fashion
    eg

    if I am wrong please reply to this

    glMaterialfv(GL_FRONT,GL_AMBIENT,amb);
    it will interfered by state.material.ambient??
    as i had...
  23. Re: vertex program light works but i can't understand

    hey at-least some one please help me
    i had tried to compile cg's simple.cg code and it give error
    regarding Lit
    and also

    when i read extensions of OpenGL registry
    then there is line which i...
  24. Re: vertex program light works but i can't understand

    Hint:- please use the assembly code in the simple program with teapot rendering with a setting which just need a pass of Enable(DEPTH_TEST) to apply depth buffer as mentioned in Question

    ok...
  25. Re: vertex program light works but i can't understand

    i think instead of hoping answer you need to work hard on the codes of the programs
    work HARD HARD HARD and HARD.
Results 1 to 25 of 171
Page 1 of 7 1 2 3 4