rcag

Members
  • Content count

    28
  • Joined

  • Last visited

Community Reputation

122 Neutral

About rcag

  • Rank
    Member
  1. Cool. Thanks for the tip. I will look into how to calculate color from barycentric coordinates :D
  2. I'm implementing a color picker user interface and i'm having some issues. The way i doing it is creating a projected color cube (hexagon) on which the user can navigate with a crosshair and then click to pick the color. My problem is to determine as fast as possible the color given the position of the cross-hair (i don´t want to use readPixel() type functions ). I thought of determining on which of the four triangles of the hexagon i was in and then do an interpolation, but i have no clue in how to do the interpolation part. So my question is: What is the best way to find out the color of a point inside a triangle? Thanks for all the help you can give :D
  3. Parabolic movement

    Thanks both of you for the help. But Alrecenk, there is one thing i disagree in your equation. Isn't the acceleration term negative? Because it is the gravity? I was using some parametric equations and i've reached for a final result of ||V0||=sqrt((Pt*||gravity||/sin(2*theta)) using the equations x=V0x*t y=V0y*sin(theta)*t-0.5*||gravity||*t^2 <=>with y=0 and x=Pt Pt=||V0||^2*sin(2*theta)/||gravity|| considering y as the heigth of the ball, x the horizontal distance from the origin, theta as the angle formed by the ball and the ground.
  4. Parabolic movement

    Hi, I'm currently creating AI for a table tennis game but i´m having some troubles with the definition of the force that the AI guy have to apply to the ball in order to describe a parabolic movement into the player zone. I'm a bit( a lot) rusted in classical mechanics but what i as doing was calculating a force to counter the ball's current speed: f =-ball mass * (current speed - previous speed)/ (current time - previous time) and after i needed to calculate the necessary force to make the ball travel to the opposite side and that's the part i don't remember how :S. Can anyone help ?
  5. Hi, I'm creating an application that makes use of a Polhemus Fastrak to receive a position and orientation. The tracker gives my orientation by the Euler angles Azimuth, Elevation and Roll. My question is, in which order do i have to apply the rotations to my object? I suppose that applying p.e. azimuth and then elevation is different of first applying elevation and then azimuth so i'm confused in how to apply the information given by the tracker. Thanks for the help you can give...
  6. hello again, i have already included the lib directory into Additional Library Directories field, placed the lib name into additional dependencies field and placed the DLL into the project's directory but the same error keeps showing...
  7. Hi, I have a vc++ solution that creates a DLL and i want to use this DLL on another solution that i'm creating... How can i do this? I've included the .h with the prototypes of the DLL on the 2nd project and have copied the DLL into the project's directory but it gives me the following error Glove error LNK2019: unresolved external symbol "public: int __thiscall MyManager::OpenConnection(void)" (?OpenConnection@MyManager@@QAEHXZ) referenced in function "int __cdecl InitInstance(class CKContext *)" (?InitInstance@@YAHPAVCKContext@@@Z) can you help me?
  8. Hi, Does anyone knows a free library in java to make statistical graphics (charts and stuff) ? i looked down at java2d and it is a very low level api :( thanks for all the help
  9. programming language for simple 2d game?

    hi, when i started game programming i used a language called DIV from DIV Games Studio(i think that was the name) ... it was based on pascal and very easy to learn. You could do a game with a few hours work. It's one more option for you :)
  10. strange error

    Finally i've found the error eheh after googling for a while i found that there is an incompatibility between glut.h and visual studio.NET and the solution passes by simply including stlib.h in the project. it is a bit contradictory (because now we are really redefining the exit function) but it works. i have seen another solution that was appending GLUT_BUILDING_LIB in the preprocesor definitions (Properties -> C/C++ -> Preprocessor -> Preprocessor definitions) but it didn´t worked for me.
  11. hi i'm having a really strange error in my source code. i have been making a game engine for some time and i have been programming it on diferent PC's ( at home and at college) but all of a sudden the following error started appearing only in the pc at college: c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(256) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\GL\glut.h(146) : see declaration of 'exit' The strange thing is that it works at home and more strangelly is that the code that i've added don't make use of both glut.h and stdlib.h. i've been debugging my old code (that also stopped working at college) and i never used glut.h and stdlib.h simultaneously so the error doesn´t make sense to me. I´m programming in Microsoft Visual C++ .NET...can it be some bad configuration that someone have made on the VC++ properties? thanks for the help you can give
  12. Another Problem With Textures

    ok let me see if i understood the question... you want to have a quad and want to apply a color to it or apply a textures(without being influenced by glColor).... all you must do is use glTexEnv with the GL_REPLACE parameter when defining the "properties" of your texture. See the other parameters of the glTexEnv (GL_MODULATE,...) to see what you really want to do. and if you want to commute between using the color you defined or the texture just enable or disable GL_TEXTURE_2D hope i could help you
  13. OpenGL char file name [solved]

    hi check the size(width and length) of the texture file...remember that its size must be a power of two (ex: w=32(->2^5), h=64(->2^6)). OpenGL 2.0 does not have this limitation but i´m assuming that you are using a previous version. another suggestion, check out auxDIBImageLoad(Filename) to see if you are really opening the texture file. hope that i could help you
  14. Ageia PhysX problem

    Hi i have already solved the problem myself eheh it turned out to be a simple thing. i forgot to copy the PhysXCore.dll into my project directory :P. when i did that it started working :P
  15. Ageia PhysX problem

    Hi i have already solved the problem myself eheh it turned out to be a simple thing. i forgot to copy the PhysXCore.dll into my project directory :P. when i did that i started working :P