Search found 56 matches

by alfabeta90
Sat Dec 29, 2007 10:36 am
Forum: Beginners Help
Topic: unresolved external error using rts camera - snipping codes
Replies: 1
Views: 348

unresolved external error using rts camera - snipping codes

Hi,
I got a LNK2001 unresolved external error if using a rts camera from snipping codes from this forum. Should i use extern ("C") or something ?
by alfabeta90
Fri Dec 28, 2007 10:18 pm
Forum: Beginners Help
Topic: cannot instantiate abstract class error
Replies: 1
Views: 211

cannot instantiate abstract class error

Got a 'MyEventReceiver' : cannot instantiate abstract class error when paste following code:

Before main:

class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (event.KeyInput.Key == KEY_KEY_S && event.KeyInput.PressedDown)
{
cout << "PRESED S\n ...
by alfabeta90
Thu Nov 29, 2007 6:25 am
Forum: Beginners Help
Topic: What version of VC++ do you guys use?
Replies: 19
Views: 1819

They exist other studios then VC++. I use sometimes Dev-Cpp and VC++ 2008 EE
by alfabeta90
Wed Nov 28, 2007 7:10 pm
Forum: Beginners Help
Topic: big model, small rendered
Replies: 3
Views: 319

but in tutorial 2 there is no code for scale and the map likes normal.
by alfabeta90
Wed Nov 28, 2007 6:58 pm
Forum: Beginners Help
Topic: big model, small rendered
Replies: 3
Views: 319

big model, small rendered

Hi,
I maked a 3ds model in 3ds max 2008. The model is very very big but when i load it to quake 3 (tutorial 2 too) the loaded object is very small.
how to repear it?
by alfabeta90
Sat Oct 27, 2007 2:22 pm
Forum: Beginners Help
Topic: Changing camera height
Replies: 2
Views: 200

Changing camera height

Hello, is it posible to change the fps camera height? I ask that because i used the code from the tutorials here and the camera is heigher then normal.The second thing is that i try to create crooshair. I make the cursor invisible and then i render a 2d image on its place:

gui->getImage(driver ...
by alfabeta90
Sat Jun 30, 2007 4:38 pm
Forum: Beginners Help
Topic: Problem with changing weapon
Replies: 4
Views: 542

main:

gun = smgr->getMesh("uzi.3ds");
gun_ = smgr->addAnimatedMeshSceneNode(gun, camera, 0);
camera->addChild(gun_);

gun_->setMaterialFlag(EMF_LIGHTING, false);
gun_->setPosition(vector3df(8,-4,15));
gun_->setRotation(vector3df(0,6,0));
gun_->setVisible(false);


gun2 = smgr->getMesh ...
by alfabeta90
Fri Jun 29, 2007 9:23 pm
Forum: Beginners Help
Topic: Problem with changing weapon
Replies: 4
Views: 542

Problem with changing weapon

Hello
In my eventretriever i have some code who change the weapon when push a '1' or '2' button. The problem is that if i press 1 and/of 2 button i see the same weapon and on center of screen a difrents black something.

case KEY_KEY_1:
{
//show primary weapon
IAnimatedMesh* mesh = smgr ...
by alfabeta90
Wed Jun 27, 2007 8:52 pm
Forum: Beginners Help
Topic: Render FPS in a static text.
Replies: 5
Views: 960

alfabeta90 wrote:I do so:

Code: Select all

	IGUIFont* font = device->getGUIEnvironment()->getFont("images/courier.bmp");
	font->draw(buffer,rect<s32>(10,10,300,60),SColor(255,255,255,255));
What must i do to show fps because font has no methos lik setText?
by alfabeta90
Wed Jun 27, 2007 4:00 pm
Forum: Beginners Help
Topic: Drawing text at end.
Replies: 2
Views: 300

Ofcourse, stupid of me :)
by alfabeta90
Wed Jun 27, 2007 3:20 pm
Forum: Beginners Help
Topic: Drawing text at end.
Replies: 2
Views: 300

Drawing text at end.

I render a black bitmap, map and a text. I run the program and i see only the black bitmap at first place and the map but no text. I think the text is behind the map. How may i change code to draw the text first?

IGUIFont* font = device->getGUIEnvironment()->getFont("images/courier.bmp");
while ...
by alfabeta90
Tue Jun 26, 2007 4:59 pm
Forum: Beginners Help
Topic: Problem with key is pressed event
Replies: 5
Views: 681

So, what must i do?
by alfabeta90
Tue Jun 26, 2007 4:36 pm
Forum: Beginners Help
Topic: Problem with key is pressed event
Replies: 5
Views: 681

Yes
by alfabeta90
Tue Jun 26, 2007 4:00 pm
Forum: Beginners Help
Topic: Problem with key is pressed event
Replies: 5
Views: 681

Problem with key is pressed event

How to make a key is pressed event?
I make this one but when i run the program, program crach out.

IrrlichtDevice *device = 0;
s32 cnt = 0;


class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
s32 id = event.GUIEvent.Caller->getID();
IGUIEnvironment ...
by alfabeta90
Tue Jun 26, 2007 1:48 pm
Forum: Beginners Help
Topic: Few questions about font
Replies: 1
Views: 409

Few questions about font

How to change the color of a gui static text. I was wondering if you could tell me how to make a new line in a gui static text. I tried /n and \n but ther come nothing.