Search found 21 matches

by Dragfang
Thu Apr 21, 2011 3:37 pm
Forum: Beginners Help
Topic: Make the camera speed slower
Replies: 2
Views: 564

When you create the camera like this: ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 1.0f); The third parameter is the movementspeed, in this example 1.0f. If I want the camera to move slower I can change it to 0.5f, and if I want it to move faster I can change it to 2.0f for exam...
by Dragfang
Wed Apr 20, 2011 10:47 pm
Forum: Beginners Help
Topic: Lightning with directx9?
Replies: 1
Views: 395

Lightning with directx9?

So I've always been using openGL with irrlicht and it gives a good smooth lightning that slowly fades into dark. Recently I started using directX9 instead since I found this cool water-code snippet on this forum that required directx9 instead. Now the lightning kinda gives full 100% light with a cer...
by Dragfang
Sat Jan 15, 2011 7:49 pm
Forum: Beginners Help
Topic: [Solved] Can't run my program through Visual Studios
Replies: 2
Views: 190

Radikalizm wrote:You need to set a correct working directory in your project configuration in visual studio, since it will use the project directory as the active working directory by default I believe
Ah that was really easy :P Thx it works perfect now!
by Dragfang
Sat Jan 15, 2011 7:40 pm
Forum: Beginners Help
Topic: I seem to be having some problems... MS Visual C++ 2010
Replies: 6
Views: 1550

I'm using VS 2010 as well with irrlicht 1.7.1, works perfect, I haven't done anything special.
by Dragfang
Sat Jan 15, 2011 7:25 pm
Forum: Beginners Help
Topic: [Solved] Can't run my program through Visual Studios
Replies: 2
Views: 190

[Solved] Can't run my program through Visual Studios

I guess this question is more about Visual Studios than Irrlicht, but you guys allways seem helpful :) I can't compile and run my program through Visual Studios, since my game then can't find the media folder where all my 3d-models etc. are located. I've set my VS to compile into a folder called the...
by Dragfang
Tue Dec 14, 2010 8:25 am
Forum: Beginners Help
Topic: Bad performance - setHardwareMappingHint(EHM_STATIC)?
Replies: 7
Views: 1143

Thanks for the answers. Hmm, as it is right now I'm checking collision against other cubes and placement of new cubes depending on the position of the cube that I find collision against, would this still be possible to treat each seperate cube as a seperate position if I chunk them together? As it i...
by Dragfang
Mon Dec 13, 2010 10:46 pm
Forum: Beginners Help
Topic: Bad performance - setHardwareMappingHint(EHM_STATIC)?
Replies: 7
Views: 1143

Bad performance - setHardwareMappingHint(EHM_STATIC)?

Hi, so I'm working on a mine-craft clone and I got the basics working pretty good, but when I start getting a lot of cubes my FPS drops a lot. I've searched a lot about it on these forums and I found setHardwareMappingHint(EHM_STATIC). I've tried to implement it but my FPS is still low with many cub...
by Dragfang
Thu Oct 14, 2010 7:45 pm
Forum: Beginners Help
Topic: [Solved] Camera + Objects + Gravity = Doesn't work well
Replies: 6
Views: 1587

Luben wrote:Only for the dynamic objecs you want to collide with(mostly static) things :)
Ahh I see, well everything works perfect now so thanks a lot for you help :)
by Dragfang
Thu Oct 14, 2010 6:08 pm
Forum: Beginners Help
Topic: [Solved] Camera + Objects + Gravity = Doesn't work well
Replies: 6
Views: 1587

I imagine having 2 different collision animators may cause them to fight with each other, if one wants to collide and the other doesnt, or if both wants to collide with different things. So yes i guess :) (No guarantee that i'm not wrong though ;] ) After looking into my code I found that I had a c...
by Dragfang
Thu Oct 14, 2010 4:13 pm
Forum: Beginners Help
Topic: [Solved] Camera + Objects + Gravity = Doesn't work well
Replies: 6
Views: 1587

The cameras movespeed is 0.4, but the gravity is -10. Seems the gravity affects the player a lot more than moving would. You might try lowering the gravity. I tried the demo, and i couldn't jump at all. But then i don't know the controls either. Also, since you add the terrain selector to the meta-...
by Dragfang
Thu Oct 14, 2010 2:48 pm
Forum: Beginners Help
Topic: [Solved] Camera + Objects + Gravity = Doesn't work well
Replies: 6
Views: 1587

[Solved] Camera + Objects + Gravity = Doesn't work well

Hi guys, I'm currently working on a game-project kinda like MineCraft if you guys seen that. I create a terrain from a flat heightmap to start with, and then I place cubes on it. The problem is that I (the camera) can't jump/climb up on the cubes. If I build a nice flat area of cubes and try jumping...
by Dragfang
Mon Sep 13, 2010 9:44 pm
Forum: Beginners Help
Topic: Swapping the model of a mesh?
Replies: 5
Views: 307

hybrid wrote:Yes, this would change the scene node (actually remove the old one and create the new one). Usage is correct. You might want to remove the mesh from the mesh cache as well, in case you don't ever use it again.
Allright :) Thanks a lot!
by Dragfang
Mon Sep 13, 2010 9:55 am
Forum: Beginners Help
Topic: Swapping the model of a mesh?
Replies: 5
Views: 307

I guess first thing to learn is C++. Then you'll notice that assigning a new object to an existing pointer won't do anything to the previously stored oject. So first think about what should happen with the old object. And do that, e.g. call remove on it. Then get the new mesh, and add it to the sce...
by Dragfang
Sun Sep 12, 2010 1:27 pm
Forum: Beginners Help
Topic: Swapping the model of a mesh?
Replies: 5
Views: 307

Swapping the model of a mesh?

Hi, I'm having some troubles with an RTS-game that I'm making. I'm using getMesh to load a model to a mesh, but I'm not able to then change that model to another model using the same mesh. //Declaration IAnimatedMesh* objectMesh; ISceneNode* objectNode; ITriangleSelector* objectSelector; ISceneNodeA...
by Dragfang
Thu Mar 11, 2010 11:29 am
Forum: Beginners Help
Topic: Convert stringc to normal char array
Replies: 4
Views: 368

Ah, works perfectly. Thank you!

I'll take a look into code::blocks, thx for the tip! :)