Search found 83 matches

by humbrol
Fri Jan 29, 2010 9:22 pm
Forum: Beginners Help
Topic: how to iterate through a list of objects
Replies: 8
Views: 1024

brain freezeing up

trying to figure out the basics , am i on the right track here? #include <irrlicht.h> #include <fstream.h> #include "moon.cpp" #include <vector> #include <string> using namespace std; using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace i...
by humbrol
Fri Jan 29, 2010 7:45 pm
Forum: Beginners Help
Topic: Single KeyPress
Replies: 4
Views: 1113

may be a dumb idea but could you set a timer to see if a second had passed if so then if the key is pressed set a bool to true if false and false if true? if(deltatime > 1000) { if(keypressed = TRUE) keypressed = FALSE) else keypressed = TRUE } nor meant to run, but just tossing a idea out..
by humbrol
Mon Jan 25, 2010 5:52 am
Forum: Beginners Help
Topic: TPP Camera in Irrlicht :?:
Replies: 1
Views: 369

its a great language, start with the tutorials, for the camera search for arras cockpit and flight functions,, the camera controls in there reveal alot about how the cameras work =)[/quote]
by humbrol
Sat Jan 23, 2010 8:50 pm
Forum: Beginners Help
Topic: Keyboard and Mouse input
Replies: 5
Views: 820

http://irrlicht.sourceforge.net/docu/example004.html

covers how to capture keyboard input pretty well
by humbrol
Wed Jan 20, 2010 7:35 pm
Forum: Beginners Help
Topic: how to iterate through a list of objects
Replies: 8
Views: 1024

thanks alot, thats got enough to keep me reading for a day or 2
by humbrol
Wed Jan 20, 2010 1:46 pm
Forum: Beginners Help
Topic: how to iterate through a list of objects
Replies: 8
Views: 1024

my question then would be, i have the class for the planets, how do i put them into a list and access them from the list
by humbrol
Wed Jan 20, 2010 11:30 am
Forum: Beginners Help
Topic: how to iterate through a list of objects
Replies: 8
Views: 1024

so this would be functioning code? list<ISceneNode *> lPlanets; list<ISceneNode *>::Iterator it; for (it=lPlanets.begin(); it!=lPlanets.end(); it++) { ISceneNode *pPlanet=*it; if (pPlanet) { // insert function to fill in info for the planet from a text file or db // ie pPlanet.xCoord, pPlanet.yCoord...
by humbrol
Wed Jan 20, 2010 9:38 am
Forum: Beginners Help
Topic: how to iterate through a list of objects
Replies: 8
Views: 1024

how to iterate through a list of objects

I am trying to simplify the creation of objects in the game. for example the planets. an i going about the right line of thought with this? the next step would be to save and read from a file/database the information and create the objects with the saved info then to use this loop to create the actu...
by humbrol
Wed Jan 20, 2010 8:07 am
Forum: Beginners Help
Topic: Cant rotate a mesh
Replies: 2
Views: 448

Cant rotate a mesh

Im using arrays cockpit flight controls to control the node and make the camera and heres the node setup info IAnimatedMesh* mesh = smgr->getMesh("../../media/shuttle/shuttle9.3ds"); if (!mesh) { device->drop(); return 1; } IAnimatedMeshSceneNode* node1 = smgr->addAnimatedMeshSceneNode( me...
by humbrol
Thu Jan 14, 2010 12:30 pm
Forum: Code Snippets
Topic: Delta time
Replies: 2
Views: 4073

may be a dumb question but where is deltatime declared and what is it set to?
by humbrol
Thu Jan 14, 2010 10:55 am
Forum: Beginners Help
Topic: how to read the API
Replies: 7
Views: 769

kewl thanks alot.
by humbrol
Mon Jan 11, 2010 3:08 am
Forum: Beginners Help
Topic: how to read the API
Replies: 7
Views: 769

thanks for sending me a pm to crack the code.
by humbrol
Mon Jan 11, 2010 3:06 am
Forum: Beginners Help
Topic: spaghetti code and how to avoid it?
Replies: 5
Views: 640

I guess its a leap between the concept and implementation,, after some trial and error was able to put all the cockpit control into a class and wrap it up nice and neat i hope. now just trying to find the best way to wrap all the if(keys[irr::KEY_LEFT]) { Cockpit.turn(node1, -0.1); } cals into a cla...
by humbrol
Mon Jan 11, 2010 2:45 am
Forum: Beginners Help
Topic: spaghetti code and how to avoid it?
Replies: 5
Views: 640

no, i had to put this all aside for work and family issues and just picking it all back up again.
by humbrol
Mon Jan 11, 2010 2:26 am
Forum: Beginners Help
Topic: spaghetti code and how to avoid it?
Replies: 5
Views: 640

spaghetti code and how to avoid it?

since im new to programming, any tips on what you can toss in sep files, what should be made into classes, functions and the best way to organize this? im thinking i should put all the cockpit functions into a class, but when i moved all the functions over to a seperate file started getting errors l...