Search found 11 matches
- Fri Apr 17, 2015 8:58 pm
- Forum: Beginners Help
- Topic: Asynchronous animations slow down game.
- Replies: 1
- Views: 315
Asynchronous animations slow down game.
Hey guys, it took me a long while to figure out what my problem was but I finally realised that asynchronous animations seem to slow down the game a lot. I'm writing an RTS with a lot of units using the ninja model atm and as soon as my units animate asynchronously the performance breaks down from 1...
- Wed Mar 11, 2015 3:19 pm
- Forum: Beginners Help
- Topic: How can I communicate with my camera animator?
- Replies: 7
- Views: 980
Re: How can I communicate with my camera animator?
I did it similarly to what you said now. I created a class CampaignCamera in which I have my camera and different methods which change the animator. #include "CampaignCamera.h" CampaignCamera::CampaignCamera(scene::ICameraSceneNode* camera, float farValue) { camera->setFarValue(far...
- Wed Mar 11, 2015 10:35 am
- Forum: Beginners Help
- Topic: How can I communicate with my camera animator?
- Replies: 7
- Views: 980
Re: How can I communicate with my camera animator?
Yes, that sounds like a good idea. I'll try it out. Still not sure if ISceneNodeAnimators are supposed to be used like that but it should work. I already wrote the animators. SceneNodeAnimatorCameraTravel just lets the camera fly to the destination in the animateNode function which it has to overrid...
- Tue Mar 10, 2015 11:34 pm
- Forum: Beginners Help
- Topic: How can I communicate with my camera animator?
- Replies: 7
- Views: 980
Re: How can I communicate with my camera animator?
Thanks for your reply. That would work but it would make the animator obsolete. What I'd like to have is all code in one place which I thought would be the animator. I think I thought about animators the wrong way. Maybe I could make several animators for different modes. One for player control and ...
- Tue Mar 10, 2015 9:48 pm
- Forum: Beginners Help
- Topic: How can I communicate with my camera animator?
- Replies: 7
- Views: 980
How can I communicate with my camera animator?
Hi, I wrote a custom scene node animator for my camera for my strategy game. It can do standard stuff like translate through the WASD keys and zoom in and out. Now I would like to have a possibility to communicate with the camera through the class in which it is created (in this case main). For exam...
- Thu Jan 30, 2014 12:57 am
- Forum: Beginners Help
- Topic: Turn based strategy game like TW-Series
- Replies: 10
- Views: 1645
Re: Turn based strategy game like TW-Series
Ok, I managed to color regions: https://lh3.googleusercontent.com/-2ZBAkEYeKK8/UupBLGYV_lI/AAAAAAAAAlk/Q4Rc20gZdSc/w1024-h768-no/Test+2014-01-30+13-09-04-05.png But I think my solution is very bad. I created another terrain scene node with a rendered target texture as texture on which I draw the pol...
- Wed Jan 29, 2014 7:54 pm
- Forum: Beginners Help
- Topic: Turn based strategy game like TW-Series
- Replies: 10
- Views: 1645
Re: Turn based strategy game like TW-Series
I think I have a very good solution for regions/borders concerning the coding. I will just have an image with the size of the map and make the color of the pixels determin the region, e.g., the value of the alpha channel could function as the region ID (0 -> none, 1 -> region 1, ..., 255 -> region 2...
- Wed Jan 29, 2014 3:41 pm
- Forum: Beginners Help
- Topic: Turn based strategy game like TW-Series
- Replies: 10
- Views: 1645
Re: Turn based strategy game like TW-Series
I could make the map in a modelling tool and then make aheightmap out of it. Wouldn't that give me the same degree of freedom on design? Also what difference is there in the AI, why would it be more work? Creating the map turned out to be a lesser problem. I made a heightmap out of a real map which ...
- Wed Jan 29, 2014 2:41 am
- Forum: Beginners Help
- Topic: Turn based strategy game like TW-Series
- Replies: 10
- Views: 1645
Re: Turn based strategy game like TW-Series
1. I messed around a little bit with the tutorials and tried to create terrain with some water. My problem is that the terrain and the water don't seem to have the same default position and rotation. I can fix that manually but it still seems strange to me. 2. Do you think creating a terrain with a ...
- Sat Jan 25, 2014 1:18 pm
- Forum: Beginners Help
- Topic: Turn based strategy game like TW-Series
- Replies: 10
- Views: 1645
Re: Turn based strategy game like TW-Series
Thanks for your reply. Yes, I have thought it through and I do want to keep it really simple. I am a student (not IT-related) so there will be periods where I have much time and periods where I have none. I know about my chances getting such a project done. I am not worried about diplomacy, AI, GUI ...
- Fri Jan 24, 2014 6:02 pm
- Forum: Beginners Help
- Topic: Turn based strategy game like TW-Series
- Replies: 10
- Views: 1645
Turn based strategy game like TW-Series
Hey guys, I am new to Irrlicht. I am an average programmer and have programmed only 2D games yet (Tower Defense Game in Java, Space Shooter in C++). I am planning on programming a turn based stategy game like the campaign map in the Total War series. If you don't know them here is a screenshot: http...