CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: macklin01

Search: Search took 0.53 seconds.

  1. Replies
    3
    Views
    1,297

    Re: Bitmap using C

    If C++ is alright for you (instead of C), you might also consider using my open source EasyBMP C++ bitmap library. Reading, modifying, and writing pixels is very easy with it, at 1, 4, 8, 16, 24, or...
  2. Replies
    6
    Views
    1,729

    Re: how to control opengl buffer content

    Hmm, that's a toughy. I suppose in part that after the buffers have been swapped, the display routine uses whatever polygons, etc., exist in the scene to draw the next frame. i.e., I think this is...
  3. Replies
    6
    Views
    1,729

    Re: how to control opengl buffer content

    I have done some work in creating interfaces between my EasyBMP BMP library and OpenGL. The write-up on this page is a bit outdated, so instead, please see the sample application that's included with...
  4. Replies
    11
    Views
    8,359

    Re: PDF manipulation C/C++ API needed

    Have you considered digging through the source of any application that supports saving to PDF?

    Also, I did a quick search on sourceforge and found libharu free PDF library. The examples look...
  5. Replies
    29
    Views
    3,212

    Re: getting a new compiler....

    Sorry!

    Their site is definitely a little confusing. Here's the scoop:

    1) A complete MinGW (not runtime) package:

    http://prdownloads.sf.net/mingw/MinGW-5.0.2.exe?download

    I've been using...
  6. Replies
    29
    Views
    3,212

    Re: getting a new compiler....

    I've always been quite happy with MinGW (a windows native port of g++). It seems to be quite standards-compliant.

    I develop code in MinGW in Windows, and generally have zero problems recompiling...
  7. Thread: BMP file

    by macklin01
    Replies
    4
    Views
    1,458

    Re: BMP file

    Is it graphical data? If so, how is it stored? 8 bits red, 8 bits green, 8 bits blue ... ?

    Since it's unformatted, it's necessary to know the format in some other way before converting it...
  8. Replies
    7
    Views
    1,473

    Re: Simple Collision Detection

    In my opinion, collision detection has nothing to do with OpenGL.

    You don't need all this fancy stuff to test for collision. Collision is a property of the locations of the objects, not the view,...
  9. Replies
    7
    Views
    1,473

    Re: Simple Collision Detection

    I think I understand what you're saying ...

    If two objects intersect, then their projections also intersect. So, project in two directions and do a simpler 1D intersection test.
    ...
  10. Replies
    6
    Views
    1,988

    Re: solid 3d cube (problem, haha)

    Hey, not a problem.

    I can't guarantee that it's 100% correct, but hopefully it'll point you in the right direction. ;) OpenGL is a lot of fun, and I hope you keep working with it. (I'm actually...
  11. Thread: BMP file

    by macklin01
    Replies
    4
    Views
    1,458

    Re: BMP file

    What type of binary file? Do you mean a different image format? (different from the BMP bitmap format) I may not be able to help you, but if you better describe the nature of your problem, you'll...
  12. Replies
    6
    Views
    1,988

    Re: solid 3d cube (problem, haha)

    You need to define normal vectors for each vertex; that's probably the cause of the strange rendering. Another thing that may be contributing is whether or not each face is being traced out in a...
  13. Re: To draw THICK lines using Bresenham's Algorithm

    Hmm, I was thinking about it more.

    It would probably be best to only use Bresenham for the four lines that form the boundary of the "thick" line. The interior should be filled with a fast fill...
  14. Re: A problem about the 256 colour image to gray

    Only one quibble about that method: it's basically normalizing the color (r,g,b) with an l2 norm. (i.e., a standard Euclidean norm.) It turns out that human vision is most sensitive to green light,...
  15. Replies
    7
    Views
    1,473

    Re: Simple Collision Detection

    The first thing to do is probably to put each object in a bounding circle, centered at the "center of mass". It's far easier to do collision testing between circles, and it scales better than doing...
  16. Re: To draw THICK lines using Bresenham's Algorithm

    One thing you might consider doing, assuming the endpoints are (x1,y1) and (x2,y2), and thickness 2*r:

    1) Use the line direction to get the perpendicular direction. Call it Vperp = (vx,vy). Assume...
  17. Thread: Text to AVI

    by macklin01
    Replies
    9
    Views
    1,241

    Re: Text to AVI

    Good luck in your studies! It's a long road to the Ph.D., but well worthwhile. :) Thanks for the Spanish translation, btw. I don't see phrases quite like those on Univsion y Telemunde here in...
  18. Thread: Text to AVI

    by macklin01
    Replies
    9
    Views
    1,241

    Re: Text to AVI

    Hmmm, that's strange. You don't have anything unusual going on, like extra-large frames or anything like that, do you?

    I actually don't ever compress on my own (aside through using VirtualDub), so...
  19. Thread: Text to AVI

    by macklin01
    Replies
    9
    Views
    1,241

    Re: Text to AVI

    Ah, thanks for the follow-up! :)

    I always appreciate seeing code to learn from, since I tend not to program in win32. (More of a cross-platform guy myself.) Thanks :) -- Paul
  20. Replies
    9
    Views
    1,580

    Re: Use Bitmap as map in console ?

    @anantwakode:
    I can certainly see the appeal of drawing a level in mspaint, as opposed to manually hacking one out in a text editor. (But it's a good point.)

    @TomWidmer:
    The win32 ideas are very...
  21. Thread: Text to AVI

    by macklin01
    Replies
    9
    Views
    1,241

    Re: Text to AVI

    This won't be C++-based, but I'd just use VirtualDub. (http://www.virtualdub.org.) It's an open-source program for editing AVI files, and in particular, you can add a watermark or logo (such as some...
  22. Replies
    9
    Views
    1,580

    Re: Use Bitmap as map in console ?

    Hi, I'm Paul Macklin, and I'm the developer for EasyBMP. I thought I might drop in and see if I can help.

    I like your idea. At the moment, EasyBMP up-converts all images to 32-bits internally, so...
Results 1 to 22 of 22





Click Here to Expand Forum to Full Width

Featured