Search found 51 matches

by danielmccarthy
Tue Sep 09, 2014 12:10 pm
Forum: Beginners Help
Topic: custom ISceneNode problem??
Replies: 5
Views: 620

Re: custom ISceneNode problem??

they are set virtual in the header. And no the parent scene node is not NULL. I don't know why this is happening. The render method is not being called at all
by danielmccarthy
Mon Sep 08, 2014 2:22 pm
Forum: Beginners Help
Topic: custom ISceneNode problem??
Replies: 5
Views: 620

custom ISceneNode problem??

Hi I want to create a health scene node and I have used the custom scene node from the tutorials to start me off but their is a rendering problem? The onRegisterSceneNode method is not being called neither is the render. #include "CHealthBar.h" #include <iostream>   using namespace std;   ...
by danielmccarthy
Thu Aug 28, 2014 10:17 pm
Forum: Beginners Help
Topic: Anyone know a better way of movement?
Replies: 2
Views: 412

Anyone know a better way of movement?

Hi, This is my current code and it causes the player to jerk back and forth it is not smooth movement at all. #include "Movement.h" #include "GameObject.h" #include <Irrlicht.h> #include <Windows.h>   using namespace irr; using namespace scene;   Movement::Movement(GameObject* ga...
by danielmccarthy
Sat Aug 23, 2014 4:14 am
Forum: Beginners Help
Topic: (SOLVED) Triangle selector on a scaled node?
Replies: 1
Views: 264

Re: Triangle selector on a scaled node?

Found the issue will state here in case someone else has the same problem.
When you scale an object with the Y axis set to zero triangle selectors do not work properly.
by danielmccarthy
Sat Aug 23, 2014 3:55 am
Forum: Beginners Help
Topic: (SOLVED) Triangle selector on a scaled node?
Replies: 1
Views: 264

(SOLVED) Triangle selector on a scaled node?

Hi when ever I scale a node the triangle selector does not work. Otherwise it does Any advice?   bool Game::loadMap(std::string filename) {     /* Remove the old map */     if (_map != 0)         _map->remove();       IMeshSceneNode* mapNode = smgr->addOctreeSceneNode(smgr->getMesh(filename.c_str())...
by danielmccarthy
Sat Aug 23, 2014 1:09 am
Forum: Beginners Help
Topic: moving a character from a point to another
Replies: 4
Views: 707

Re: moving a character from a point to another

I create a timer by storing the current time from one movement and then checking it before the next movement. The lower the time difference you check for. The faster the model moves. In your main loop you then do something like PlayerHandler::process(); Then in the player handler you loop through al...
by danielmccarthy
Sat Aug 23, 2014 1:02 am
Forum: Beginners Help
Topic: 2d zoom
Replies: 3
Views: 580

Re: 2d zoom

Maybe use billboards then you can just reposition the 3d camera.

Another way would be to resize the textures some how based on the zoom level. You would need quite large images then though as if they are originally small they will reduce in quality as they are stretched.
by danielmccarthy
Sat Aug 23, 2014 12:17 am
Forum: Beginners Help
Topic: Game Object factory feedback?
Replies: 4
Views: 448

Re: Game Object factory feedback?

I think I know what you mean by the object instance. So basically in the objects constructor have a switch that uses the object id and then load the correct files that way?


This way you can just do something like

NPC* npc = new NPC(npcId);
by danielmccarthy
Fri Aug 22, 2014 7:00 pm
Forum: Beginners Help
Topic: Game Object factory feedback?
Replies: 4
Views: 448

Game Object factory feedback?

Hi I have created like a game object factory. Am I on the right track? Can I have feedback and is the way I have designed this decent? I have already had to redesign parts of my game due to design flaws so I have used one of the irrlicht examples as an example. Someone give me the thumbs up and I wi...
by danielmccarthy
Fri Aug 22, 2014 6:25 pm
Forum: Beginners Help
Topic: Good way of storing game object data?
Replies: 3
Views: 721

Re: Good way of storing game object data?

Hey the basic factory is nearly complete can I have feedback please?: http://codejaw.com/379ux
by danielmccarthy
Fri Aug 22, 2014 5:43 am
Forum: Beginners Help
Topic: Good way of storing game object data?
Replies: 3
Views: 721

Good way of storing game object data?

Hi, I have wrote some code took me about an hour it is pretty basic and allows objects to be created in the game and you can relate to them by the ISceneNode id. I have posted this because I want some feedback is this a good idea and am I on the right track? Basically you register a game object and ...
by danielmccarthy
Fri Aug 22, 2014 4:18 am
Forum: Advanced Help
Topic: Winsock - Sending 3D Objects
Replies: 8
Views: 1283

Re: Winsock - Sending 3D Objects

I personally think it is a bad idea for you to send objects over the server to the client. It would make sense to just send objectIds from the server to the client and then have the client look up the objects location based on the object id.
by danielmccarthy
Fri Aug 22, 2014 4:10 am
Forum: Beginners Help
Topic: Get scene node by id?
Replies: 8
Views: 1786

Re: Get scene node by id?

In the event handler I check to see if a node has been clicked if it has I call a function in my game class which then calls a function which returns an OBJECT struct specifying the type of object it is and its position and id ect ect. From their the game can set certain gamestats which will then be...
by danielmccarthy
Fri Aug 22, 2014 3:56 am
Forum: Beginners Help
Topic: Get scene node by id?
Replies: 8
Views: 1786

Re: Get scene node by id?

At the moment for my game I use an Object class which holds a scene node. I needed a way to identify objects from each other so I set the first 16 bits of the ID for the node as the actual id and the higher bits to the object type. Then when I am identifying the nodes I can tell what object type the...
by danielmccarthy
Fri Aug 22, 2014 3:42 am
Forum: Beginners Help
Topic: Get scene node by id?
Replies: 8
Views: 1786

Re: Get scene node by id?

Damn the engine is missing a lot of cool stuff. Never mind will have to go down that route then.
Thanks