Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

134 Neutral

About miodragsm

  • Rank
  1. miodragsm

    PhysX lesson 101 problem

    Either glut.h or some other header includes windef.h before you defined NOMINMAX, but since you fixed that with placing glut at the bottom, than you don't have to worry about it any more :).I had same problem with Irrlicht when I started playing with PhysX a few days ago (creating actor classes to use it with Irrlicht engine). I'll try to make FPS entry for the IV elements contests. Tutorials are really good so far (not finished with rigid bodies yet, and there are a lot more things to learn about PhysX...)
  2. miodragsm

    PhysX lesson 101 problem

    min max macros are already defined in <windows.h> (just as error message says) //from windef.h #ifndef min #define min(a,b) (((a) < (b)) ? (a) : (b)) #endif when you change from #include <windows.h> ... #include <physx-what-ever.h> to #include <physx-what-ever.h> ... #include <windows.h> #indef check prevents redefinition put #define NOMINMAX in front of #include <windows.h> (again, just like error message says...) to prevent error <GL/glut.h> probably includes <windows.h>
  3. miodragsm

    What does -1.#IND mean?

    It's 0.0f/0.0f result. Try this : float a=0,b=0; float c=a/b; I tried this in VC8 and got -1.#IND000.
  4. miodragsm

    Serial Port

    zaydenam, are you traying to interface some mcu based device with rs232? If the device generates TX signals for serial comm, you can use MAX232 (to adjust voltage levels). If you have only parallel bus from device, use CDP6402 or another mcu and MAX232.
  5. miodragsm

    Serial Port

    You can read bytes on serial (7 or 8 bits per byte). As Sneftel wrote it has nothing to do with serial port if device transmits data in ascii format , or any other... you can read only bytes on serial port, and they are 0-ff HEX (0-255 DEC) for 8bit bytes.
  6. miodragsm

    Rotations around non-origin axis

    1 ) load indentity matrix 2 ) apply rotation matrix to rotate around obj. center 3 ) apply translation 4 ) apply rotation matrix to rotate around world center or 4 ) apply matrix from parent object to transform relatively to parent
  7. miodragsm

    losing debug info

    Thanks ApochPiQ, you were right, I solved problem. Thanks again.
  8. i'm having trouble with debugging my code ( vc7.1 ) , i'm going trough code and when debugger enters code for some class it displays class declaration ( like 'CA a' ) and not value for class member. after i try to assign value to that class member i get 0x00000005 exception ( quick debug for 'this' says 0x00000000 ??? ) int CSurface::RedrawGFX(CGFX* pGFX) { if (pGFX == NULL) return ERR_SURFACEREDRAWGFX; if (image != NULL) //<------------------this is the line where code breaks { SDL_FreeSurface(image); image = NULL; } ... } when i move mouse over code for pGFX i get correct address and values for image i get "SDL_Surface* CSurface::image" ???
  9. miodragsm

    Creating a window inside a dll

    Quote:Original post by Red_falcon My engine is in a dll and window creation is within too What about message loop function?
  10. miodragsm

    Creating a window inside a dll

    Had same problem, it is not a direct3d issue. Create App class outside of render dll and place window creation and message loop in it ( this is the way most render engines are written - as far as i know ). Inside App class you should call render functions exposed by dll. Hope this helps. As for the reason why it doesn't work from dll, i am not shure ( i guess it has something to do with the way dll works. )
  11. miodragsm

    serial port programming

    Solved everything, thanks. [Edited by - miodragsm on September 30, 2005 1:47:50 PM]
  12. miodragsm

    serial port programming

    Quote:Original post by Winograd 3ms is quite heavy requirement in pre-emptive os. Deviations from that could be as high as 30ms under heavy load. I guess you have to use RTAI or something similar in order to get lower jitter. RTAI basicly gives your program kernel priviledges and hard realtime scheduling. Here's a simple RTAI program and here is a stroboscope implementation with RTAI. I'll give it a try, but if it's done in WinXP with only Win32 API i guess it should be possible with standard Linux libs Quote:Original post by BBB I don't know a sh*t about serial programming, but I can give you some links: http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/ http://www.tldp.org/HOWTO/Serial-HOWTO.html http://www.easysw.com/~mike/serial/serial.html Hope it was atleast somewhat helpfull :] . Already tried that. Thanks.
  13. miodragsm

    serial port programming

    Hi, I am porting application from WinXp to Linux. It communicates with external device ( electrical power analyzer ) via serial port. Is there a way to set serial port that it sets RTS line to high when I am writing data to port and set it to low after writing is done? I can do it manually, but interval between write-end and RTS-to-low has to be fewer than 3ms. How to resolve this? (Using Linux, g++). Port settings are B9600, 8N1.
  14. miodragsm

    borland c++ builder 6 float error

    I was wrong about MSVC :( , it displays exactly like Borland debugger. I've checked Delphi and it displays 0.7 for doubles ( not for reals ) Anyway, thanks everybody.
  15. miodragsm

    borland c++ builder 6 float error

    OK, More concise answer from the C++ FAQ Lite says "On one C++ implementation, this prints 0.429993". I really dont care how compuer stores and represents number ( i knew this, exam ) and it's not the question. I want to know why Borland doesn't take care of this like MSVC does and if it can be tweaked in compiler setup...
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!