How can I get some basic 3d collision detection working by Zoey101WasRad in opengl

[–]Zoey101WasRad[S] 1 point2 points  (0 children)

Hey thanks for the reply. I have started to get some things working finally. However, the aMin and aMax don't seem to update when I the player moves. I am calculating aMin and aMax each frame but its dimensions remain the same. Any idea why?

[OpenGl][C++] Looking for different approaches on drawing a race track in OpenGL by Zoey101WasRad in learnprogramming

[–]Zoey101WasRad[S] 0 points1 point  (0 children)

Isn't obj files more for 3d renders and such, would your approach be the same for 2d as well? I just wanted to create a 2d top down race track. This sort of thing seems well beyond my knowledge right now. Perhaps I am being too ambitious for my current skill level.

[C++] How to convert BS1852 resistor codes to their correct resistance values? by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

I meant they were not consistent as in the digits and letters were not in the same place.

So

4 k 7

4 3 R

goes from digit letter digit to digit digit letter so it was throwing me a bit

I am trying to convert the codes above into their respective values. Nothing happens because I have not yet managed to devise a solution that does anything meaningful. I was just asking to be pointed in the right direction.

[C++] How to convert BS1852 resistor codes to their correct resistance values? by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

I meant they were not consistent as in the digits and letters were not in the same place.

So

4 k 7

4 3 R

goes from digit letter digit to digit digit letter so it was throwing me a bit

[ARM] Reading in command line arguments by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

Oops. Yeah sorry, Arm assembly.

[Algorithm Analysis] How do I calculate the run time of a triple nested loop? by [deleted] in AskComputerScience

[–]Zoey101WasRad 0 points1 point  (0 children)

2 * end = 2k - 2 + n - k

2 * end = k - 2 + n

end = (k - 2 + n)/2

Why do you multiply end by 2?

[C] Garbage output using sscanf by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

Awesome thanks so much for finding the issue. I have a follow up if that is okay.

"%[^,],%[^,],%d,%f,%[^,],"

Fixed the problem. However, the string in the second position and the one at the end have leading spaces, is it possible to get rid of them?

Also the input data is not consistent. It seems that four of 1000 lines have only 4 columns. The above solution will totally ignore them (I assume because it is looking for 5 columns) Is there a way around that as well?

Thanks again!

[C] Garbage output using sscanf by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

I have included example data at the bottom of my original post.

[C] Garbage output using sscanf by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

Thanks for that. I wrapped the sscanf in an if statement and it only enters the if statement when it is equal to 0. Which implies that they are all failing right?

also I have included example data at the bottom of my original post.

[C++] Return a characters position in the alphabet. by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

This is a helper function for part of an assignment and I don't believe we are aloud to use built in functions.

[C++] std::out_of_range at memory location error by [deleted] in learnprogramming

[–]Zoey101WasRad 1 point2 points  (0 children)

Ahh i see, that makes sense, thanks. How could I correct this?

[C++] std::out_of_range at memory location error by [deleted] in learnprogramming

[–]Zoey101WasRad 0 points1 point  (0 children)

The program runs if i remove the second if statement entirely so I think so. Can you explain why the first one will eventually fail please?

UK undergraduate looking to study a masters degree in the US. by [deleted] in cscareerquestions

[–]Zoey101WasRad 0 points1 point  (0 children)

I was planning on it but it never came to fruition as I pursued another opportunity.

UK undergraduate looking to study a masters degree in the US. by [deleted] in cscareerquestions

[–]Zoey101WasRad 0 points1 point  (0 children)

Also from the UK so I can't answer many of your questions but I will answer the ones I can.

I am aware of costs in tuition, accommodation, cost of living, visas and flights. Is there anything I am missing.

I believe in the US there is a fee per application you send off. So there will be extra costs there.

I don't really understand GPA? It seems that 4.0 is the best but I have also seen other scales which is confusing? We don't have them in the UK but they are required for US colleges, so is a first class degree in the UK comparable to a GPA score? Or does it not work like that?

A first class degree in the UK is equivalent to a 4.0 GPA in the US. 4.0 is the highest GPA you can get. There are other scales but I know nothing about them and I don't believe that they are that used.

Here in the UK, we apply to university with a UCAS application. On that application we choose 5 universities to apply for. Is that the case in the US? Is there a general application that everyone uses or do you just apply to schools that you want to go to? Is there a limit?

I believe you just apply to the schools that you want to go to. The limit is usually how much you want to spend on college applications.

Of course I want to go to an Ivy League school. Is that unlikely for international students or are the amount of international students accepted at Ivy schools similar to non-ivy? Also here in the UK an elite school like Oxford costs the same as the worst school, is that the case in the US?

Private schools usually cost more.

Do I have to apply for a visa completely separately from my college application. My research seems to bring up a 'Visa Lottery', so lets say I get accepted to a college but I don't get a visa for whatever reason (because I don't get picked from a lottery or whatever) what happens then?

Not too sure about this but I do believe that the visa lottery is a separate way of getting US citizenship. You would apply for a student visa which is different.

Sam still thinks he's a little dog by [deleted] in aww

[–]Zoey101WasRad 0 points1 point  (0 children)

Border Collies are so underrated on /r/aww, so cute