Search found 16 matches

by pverlaine999
Mon May 23, 2011 4:29 pm
Forum: Beginners Help
Topic: How to rotate FPS with keys?
Replies: 0
Views: 491

How to rotate FPS with keys?

Sorry if this sounds like a stupid question. When I have a FPS camera, I can use the mouse to rotate the camera and look at my target. It feels very smooth. But on a system that has no mouse, I'd like to handle camera rotation with keys. I got a few questions here: 1) I can catch my key event, and t...
by pverlaine999
Mon May 23, 2011 4:13 pm
Forum: Beginners Help
Topic: Adding an animator makes the whole thing so slow
Replies: 17
Views: 1742

Thanks, that's what I use. I use irrBullet wrapper. Otherwise, it would be a heck of a learning curve :)
by pverlaine999
Mon May 23, 2011 7:06 am
Forum: Beginners Help
Topic: Adding an animator makes the whole thing so slow
Replies: 17
Views: 1742

Thanks for you guys to reply to my dumb newbie questions. I'm learning to program with Irrlicht because I just want to have some fun on my Android device, nothing serious. But from the two-month learning experience (in the evening and weekend, that is), I found that learning a real physics engine wi...
by pverlaine999
Sat May 21, 2011 6:19 am
Forum: Beginners Help
Topic: Adding an animator makes the whole thing so slow
Replies: 17
Views: 1742

Thanks everyone for replying. I was trying to do collision detection using triangle selector because, well, this is how the Irrlicht examples introduce how collision detection is done. I learn to program with Irrlicht by studying the examples provided, and thought that these are best practice to do ...
by pverlaine999
Thu May 12, 2011 5:29 am
Forum: Beginners Help
Topic: Adding an animator makes the whole thing so slow
Replies: 17
Views: 1742

Adding an animator makes the whole thing so slow

I have created a floor, and cube. I want to add collision detection so that the cube would not fall through the floor. With the following code: ISceneNode * cube = smgr->addCubeSceneNode(); IAnimatedMesh * movingPlane = smgr->addHillPlaneMesh("floor", core::dimension2df(10, 10), core::dime...
by pverlaine999
Thu May 12, 2011 3:36 am
Forum: Beginners Help
Topic: how to create floor plane that extends to infinity?
Replies: 5
Views: 827

Thanks for explaining. So let me try to understand this. Let's say I create 16 IAnimatedMeshSceneNode at the beginning, and stick them together by calling setPosition() for each of them, to form a 4x4 grid. Then as the camera move in one direction, I just stick more of it to the "front" of...
by pverlaine999
Thu May 12, 2011 2:55 am
Forum: Beginners Help
Topic: how to create floor plane that extends to infinity?
Replies: 5
Views: 827

Sorry, newbie here. What does "tile it dynamically on the fly" means?

Thanks
by pverlaine999
Thu May 12, 2011 2:02 am
Forum: Beginners Help
Topic: how to create floor plane that extends to infinity?
Replies: 5
Views: 827

how to create floor plane that extends to infinity?

Hi, I create a floor plane with something like this: SMaterial * material = new SMaterial(); material->AntiAliasing = EAAM_QUALITY | EAAM_LINE_SMOOTH | EAAM_POINT_SMOOTH; material->Thickness = 1.0f; IAnimatedMesh *movingPlane = smgr->addHillPlaneMesh("floor", core::dimension2df(10, 10), co...
by pverlaine999
Sun May 08, 2011 9:27 am
Forum: Beginners Help
Topic: Memory use grows forever on Android!
Replies: 7
Views: 774

Ah thank you very much, you made my day. This is exactly the problem. I put a flag to check the initialization, and that' s it, no more infinite memory growth. But then, another problem props up. After the game is stopped and resumed, the graphic is not right. It looks like there's no texture applie...
by pverlaine999
Fri May 06, 2011 4:25 pm
Forum: Beginners Help
Topic: Memory use grows forever on Android!
Replies: 7
Views: 774

I verified again with the example from the Irrlicht Android port, and it is the same code. I don't understand how memory use continues to grow like this.

Could someone give a hint on that?

Thanks

Paul
by pverlaine999
Fri May 06, 2011 12:24 pm
Forum: Beginners Help
Topic: Memory use grows forever on Android!
Replies: 7
Views: 774

The draw loop is like this, which is copied from the tutorial: void Java_com_test_TestIrrActivity_nativeDrawIteration( JNIEnv* env ) { __android_log_print(ANDROID_LOG_INFO, "TestIrr", "nativeDrawIteration() called"); device->run(); if (counter == 0) init(); driver->beginScene(tru...
by pverlaine999
Fri May 06, 2011 9:35 am
Forum: Beginners Help
Topic: Memory use grows forever on Android!
Replies: 7
Views: 774

Memory use grows forever on Android!

I run my little test (as I have posted in another thread here ) on my Android, and after a while, I see that memory used by the program is growing forever. I just let it run for 5 minutes or so, and the system shows that memory usage of this little test (which does almost nothing) is around 40MB. I ...
by pverlaine999
Fri May 06, 2011 9:24 am
Forum: Beginners Help
Topic: Very low fps on Android
Replies: 3
Views: 2899

Aaahhhh, stupid me!

Thanks a lot for spotting my stupidity.

:oops:
by pverlaine999
Wed May 04, 2011 1:36 pm
Forum: Project Announcements
Topic: Android Port
Replies: 383
Views: 171942

Sorry for cross-posting, I tried to create my first application on Android, and I got extremely low fps. I described my issues (and my codes) in this post here.

Could someone give me a hint on what's going on?

Thanks

Paul
by pverlaine999
Wed May 04, 2011 1:21 pm
Forum: Beginners Help
Topic: Very low fps on Android
Replies: 3
Views: 2899

And the size of the application is humongous! Even though I compiled Irrlicht Android and my test program with NDK_DEBUG = 0 , after the installation, Android shows that the size of my application is 30.58MB!!! And the thing is, Android also shows the following flags on the program: FLAG_DEBUGGABLE ...