I tried putting those in her TGA loader but the white pixels are still there.
Type: Posts; User: KgNe
I tried putting those in her TGA loader but the white pixels are still there.
Offset my vertices? Meaning instead of glVertex3f(1000,1000,1000); I put glVertex3f(999.5,999.5,999.5); for every glVertex3f that I have?
Also any good websites to recommend? I really suck at...
My teacher gave me her TGA loader which I think might be the problem, however I can't do anything because I don't know anything about a loader and everytime I ask her question she gives me crap...
OK first I have to say that I am very very bad at OpenGL, to the point that when I search for solutions to my problems in OpenGL and find people talking about buffers and whatnot, I get really...
Yep, my teacher showed us this video where this supercomputer beat this professional at chess.
Yep, had to do it in one of my practicals, though still quite unclear about the effects of...
O0O
But you see actually the reason I'm trying to learn so much is because theres a small group(really small group) of people in my class who know ALOT more than what we are currently learning and...
matsp you NEVER fail me! Thank you! That was really helpful!
How much does that book cover actually? and are there some good websites with at least a good list that tells me what I should learn in order? xD
Takes time to change and I'm trying to. xD
Ok thanks for the info on isupper() and islower() it is REALLY very helpful.
By the way, though a little off-topic, I must ask how should I continue...
I guess the code was pretty messy huh. This is the reworked code and it works fine.
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void main (void)
Well umm...I'm trying to learn to use vectors so I have to use a vector xD and how do I change the individual characters in a string? Maybe you could somehow add to my code here.
#include...
What if I want the user to input data in like a character array, where the user can just type in a string of characters immediately and it goes into the character array? I could use a string vector...
Suppose I want the user himself to enter the data into a vector. How should I go about doing it? cin wouldn't work, neither does cin.get.
Example:
#include <iostream>
#include <vector>
...
Ahh OK I can roughly get it. Read up on the whole Cprogramming.com tutorial before continuing would be a good idea?
Lemme see if I got the code correctly.
The class baseobject is like a class for all the types of items that the player can carry in his/her inventory. virtual void Describe would have the...
Ok this project is to make a simple text-based game, of course we have experienced people who are going crazy with the project, people doing way over their limits, people doing what they can, etc...
Hmm apparently it's just using classes in my program to handle functions. How should I go about doing that? Why is there a need to use classes to handle my functions?
Like I have to use it to make my code for this project look neater or something
Ok I fixed it. It occured to me that since I'm using a character array, it would error if the user didn't cin a character, which apparently was what a certain something in the buffer or something...
I'm using cin.get to get a string aren't I? So why does it still error?
But I used cin.get(person1.name,50,'\n') so why won't it work? If cin.get is significantly different from getline could you tell me how I could use getline to replace cin.get in the code i posted...
No even in a simple code without any loops, this error will also happen.
See Cprogramming.com : FAQ > How do I...(Level 2) > Why does my program enter an infinite loop if the user inputs invalid...
That endless loop is something like THE endless loop that happens when say you cin a char into an int variable. But if you need to see the code,
Here it is!
struct personProfile
{
char...
Ok suprisingly I solved the cin buffer thing. I added a cin.ignore(50,'\n') for it to work. Somehow, cin.ignore() and cin.ignore(50) doesn't work. Anyway, now I have a problem where if the user press...
Ahh OK. I'll try it out to see if I can fix my problem. By the way, how can I get you if I can't get other stuff or can't solve my current problem. This thread? Create another thread? xD Thanks for...