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...
Type: Posts; User: JackR
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...
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...
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...
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
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...
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...
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...
Thank you for the advice. Shell script it is.
JackR
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...
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...
Replacechild is defined as
virtual bool replaceChild (Node *origChild, Node *newChild)
in the class osg::Group.
The line
ToolReplaceNode():FileSelTool("replacenode") {} just means that...
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...
Ah. I see now.
I will work on fixing my linking errors, then.
Thanks for the help!
JackR
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...
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...
Oh. Thanks for the catch. That fixed everything.
JackR
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
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:
...
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...
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...
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...
Richie T,
I have followed your suggestion, but am still getting the same error messages.
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...
Thank you. That fixed the problem.
J
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:
#...