# Search:

Type: Posts; User: vivek vyas

Page 1 of 7 1

1. ## Thread: how can i get the vertex after rotation?

by vivek vyas
Replies
3
Views
1,667

### 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 (&amp;Res)[4],int c)
{
assert(c<=4);
for(int r=0;r<4;r++)
{
2. ## Thread: how can i get the vertex after rotation?

by vivek vyas
Replies
3
Views
1,667

### 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. ## Thread: colors acting weird

by vivek vyas
Replies
3
Views
1,197

### Re: colors acting weird

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

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

by vivek vyas
Replies
3
Views
1,376

### 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. ## Thread: Help Basic 2D Grid

by vivek vyas
Replies
3
Views
2,661

### 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

by vivek vyas
Replies
8
Views
4,154

### 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...

by vivek vyas
Replies
8
Views
4,154

### 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. ## Thread: GL file is not being found? Unresolved External Sy

by vivek vyas
Replies
5
Views
2,205

### Re: GL file is not being found? Unresolved External Sy

it worked with "console" new empty project
atleast in my system ;)
9. ## Thread: 3DS Model & normals

by vivek vyas
Replies
4
Views
1,102

### Re: 3DS Model & normals

do you use lib3ds
if yes then i have solution for calculating normal as it have function for it

by vivek vyas
Replies
0
Views
623

### 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. ## Thread: Toolkit for Borland C++

by vivek vyas
Replies
10
Views
4,822

### 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. ## Thread: Toolkit for Borland C++

by vivek vyas
Replies
10
Views
4,822

### 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. ## Thread: Toolkit for Borland C++

by vivek vyas
Replies
10
Views
4,822

### Re: Toolkit for Borland C++

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

oh then create a new project(dll)

and start compiling

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

by vivek vyas
Replies
8
Views
5,096

### Re: How to get eye (observer) position in space ?

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

by vivek vyas
Replies
8
Views
5,096

### 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. ## Thread: Hz and Resolution

by vivek vyas
Replies
10
Views
2,669

### 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. ## Thread: How to get eye (observer) position in space ?

by vivek vyas
Replies
8
Views
5,096

### 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. ## Thread: Error changing projection matrix?

by vivek vyas
Replies
6
Views
1,991

### Re: Error changing projection matrix?

damn,
i haven't notice
19. ## Thread: Error changing projection matrix?

by vivek vyas
Replies
6
Views
1,991

### Re: Error changing projection matrix?

can you use
gluOrtho2D
i m not sure but -50, 50);
may cause some problem
may be use gluOrtho2D
if u don't know gluOrtho2D.
20. ## Thread: Question on VBO

by vivek vyas
Replies
4
Views
1,729

### 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. ## Thread: Is it C or C++ or what is this?

by vivek vyas
Replies
7
Views
1,450

### 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. ## Thread: vertex program light works but i can't understand

by vivek vyas
Replies
7
Views
2,089

### Re: vertex program light works but i can't understand

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

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

by vivek vyas
Replies
7
Views
2,089

### Re: vertex program light works but i can't understand

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. ## Thread: vertex program light works but i can't understand

by vivek vyas
Replies
7
Views
2,089

### 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. ## Thread: vertex program light works but i can't understand

by vivek vyas
Replies
7
Views
2,089

### 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