Search found 65 matches

by monchito
Mon Nov 21, 2011 7:36 am
Forum: Beginners Help
Topic: Deform a flat mesh in XZ terms
Replies: 1
Views: 181

Deform a flat mesh in XZ terms

Hi
I want to know if there is a way to know what point in a flat mesh correspond to a vertex list in irrlicht. Like to
organize it in a 2d 16x16 array and move the position[0][0] , position[0][16], etc , are a corners of the mesh. Don't know
how to do it. Any Ideas are wellcome ...
by monchito
Sun Sep 19, 2010 12:14 pm
Forum: Beginners Help
Topic: Rotation and movement problem.
Replies: 3
Views: 1419

Maybe this can help

void Move( ISceneNode* node, const float &distance )
{
vector3df pos = node->getPosition();
float rot = node->getRotation().Y;
pos.X += distance * cos(rot * DEGTORAD);
pos.Z -= distance * sin(rot * DEGTORAD);
node->setPosition( pos );
}

void Strafe( ISceneNode* node ...
by monchito
Sat Jul 10, 2010 11:48 am
Forum: Beginners Help
Topic: How do I...Image to win32 HBITMAP
Replies: 1
Views: 269

How do I...Image to win32 HBITMAP

Hi
I'm triying to create a bitmap in win32 from the Textures or images from irrlicht from some code i found here.
No success for now. Only a black square.
Any help is appreciated
Thanks

video::IImage* img = device->getVideoDriver()->createImageFromFile(...);

int x_dim = (int) img->getDimension ...
by monchito
Fri Jul 02, 2010 5:29 pm
Forum: Beginners Help
Topic: how do i make axes node always visible?
Replies: 3
Views: 438

Hi
sorry Tihtinen, I disabled the ZBuffer and visibility, used the ->render() after ->drawAll()
I followed the instructions but doesn't work. Still hidden inside the/or behind the nodes.
The next try is the CuteAlien method
by monchito
Fri Jul 02, 2010 1:59 pm
Forum: Beginners Help
Topic: how do i make axes node always visible?
Replies: 3
Views: 438

how do i make axes node always visible?

Hi
I'm using irrlicht 1.7 & CB.
I found an axes scene node here http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=21993
I need the axes to be visible always, even inside other nodes( is the idea), but don't know how to do it. Its for a simple scene editor. Don't know if already posted, tried ...
by monchito
Fri Apr 09, 2010 7:19 pm
Forum: Code Snippets
Topic: New GUI skin [update: new skins, support for 1.5/1.6]
Replies: 112
Views: 85166

Help!!
tried with CodeBlocks & irrlicht 1.7 and this is what i got, two errors
located at
gui::CImageGUISkin* skin = new gui::CImageGUISkin(driver, env->getSkin());


E:\CodeBlockProjects\irrScene\main.cpp|981|error: cannot allocate an object of type `irr::gui::CImageGUISkin'|
because the ...
by monchito
Wed Apr 07, 2010 1:00 am
Forum: Beginners Help
Topic: Please help (3rd RPG camera)
Replies: 7
Views: 729

#include "IrrCamera3D.cpp"
#include "3DP.cpp"

using namespace irr;
...
do not mix the two cameras.

/*
IrrCamera3D cam_control;
cam_control.Create(smgr);
cam_control.setPosition( vector3df(0,0,-80) );
cam_control.setHeight(300); // above ground
cam_control.turnDown(-35); // look down ...
by monchito
Mon Apr 05, 2010 5:38 pm
Forum: Beginners Help
Topic: Please help (3rd RPG camera)
Replies: 7
Views: 729


void MovePlayer( ISceneNode* node, const f32 distance)
{
if (!node) return;

vector3df pos = node->getPosition();
float rot = node->getRotation().Y;
pos.X += distance * cos(rot * DEGTORAD);
pos.Z -= distance * sin(rot * DEGTORAD);
node->setPosition(pos ...
by monchito
Mon Apr 05, 2010 11:59 am
Forum: Beginners Help
Topic: Please help (3rd RPG camera)
Replies: 7
Views: 729

use something like

Code: Select all

device->setEventReceiver(&receiver);
and

Code: Select all

  vector3df pos = sydneyNode->getPosition();
  float height = terrain->getHeight( pos.X,pos.Z );
  pos.Y = height;
  sydneyNode->setPosition( pos );
by monchito
Sat Mar 20, 2010 11:44 am
Forum: Beginners Help
Topic: Help, can't see models texture
Replies: 3
Views: 298

Help, can't see models texture

Hi everyone;
I use Code::Blocks and irrlicht 1.6
Normally i use .ms3d models without problems, Recently i converted some
.X models to .ms3d and with surprise their texture can only be seen with EDT_SOFTWARE or EDT_BURNINGSVIDEO.
I can see the model texture ok in Milkshape.
Why i can only see a black ...
by monchito
Fri Jan 29, 2010 1:57 pm
Forum: Beginners Help
Topic: Need a scan cone ideas
Replies: 0
Views: 543

Need a scan cone ideas

I nee some sight in front of the entities more or less like real. Like a limited vision angle and directed by the angle of rotation. I tried a triangle 'scan cone'

bool ScanCone( const core::vector3df origin, const float cone_angle, const float direction, const float lenght )
{
core::triangle3df ...
by monchito
Wed Jan 20, 2010 5:49 pm
Forum: Beginners Help
Topic: how to iterate through a list of objects
Replies: 8
Views: 1221

A simple planet class with the list inside. This is is an exercise code to practice not a correct one.

class CPlanets
{
private:
core::list<scene::ISceneNode*> planet;
core::list<scene::ISceneNode*>::Iterator loc;

public:
CPlanets () {};
~CPlanets () { planet.clear(); };

int GetSize ...
by monchito
Wed Jan 13, 2010 12:59 am
Forum: Beginners Help
Topic: Reading a text file using Irrlicht. (IReadFile)
Replies: 7
Views: 1502

I did some practice with this


bool readline( io::IReadFile* f, core::stringc* str )
{
char ch;
*str = "";
while ( 0 != f->read( &ch, 1 ) )
{
if ( ch == '\n')
return true;
else
*str += ch;
}

return false;
}

bool readtoken( io::IReadFile* f, core::stringc* str )
{
char ch;
*str ...
by monchito
Sat Nov 07, 2009 12:18 am
Forum: Game Programming
Topic: Anyone doing simple scripting?
Replies: 2
Views: 2081

Anyone doing simple scripting?

Hi
I'm experimenting with a simple text scripting using the irrlicht 1.5
Don't know much about it but i'm learning.
I want to read a text file and do some basic stuff like movement, rotation, and simple material handling. So far so good, but very slow. I did a simple
text file reader, parser and ...
by monchito
Sat Oct 17, 2009 11:26 pm
Forum: Beginners Help
Topic: Using a list as a queue?
Replies: 3
Views: 332

Hi:
Thanks for the corrections. made a little modifications and woks ok, And you are right is not a queue but i need some attributes from a queue and a stack.
Actually i need to traverse the list with the Front() in a circular fashion, always getting the next element. The total of pushed items must ...