CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    3

    Cimg 3d landscape

    Hey guys, I have a question about cimg. I am trying to use a set of coordinates in an ascii file to draw a 3d landscape and I can't figure out how to use the file. The problem is it isn't an image file, just coordinates, so I think I need to use the fstream to store those coordinates in a 2d array but then I have no idea how to impliment that 2d array to generate the 3d landscape. Any suggestions?

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Cimg 3d landscape

    Google says that Cimg is an image-processing toolkit. Is this what you are planning to use to create the 3D landscape? You need to be clearer about what functions you are trying to use and what parameters they take vs what you have to work with.

  3. #3
    Join Date
    Sep 2011
    Posts
    3

    Re: Cimg 3d landscape

    Yes I am using cimg. The problem I am having is that I have no idea what functions to use or where to start with my 2d array of coordinates. I'm pretty much as lost as lost gets.

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Cimg 3d landscape

    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured