Search found 9 matches

by GundamO
Sat Apr 16, 2011 5:05 pm
Forum: Beginners Help
Topic: creating HUD destroys performance
Replies: 2
Views: 961

Thanks alot, it worked perfectly, now it only drops to about 40 - 60 fps :)

#include "HUD.h"
#include "Engine.h"


HUD::HUD(video::IVideoDriver *driver,gui::IGUIEnvironment *guienv,Character* turtle1)
{
turtle=turtle1;

float width= driver->getViewPort().getWidth();
float height = driver ...
by GundamO
Sat Apr 16, 2011 2:33 pm
Forum: Beginners Help
Topic: creating HUD destroys performance
Replies: 2
Views: 961

creating HUD destroys performance

okk, so the last thing i need to create for my game is my Heads Up Display to show health and collectables. at the moment i have created a class which will draw heart images depending on how much health you have, the only problem i have is that it drops my fps from about 50 - 80 down to 8 - 20. my ...
by GundamO
Thu Apr 07, 2011 11:24 am
Forum: Beginners Help
Topic: Basic Jumping Physics
Replies: 3
Views: 528

Basic Jumping Physics

Hey guys,

I have my model able to jump in my game but it is basically increase Y position until timer reaches time then decrease Y until there is a collision.

if(turtle->jumping){
TurtlePos.Y++;
jumpTimer++;
if(jumpTimer > 70)
TurtlePos.Y-=3;
if(jumpTimer>140)
turtle->jumping = false ...
by GundamO
Thu Mar 17, 2011 9:44 am
Forum: Beginners Help
Topic: model animation
Replies: 3
Views: 415

For some reason the setLoopMode function isnt working for me.
void Enemy::Update(float frameDeltaTime)
{
core::vector3df pos = node->getPosition();
core::vector3df player = turtle->node->getPosition();

float DistancefromPlayer = pos.getDistanceFrom(player);

if(pos.getDistanceFrom(player ...
by GundamO
Wed Mar 16, 2011 6:32 pm
Forum: Beginners Help
Topic: model animation
Replies: 3
Views: 415

model animation

hey guys,

i have a model that has animation on it, i know how to loop the animation using the setFrameLoop function, but i was wondering how you get those frames to only play through once instead of looping?

thanks for any help
by GundamO
Tue Mar 01, 2011 12:39 pm
Forum: Beginners Help
Topic: Ray casting
Replies: 2
Views: 887

Ray casting

Hi guys,

i am attempting to cast a ray from my model downwards against the terrain to set the models height, only problem is that i am lost on how to write the actual ray, i know the start position of the ray will be the models position but i am not sure how to write the end of the ray.

i have ...
by GundamO
Tue Feb 01, 2011 11:46 am
Forum: Beginners Help
Topic: collision between nodes
Replies: 3
Views: 431

Thanks for the help guys,

@Lonesome Duck i have just downloaded the Bullet Physics engine, but from looking through the tutorials i dont feel all that confident with implementing it, i will take a look at ray casting though thanks. :)

@Alpha Omega i have tried using the GetHeight function to keep ...
by GundamO
Mon Jan 31, 2011 11:42 am
Forum: Beginners Help
Topic: collision between nodes
Replies: 3
Views: 431

collision between nodes

Hi guys,

i was wondering what is the easiest way to do collision between terrain and a player controlled model? i want the model to be able to move around on the terrain and for its Y value to change depending on the height of the terrain.

I would prefer not to use a physics engine because i have ...
by GundamO
Thu Jan 27, 2011 3:32 pm
Forum: Beginners Help
Topic: Collision Help
Replies: 0
Views: 700

Collision Help

Hi Guys,

I am attemping to create a Platforming game, i am using a class structure to load all of my objects into my scene.

i am trying to use a metatriangle selector to deal with the collision between my player model, terrain and platforms. My problem arises when i add my terrain triangle ...