Thanks guys

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Guest

Thanks guys

Post by Guest »

Sweet, adding the dll to the folder with the cpp file worked. I should have known that but I haven't used dlls before in C.

I have a few more questions before I can really start using this amazing 3D engine:

-How do I exit those first person examples that trap the mouse? I end up having to log off each time I run one.

-Also when I load up a Milkshape 3D model with that model viewer program it loses it's texturing? Is it something I'm doing or are Milkshape models not fully supported?
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Re: Thanks guys

Post by jox »

Anonymous wrote: -How do I exit those first person examples that trap the mouse? I end up having to log off each time I run one.
ALT-F4
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

-Also when I load up a Milkshape 3D model with that model viewer program it loses it's texturing? Is it something I'm doing or are Milkshape models not fully supported?
This threw me for a loop too. I think someone figured out the issue and it had to do with the relative path of the file locations.

I don't pre-texture my stuff anyhow, so I load it like this.

Code: Select all

node->setMaterialFlag(EMF_LIGHTING, false);
node->setMaterialTexture( 0, driver->getTexture("../../media/sydney.bmp") );
Crud, how do I do this again?
Guest

Thanks again!

Post by Guest »

Do you know where I can find any good tutorials to get me started?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Guest

Tutorials

Post by Guest »

bal, they are still a little advanced for me and there just arn't enough of them to learn everything.

I'm messing around with the movement example trying to make the block move up and down continously if you hold the key down. Most of the code below is taken from a post I found in this forum on the topic. It works but there is a pause in the movement when you first press the key. After the inicial pause, it moves smoothly as long as you hold the key down. Does anyone know how to get rid of that pause?


public:
virtual bool OnEvent(SEvent event)
{
//definition
bool keys[irr::KEY_KEY_CODES_COUNT] ;
//initialization
for(int x=0; x<irr::KEY_KEY_CODES_COUNT; x++) keys[x] = false;
//onEvent
if(event.EventType == irr::EET_KEY_INPUT_EVENT){
keys[event.KeyInput.Key] = event.KeyInput.PressedDown;

//Using it
core::vector3df v = node->getPosition();

if(keys[irr::KEY_UP]) v.Y += 1;
if(keys[irr::KEY_DOWN]) v.Y -= 1;

node->setPosition(v);

return true;


}

return false;
}
};
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

This is what solved that problem for me:
http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=808
Guest

hmm

Post by Guest »

That's where I got this bit of code and there is definately a pause in the movement when a key is first pressed. Also, I can no longer move around in fps with the arrow keys. Even if I switch the keys that move the block to letters, I still can't move around?
Post Reply