Search found 11 matches

by CeeRo
Thu Sep 14, 2006 2:59 am
Forum: Beginners Help
Topic: Uber noob questions
Replies: 9
Views: 565

Thanks for the tip, that second example looks interesting, if I did it like that I could also use the terrainNode code that you see in my first post in the event receiver right? Been wondering about how to do that. I'll have to look into it tomorrow though, 5am here now and I should be getting to be...
by CeeRo
Thu Sep 14, 2006 2:09 am
Forum: Beginners Help
Topic: Uber noob questions
Replies: 9
Views: 565

Alright, I think I'm on to something, but still having some trouble. At least something's happening when pressing space now, but the terrain just flashes and then comes back lacking a lot of surface, and the command window says "Could not draw triangles, too many primitives(115200), maximum is ...
by CeeRo
Thu Sep 14, 2006 1:32 am
Forum: Beginners Help
Topic: How to setup a gun in first person shooting?
Replies: 11
Views: 692

Alright, got a gunNode in and working... Thanks, was really quite simple once i figured it out :) // gunNode scene::ISceneNode* gunNode = smgr->addAnimatedMeshSceneNode(smgr->getMesh("d:/Temp/Irrlicht Models/tommygun2/tommygun.3ds")); gunNode->setMaterialTexture(0, driver->getTexture("...
by CeeRo
Wed Sep 13, 2006 1:28 pm
Forum: Beginners Help
Topic: Uber noob questions
Replies: 9
Views: 565

K... I'm having some trouble setting up and pointing to the playerNode... // jumping with spacebar if(event.EventType == EET_KEY_INPUT_EVENT && !event.KeyInput.PressedDown && event.KeyInput.Key == KEY_SPACE) { vector3df pos = playerNode->getPosition(); playerNode->setPosition(vector3...
by CeeRo
Wed Sep 13, 2006 9:13 am
Forum: Beginners Help
Topic: Uber noob questions
Replies: 9
Views: 565

Is it possible to use SKeyMap to set up spacebar for jumping easier?
by CeeRo
Wed Sep 13, 2006 12:49 am
Forum: Beginners Help
Topic: Uber noob questions
Replies: 9
Views: 565

Alright thanks, that gives me something to work from. And yeah I know, would be good to learn C++ properly first. I just started a 3 year course in game programming in school, we're working with java right now and aren't gonna start C++ untill next year, so... I got a little set on figuring out just...
by CeeRo
Wed Sep 13, 2006 12:34 am
Forum: Beginners Help
Topic: Uber noob questions
Replies: 9
Views: 565

Next, for my copy/pasted parts of code from the Irrlicht demo for shooting and creating particle impacts: // testing testing, shoot void MyEventReceiver::shoot() { scene::ISceneManager* sm = device->getSceneManager(); scene::ICameraSceneNode* camera = sm->getActiveCamera(); if (!camera || !mapSelect...
by CeeRo
Wed Sep 13, 2006 12:16 am
Forum: Beginners Help
Topic: Uber noob questions
Replies: 9
Views: 565

Uber noob questions

Let me know if I'm asking about too basic stuff here and should rather go read a couple books... But I'm trying to just piece together different parts of code to see if I can figure out how stuff works here. What I've done is: Started with the terrain-rendering tutorial code, changed around heightma...
by CeeRo
Tue Sep 12, 2006 11:54 pm
Forum: Beginners Help
Topic: How to setup a gun in first person shooting?
Replies: 11
Views: 692

K, still a bit ways off for me then I guess, I can figure out how to load a model on the map I guess, but dunno how to attach it to the camera and offset it yet (I picked up both C++ and Irrlicht a couple days ago). Have you got a small piece of code to demonstrate maybe? Would be much appreciated :)
by CeeRo
Tue Sep 12, 2006 11:44 pm
Forum: Beginners Help
Topic: Saving a players position to an int
Replies: 7
Views: 259

Edit: Already answered in another thread
by CeeRo
Tue Sep 12, 2006 10:19 pm
Forum: Beginners Help
Topic: How to setup a gun in first person shooting?
Replies: 11
Views: 692

Is there a gunNode in Irrlicht already?