Jump to content
  • Advertisement

fnm

Member
  • Content Count

    532
  • Joined

  • Last visited

Everything posted by fnm

  1. As the title says; any hint on how to do it? I need to get somehow the debug messages sent by a tool to the debug window and filter them.  Thanks for any help.
  2. Yes, it is the output pane. I'm using VS to build a CodeGear project and I'd like to intercept the debug messages and translate them in VS format. From my research so far it seems that Windbg is the way to go. Thanks for your answer.
  3. fnm

    Flash GUI in Direct3D

    Check out flash-to-directx
  4. fnm

    How do Japanese program?

    This reminds me the time when I've read Andrei Alexandrescu's "Modern c++ design" in romanian. I had to translate all the terms in english to actually understand something of that book.
  5. fnm

    How do Japanese program?

    What's a "lebegőpontos"? A dangling pointer, maybe?
  6. In one of my project I need to handle a 3d array of 3d points and I'm using boost multi array to store it. The problem is that when I allocate a large array, say 1000x500x500 a bad_alloc exception is thrown. With smaller array all goes ok. Here's the declaration: boost::multi_array<Point3d, 3> m_array3d; m_array3d(boost::extents[1000][500][500]), Am I hitting some maximum allocation limit of multi_array? Or am I using it wrong? Any suggestions?
  7. fnm

    Beer

    Best beer I ever had was a czech black pilsner: very bitter, very cold and me very thirsty. German beer is good, I once managed to drink six 1 liter glasses of Konig Ludwig in half a day. British beers tastes and smells funny. The first time I opened a London Pride I thought that some of my food went bad. Guinness is good, though.
  8. I'm trying to optimize my raytracer, so I started to measure the execution time of my methods. I've noticed that there's a big difference in execution time depending on where do I declare the variables. Take a look: Vector v(1, 1, 1); for(unsigned int i=0;i<100000000;i++){ v.normalize(); } This took 3.3426 sec to execute. for(unsigned int i=0;i<100000000;i++){ Vector v(1, 1, 1); v.normalize(); } This took 0.0000014 sec to execute. Where this difference come from?
  9. Yes, release mode, using visual c++ 2008. The normalize function gets called, if I put there some debug message I see it printed.
  10. pov-ray? Why dont you start with something simpler, like this?
  11. I'm trying to implement deformations in my sphere tracer. For some reason they dont work very well for me, so I looked for some code that implement them and I found this haskell program, which I intend to experiment with. Trying to compile it gives the following error: rt.hs:18:24: Couldn't match expected type `Eval b' against inferred type `()' In the first argument of `parMap', namely `rnf' In the expression: parMap rnf (map (maybe (0, 0, 0) toRGB24 . rayTrace scene 100)) rays In the definition of `colors': colors = parMap rnf (map (maybe (0, 0, 0) toRGB24 . rayTrace scene 100)) rays The problem is I dont know nothing about haskell (nothing about functional programming), so can anybody help me make this program compile?
  12. I happen to be in London for some time and the easter holiday is a good opportunity to start exploring around. What would you recommend? Which places I shouldn't miss?
  13. I'm trying to do something like a curved wall, made off of bricks (some OBBB's). I managed to put them in an arc of a circle path, but I fail to determine the angle by which I should rotate them to make them look at the center of the circle. I'd appreciate any help.
  14. obb->rotate(atan2f(obb->position().x, obb->position().z)*180.f/M_PI, Vector(0, 1)); Now it works. Thanks a lot.
  15. I might be tired or just plain dumb, but it doesnt work. Here's my code: for(int i = 0;i < 90;i += 10){ float d = i * M_PI/180.f; OBB *obb = new OBB(); obb->set(Vector(cos(d) * 30, 0, -sin(d) * 30), Vector(2, 2, .1f));//sets the OBB's position and size obb->rotate(atan2f(obb->position().y, obb->position().x)*180.f/M_PI, Vector(0, 1));//rotates the OBB using angle and axis obbs.push_back(obb); } } What am I missing?
  16. fnm

    what to visit in London?

    I'm interested in historical places, castles, strongholds, monuments, anything medieval related.
  17. Just found out that c++ would let me do something like class C{}; bool b = new C(); I would expect that the compiler would give me a warning. I cant think of a case when I would want to use a statement like this, can you?
  18. Quote:Original post by Atrix256 I'm hitting another problem though, would you happen to know if a bitmapasset is incapable of getting a click event callback attached to it? Have you tried setting its butonMode property to true?
  19. Listen for the Event.ADDED_TO_STAGE event in the Earth constructor, and modify the sprite position in the event listener, then. While the sprite is not on the stage, his stage property is null.
  20. var e:Earth = new Earth(); addChild(e); e.x = stage.width / [2] - e.width / [2]; e.y = stage.height - e.height / [2]; Something like this should work.
  21. I've put the code you posted in the main class and it works. I dont know how's your main class, anyway the stage is null when the displayobject isnt on the stage yet.
  22. fnm

    Mass-Spring systems

    Quote:Original post by kelmer The problem is that the vertices are scattered on the obj file with no particular order and there is no way to "know" which ones are neighbors. No information about the faces, you mean?
  • 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!