Search found 26 matches

by trixs
Sun Jan 20, 2008 10:18 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: bullet irrlicht demo
Replies: 33
Views: 33357

I just had to let you know that this is EXTREMELY helpful.

An actual working simple example! That seems to be odd around here.
by trixs
Sun Jan 20, 2008 6:20 pm
Forum: Beginners Help
Topic: Please Explain
Replies: 3
Views: 353

CuteAlien, Basically I went about writing my own FPS camera for two reasons: 1. To help learn 2. I cant stand the way user input is not separated from the included cameras. Anyway, I can get a basic camera moving around but you attach to a collision response animator and it simply goes nutty wheneve...
by trixs
Sun Jan 20, 2008 4:06 pm
Forum: Beginners Help
Topic: Please Explain
Replies: 3
Views: 353

Please Explain

I have been trying to get a basic camera to work for a week now and finally tried this on something I saw posted from 03.. To my surprise it actually works. The camera will move in whatever direction it is facing.. Ok great! How does it work?? Edit: Nevermind.. Works in space find but you apply an a...
by trixs
Sat Jan 19, 2008 1:24 am
Forum: Beginners Help
Topic: Vectors - not the container
Replies: 3
Views: 377

Vectors - not the container

:oops:

Does anyone know a good resource too help learn generalized vector information..? Basically any good tutorial on vectors, matrix's etc
by trixs
Thu Jan 17, 2008 11:53 pm
Forum: Beginners Help
Topic: C++ binary search
Replies: 12
Views: 2403

I completely agree it would be easier to use STL as much as possible. Unfortunately Ive wasted today and the better part of yesterday trying to figure out comparative operators for things such as sort and equal_range. I could never seem to get the compiler to actually work with an example such as yo...
by trixs
Thu Jan 17, 2008 11:37 pm
Forum: Beginners Help
Topic: C++ binary search
Replies: 12
Views: 2403

Saturn, I think it boils down to I understand how to do work with simple things such as [] - You start talking adding comparative operators into a template and I am lost. Anyway, once I figured out I could use [] it took 10 minutes to solve. Should be pretty efficient I think. Time to do some tests ...
by trixs
Thu Jan 17, 2008 11:17 pm
Forum: Beginners Help
Topic: C++ binary search
Replies: 12
Views: 2403

Saturn, That would be very slow compared to a binary search algo. Imagine something with 1000 objects - it would take on average 500 times to find the correct object doing a linear search. Using binary would only take 10 at most.. CuteAlien, Em - learning that makes me want to cry. I can actually im...
by trixs
Thu Jan 17, 2008 10:45 pm
Forum: Beginners Help
Topic: C++ binary search
Replies: 12
Views: 2403

int a = 123; std::lower_bound(bleh.begin(), bleh.end(),a, Test()); I know four arguments should be used. I just can not figure out for the life of me how you would get it to actually take the number into the third argument. It comes down to I am lost when it comes to using operators in the various ...
by trixs
Thu Jan 17, 2008 9:52 pm
Forum: Beginners Help
Topic: C++ binary search
Replies: 12
Views: 2403

CuteAlien, That wouldn't work as the algo would never stop. pseudocode algorithm: WHILE low is smaller than or equal to high SET midpoint to (low + high) / 2 IF data2Search is equal to data[midpoint] THEN return midpoint ELSEIF data2Search is smaller than data[midpoint] THEN SET high to midpoint - 1...
by trixs
Thu Jan 17, 2008 8:57 pm
Forum: Beginners Help
Topic: C++ binary search
Replies: 12
Views: 2403

C++ binary search

Two Part Question! #1 Is it possible to get binary_search to actually return an iterator instead of just true or false? The way various documentation explains it all it does is return true if the value is present. Well, thats kind of useless! #2 If binary_search is useless... How can one do math on ...
by trixs
Thu Jan 17, 2008 5:29 pm
Forum: Beginners Help
Topic: C++ sorting Vector help
Replies: 7
Views: 661

Thank you for the examples cutealien and saturn. Your examples helped me figure out the correct syntax after about 10 frustrating hours for trying! Hopefully Ill never have to use a sort algo again as I really don't understand the concept and have no more desire!!

Thanks Again,
trixs
by trixs
Wed Jan 16, 2008 10:30 pm
Forum: Beginners Help
Topic: C++ sorting Vector help
Replies: 7
Views: 661

Thanks for reply!

Yes, they should be declared public. I just forgot to put public: when I wrote that example. Could always use a struct and not worry about it though.

Anyway, unfortunately thats not the issue. Although I wish it was!
by trixs
Wed Jan 16, 2008 10:16 pm
Forum: Beginners Help
Topic: C++ sorting Vector help
Replies: 7
Views: 661

C++ sorting Vector help

Hi, I am having troubles with sort in C++.. Have been trying to get this to work for multiple hours and am getting no where. I do not understand how to actually get the sort algorithm predicate function to work. Anyway heres an example of what I am trying to do: class test { int a; int b; int c; } N...
by trixs
Mon Jan 14, 2008 5:26 pm
Forum: Beginners Help
Topic: User Config key mapping
Replies: 3
Views: 264

lol - you forgot the vectors!

Seriously, I couldn't think of a way to keep it simple and functional. How have you accomplished it in the past?
by trixs
Mon Jan 14, 2008 4:35 am
Forum: Project Announcements
Topic: Armen's Terrain Generator
Replies: 40
Views: 32005

Another Bump ~ Anyone have a copy?