- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 16
- Posts with Upvotes
- 15
- Upvoting Members
- 14
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
78 Posted Topics
Re: Hi there! I'm interested in the constents of `core.badTiles`. How is it populated? Have you checked that there are more than just one rectangle? Could you post the code where the list is built? Also, one thought that also came into my mind is the last else if statement (`else … | |
Re: Hi there! I would suggest you use the programming language that you feel the most comfortable with. I would use C# since you get a lot of tools for building UI around your map editor. In terrain generation, there are a number of approaches depending on how you want to … | |
Re: Hi there! I've tested your code and come up with the following: 1. You might want to check your random values. According to Oracles documentation, Math.random() does the following: ***Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.*** Less than 1.0 … | |
Re: Try to first search your items for the required text to find out its index, then select that index from the box | |
Re: Okay, so it is powered. Can you see anything on the screen? It may be the graphics card that doesn't respond. Try removing it (if possible), drying and cleaning it an re-insert. If that doesn't work, try booting with another graphics card (again if possible) | |
Re: I suggest you solve this by creating a list of all the parameters that are included on a specific flight. Then you compare this list to the users list, and each match adds to the rating points. | |
Re: You can create a procedure for that. Example: Sub Update() MessageBox.Show("A button was clicked.") End Sub Sub FirstButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) MessageBox.Show("FirstButton was clicked.") Update() End Sub Sub SecondButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) MessageBox.Show("SecondButton was clicked.") Update() End Sub Regards, Emil Olofsson | |
Re: Hmm it looks to me like you forget to reset `count` after every `posinteger` check. If one particular integer has too few divisors, I assume you want to start counting divisors from zero on the next integer. I hope this helps! Regards, Emil Olofsson | |
Re: Hi. I suggest you start going through the program, one bubble at a time. For example, concentrate on the first bubble. It says "Reading [data.txt]". Ask yourself these questions: **What does that mean?** It means that the program should read the contents of data.txt. **What is the goal of this … | |
Re: Hello! Here is an example of how you could implement a timer that will generate events every interval of `delay` millisecs. If you wand an event generated after 3.124 minutes, you could either initialize your timer with delay `delay = 187440` (and then use `t.stop();` when you received your event. … | |
Re: Hi there! I need to see more code than this to be able to help you. To solve this problem I would use an array of coordinates like this: `[ (5, 5) (4, 5) (3, 5) (3, 6) ]` for example. Then, when I move up for example, I take … | |
Re: What is the output of the following: <% response.write "Credit Total: " & varCreditTotal %> And this: <% response.write "Credit Total: " & varCreditTotal*-1 %> Since I don't think there's something wrong with the FormatCurrency function, maybe varCreditTotal is not declared properly? | |
Re: Hello! I don't really understand your question. Do you want to programatically get the name of the pointer that points to a certain queue object? I think that could be rather tricky. What are you gonna use this for? I'm sure there's another way to solve your problem. Regards, Emil … | |
Re: Whats "*Whaf Trace*"? :P Regards, Emil Olofsson | |
Re: You could convert the number into a string, then creating substrings of every two characters, and then parse them back to int and add them together? Another approach would be using modulus, adding the rests of your value **x** mod 100, 10000 (then split by 100) and so on. Good … | |
Re: Use `System.out.println(integersCount[i]);` Regards, Emil Olofsson | |
Re: Hello! I need more code in order to understand what has gone wrong. From what I understand it's the line `this.Close();` That generates the error message? Where is this line located? Is it somewhere in the code section of the Form1 class, or are you calling it in the same … | |
Re: Please show us your code so far and specify what your problem is. Then maybe I can help you. Regards, Emil Olofsson | |
Re: Hello! I think every programmer should have a good understanding of C/C++ (to fully understand the concept of pointers and freeing memory and stuff). This makes it easier to understand the relationship between object references and object clones and how to efficiently control your garbage collector in higher level languages … | |
Re: Just looking at your code makes me wonder if your scene is animated correctly. I found this after a little Googling: http://www.opengl.org/resources/libraries/glut/spec3/node46.html. Thats a pretty interesting example of an alternate way of animating your glut scene. I suspect that your problem lies with your use of `glutSwapBuffers();`. You could try … | |
Re: Hey take a look at http://nehe.gamedev.net/tutorial/texture_mapping/12038/. NeHe got some really nice OpenGl tutorials, and this lesson should cover pretty much of what you seem to need fo this exercise. Regards, Emil Olofsson | |
Re: x1 = startx y1 = starty x2 = x1 + cos(angle) * length y2 = y1 + sin(angle) * length Regards, Emil Olofsson | |
Re: Well, this really sounds like a typical homework assignment to me, so I'm not going to provide the full solution to you -just in case.. This is some pretty fundamental java you are asking about, and if you want to start programming, this is something you must learn to figure … | |
Hi there! I'm currently working on a school project using a Kinect device. Me and my friend decided that we wanted to create the same 3D effect as [url=http://www.youtube.com/watch?v=Jd3-eiid-Uw]this[/url] guy (Using our Kinect instead of using a Wii). We've made everything work perfectly, and we actually get a really cool … | |
Hi all! I'm playing around a bit with my old Visual Basic 6.0. I'm working with images, and this rather strange error came up: First I isolate a small piece of a larger picture to a smaller picturebox using PaintPicture: [ICODE]picBoxSprite.PaintPicture picBoxResource.Picture, 0, 0, 64, 64, (X * 64), (Y … | |
Re: I feel it is a good way to repeat techniques that I learned in the past, so they will root even better deep down somewhere in my brain :D | |
Re: What came to my mind was that you can try interpolating a couple of points along the radians-axis like [ICODE]x = {(-3*pi), (-2*pi), -pi, 0, pi, (2*pi), (3*pi)}[/ICODE] and the known cosine values; [ICODE]y = { 0, -1, 0, 1, 0, -1, 0 }[/ICODE]. Now I'm using 7 points, but … | |
Re: Hi there. I'm sorry to say that I'm not going to set up the jogl environment for the sole purpose of debugging/finding a solution for you here. However, looking through the code (not analyzing your algorithms too closely) I thought I still might be able to push you in the … | |
Re: May I guess that it is drawing exactly 12 satellites? Is it [ICODE]drawSeat(pObj);[/ICODE] that draws your satellite? If that is the case, you may want to try something like: [CODE=C++] // First declare i as global so its value can be used // over several iterations: float i = 0.0f; … | |
Re: Change your definition of fun to [ICODE]int fun(int,int,int,int,int,float*,float*);[/ICODE] Remember you are dealing with pointers | |
Re: When you are drawing a square you can add a texture to it like this: [CODE] glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, myTexure->textureID); glBegin(GL_QUADS); glNormal3f( 0.0f, 0.0f, 0.0f); //Normals are needed for things like light reflection glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.0f, -1.0f, 0.0f); glTexCoord2f(1.0f, 0.0f); glVertex3f( 1.0f, -1.0f, 0.0f); glTexCoord2f(1.0f, 1.0f); glVertex3f( 1.0f, 1.0f, 0.0f); glTexCoord2f(0.0f, … | |
Re: At first I was going to ask you if you have any berserking pointers or char* strings without end character, but it struck me that your ram and secondary storage are separated ;P However, if you are doing some intense file manipulating (on an OS that doesn't intervene when trying … | |
Re: You are correct. I usually sleep for about 10 ms, that should be enough. I have been thinking about another way too, if your game relies heavily on graphics (your scene takes long to draw), then maybe it's a good thing to try calculate movements etc based on how long … | |
Re: Or you could take a look over at [URL="http://nehe.gamedev.net/"]NeHe[/URL], there you can find tutorials on a lot of handy OpenGL things. Over at their "New tutorials" session, you can also find how to set up OpenGL in [URL="http://www.codeblocks.org/"]Code::Blocks[/URL], which is a pretty handy free C++ IDE Good Luck! Emil Olofsson | |
![]() | Re: If you don't have any formulas to start with, I suggest you start off by looking up some things: - At which latitude is the north/south polar circle (beyond this one there's midnight sun 24 hours a day during a period in summer and dark 24 hours a day during … |
Re: Well, Mr Einstein says the answer is 90e9 kJ (E=mc^2), and matter doesn't matter ;) | |
Re: If i'm not mistaken, (B * C(not) * D) + (B(not) * C * D) can be rewritten as (B XOR C) * D I'm not sure if this is what you're after. But if I were to construct a triple gate XOR, I think it would look like this: … | |
Re: Hi, please show us what you have done so far, and please specify what it is that you can't get to work | |
Re: Yeah I feel the same. What is the return value of array.NumberOfIntervals(), and what has it to do with your actual arrays instantAct and mS? And what is xAg? | |
Re: Hi there. I'm into pretty much the same thing as you, and I have been thinking alot about loading and moving a 3D character around. In my opinion, the simplest way to do this is to draw all body parts separately. When loading them in OpenGL, you should check out … | |
Re: Well, if I'm not mistaken, it looks like you define i.e your constructor as [ICODE] TileClass::TileClass() [/ICODE] in your .h file, but in your .cpp file it looks like you're trying to implements [ICODE] Main::TileClass::TileClass() [/ICODE] Which you haven't defined anywhere. Take a look at your main() function and its … | |
Re: Well, I really see no point in why you need the option to quit using 'q' in this case. Just let the user enter the number 2 or whatever. I ran some tests with your code, and if you enter a char from within the for-loop you enter an infinite … | |
Re: Your flowchart looks fine. And from the looks of it, your pseudocoding as almost complete aswell. Start by giving the value 'y' to flipAgain. Then you will need a loop of some sort. I suggest a while-loop. And where diamond squares are, use If. [ICODE] Initialize flipAgain to 'y' WHILE … | |
Re: I don't think that creating a new process for every player is the right approach in your case. In order to manage your threads correctly you have to do a bunch of shared data checking (google locks, semaphores, atomic operations). This will take some of the processors time every time … | |
Re: Ah it's a quite interesting little function you have there. Unfortunately, I can't come up with any significant strategy changes to improve your conversion; I would probably have solved this problem in a similar fashion myself. However, If you really want to keep your code on edge, there are always … | |
Re: First of all, I'm not familiar to that particular book you mention, so I don't really know what you mean by T0 and T1. I can tell you however thet the code you wrote down indeed is a fetch cycle. Your program counter tells you on which line in your … | |
Re: Hello there! May I ask what the meaning of these lines is? [CODE] if (userNumber < smallNumber){ smallNumber = userNumber; if (userNumber > largeNumber) largeNumber = userNumber; } [/CODE] It seems you are only looking for a larger number if the user number is the smallest number? I would like … | |
Re: Direct3D is a part of Microsoft DirectX series. You should check out the game's requirements on which DirectX version is required. Then use google to find an appropriate download. It should be available to download for free (And distributed along side almost every game that requires it. Have you checked … | |
Re: [QUOTE=etisermars;1216599]You are funny Buffalo101, but the problem is much more complex than i presented here! how can u handle if you have hundred variables which depend on "a" in different ways? you write (call) again all that functiuns (to calculate all "b"-s )?[/QUOTE] Well, yes. You need to create a … | |
Re: Hi there! The answer is simple; Don't initiate uniqueID several times! Try moving [icode]unsigned int uniqueID = 0;[/icode] to outside of your loop, or pass it as an argument if you are using recursion! Good luck! Emil Olofsson |
The End.