Search found 9 matches

by Yellow
Mon Feb 06, 2006 6:01 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

I managed to compile it just fine, my concern is that it might not be fast enough. Though that could be fixed by writting part of the code in C++ and add it to the wrappers. On the otherhand, irrlicht seems orientated towards a first or third person perspective, I think I'd need to mess around with ...
by Yellow
Sun Feb 05, 2006 10:16 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

Yellow -- doh! You're right, it does work with the mouse. I tried using the keyboard for some reason to move the camera (out of habit, I guess). That's so neat. I also like how you used an .ini file to set the video options. :D I plan to use an xml config file. So, is this the beginning of the next...
by Yellow
Sun Feb 05, 2006 11:23 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

You're suposed to be able to move the camera when your mouse cursor is near the edge of the screen. Doesnt that work for you?
by Yellow
Sun Feb 05, 2006 1:29 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

Okay, as requested, here is a demo of the above flung together. I'm new to irrlicht, so dont expect to much.
You can download it HERE.
by Yellow
Fri Feb 03, 2006 6:16 pm
Forum: Advanced Help
Topic: dynamic textures
Replies: 2
Views: 470

I used an animated texture on my water, might be what you're looking for: // load the texture movie core::array<video::ITexture*> watermovie; for (int i = 0; i < 45; i++) { char tmp[64]; if(i < 10) sprintf(tmp, "textures/water/water0%d.tga", i); else sprintf(tmp, "textures/water/water...
by Yellow
Fri Feb 03, 2006 5:49 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

something like this would do the trick...

Code: Select all

bool CGame::OnEvent(SEvent event)
{
	if (event.EventType == EET_MOUSE_INPUT_EVENT && event.MouseInput.Event == EMIE_MOUSE_WHEEL)
	{
		pCamera->setFOV(pCamera->getFOV() + (event.MouseInput.Wheel/20));
	}
}
by Yellow
Wed Feb 01, 2006 6:09 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

Yellow -- How do you adjust the height??? I've tried to play around with the following values (cpos.Z and cpos.Y) but got no where fast: // make the camera look to a fixed point (45 degrees down) // in front of it, so it wont stay locked on the old target. vector3df cpos = pCamera->getPosition(); c...
by Yellow
Tue Jan 31, 2006 8:55 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

pCamera is a pointer to a static cam:

ICameraSceneNode *pCamera;

pCamera = pSceneMgr->addCameraSceneNode();

Glad someone could use this :)
by Yellow
Sun Jan 29, 2006 1:36 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: RTS style camera
Replies: 20
Views: 8808

RTS style camera

I had some trouble finding out how to get a RTS type camera to work in irrlicht (Birds perspective), so I thought this might be a usefull bit of code to share with others who are having the same trouble. This cam will move above the scene when you get close to the screen borders. call this function ...