Search:

Type: Posts; User: JackR

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,470

    iMalc, Thank you for your reply. Deformed...

    iMalc,

    Thank you for your reply.

    Deformed is a property of each pixel in the original image. I tried to show the section of the code where I thought the problem may have been, and I...
  2. Replies
    2
    Views
    1,470

    Priority queue not processed in expected order

    Hello,

    I am trying to implement a priority queue in an OpenGL program and am getting unexpected results.

    I have an original image. The user colors different parts of this image one of three...
  3. Replies
    1
    Views
    1,395

    Priority Queue with Classes

    Hi,

    I want to set up a priority queue for my class DeformationCandidate and sets the priority based on the value of the density variable. I am having a rough time determining the syntax for the...
  4. Replies
    17
    Views
    3,843

    Ah, good point mike_g. My plan now is to just...

    Ah, good point mike_g.

    My plan now is to just check grid square next to the lines. That will suit my purposes.

    Thanks for the help, all.

    Jack
  5. Replies
    17
    Views
    3,843

    mike_g, Your first suggestion would work...

    mike_g,

    Your first suggestion would work perfectly, but unfortunately I do need to find the entire perimeter so I can graphically show where the user can place the objects.

    I can break the area...
  6. Replies
    17
    Views
    3,843

    Thanks for the quick reply, BobMcGee123. I may...

    Thanks for the quick reply, BobMcGee123.

    I may be missing something, but how would you determine the position of those planes?

    It seems like what you suggest would work well for regular...
  7. Replies
    17
    Views
    3,843

    Finding the outside of arbitrary shape

    Hello all,

    I am working on a C++/OpenGL game where a user draws arbitrary, closed shapes using horizontal and vertical lines only. These closed shapes may be nested in each other, but do not...
  8. Replies
    4
    Views
    1,800

    Thank you for the advice. Shell script it is. ...

    Thank you for the advice. Shell script it is.

    JackR
  9. Replies
    4
    Views
    1,800

    Automatically Open Text File

    Hi,

    I am not sure where to ask this question, but here goes. I am working on a program that outputs to a text file. I can do this without any issues.

    My question is, how can I automatically...
  10. Replies
    2
    Views
    984

    Sharing variables and code architecture

    Hello all,

    I am trying to decide how to structure my code for a simple "ball and hole" game. In this game, there is a table with several holes in it. The object of the game is to tilt the table...
  11. Replies
    5
    Views
    3,983

    Replacechild is defined as virtual bool...

    Replacechild is defined as

    virtual bool replaceChild (Node *origChild, Node *newChild)
    in the class osg::Group.

    The line

    ToolReplaceNode():FileSelTool("replacenode") {} just means that...
  12. Replies
    5
    Views
    3,983

    illegal call of non-static member function

    Hello all,

    I realize that this has been addressed before, but I cannot figure out what to do in my situation.

    I am using an osg function to replace one node with another, but my problem is...
  13. Replies
    4
    Views
    1,349

    Ah. I see now. I will work on fixing my...

    Ah. I see now.

    I will work on fixing my linking errors, then.

    Thanks for the help!
    JackR
  14. Replies
    4
    Views
    1,349

    Thanks for the suggestion swoopy. I tried...

    Thanks for the suggestion swoopy.

    I tried adding the * and got over 3000 unresolved external errors. I am compiling using Microsoft Visual C++ .NET and added the path for the new osgDB library...
  15. Replies
    4
    Views
    1,349

    Get address of variable from pointer

    Hello all,

    I am working on some code that utilizes OpenSceneGraph functions and am having problems with pointers. The function I want to use is of the form

    writeNodeFile (const osg::Node...
  16. Oh. Thanks for the catch. That fixed...

    Oh. Thanks for the catch. That fixed everything.

    JackR
  17. I do not understand what you mean. The first...

    I do not understand what you mean.

    The first if statement is to find '/' the second if statement is to find '.'.

    Would you please clarify?

    Thanks again,
    JackR
  18. Using string operations to save part of a file path

    I need to get the filename out of a full path name and am getting unexpected output and a fault.

    I am compiling the code on Visual C++ .NET.

    The code for this function is as follows:

    ...
  19. Replies
    9
    Views
    1,303

    Moving the structure to before the function did...

    Moving the structure to before the function did make my original errors go away, but now I get error messages for my structure declaration which says that suitname and cardname are missing a type...
  20. Replies
    9
    Views
    1,303

    The structure is defined outside of the main...

    The structure is defined outside of the main function.

    I will examine the FAQ on multi-source projects. If I get the program set up so I have .cpp and .h files organized as you suggested, will...
  21. Replies
    9
    Views
    1,303

    Moving the definition of the structure to the...

    Moving the definition of the structure to the inside of my header does not change the error messages.

    Also, I do not want to do this because I will be using the structure in other functions once...
  22. Replies
    9
    Views
    1,303

    Richie T, I have followed your suggestion, but...

    Richie T,

    I have followed your suggestion, but am still getting the same error messages.
  23. Replies
    9
    Views
    1,303

    Passing a structure to a fxn questions

    I am trying to use a structure to store the card value, the card name, and the suit name for a deck of 52 cards in a blackjack program.

    The structure is globally defined:


    struct cards{
    int...
  24. Thank you. That fixed the problem. J

    Thank you. That fixed the problem.

    J
  25. Error messages C3861 and C2084 in user-defined headers

    Hi,

    I have looked over my code and the message boards and am having problems resolving error messages in my user-defined header files "randcard.h" and "dealer.h".


    Code for randcard.h:


    #...
Results 1 to 25 of 27
Page 1 of 2 1 2