Search found 68 matches

by Seraph
Fri Jan 01, 2010 9:23 pm
Forum: Beginners Help
Topic: contrat a line
Replies: 4
Views: 461

:D thanks for the answer the problem is this: i have two points: vector3df(x1,y1,z1) and vector3df(x2,y2,z2) for example the line that connects these two points is long 200px. Now i need to find the end point of the line that starts in vector3df(x1,y1,z1), point to vector3df(x2,y2,z2) and is long 16...
by Seraph
Fri Jan 01, 2010 2:56 pm
Forum: Beginners Help
Topic: contrat a line
Replies: 4
Views: 461

contrat a line

i have a line with the start and the end point. I need to reduce the length of 40px. How? Thanks
by Seraph
Wed Dec 23, 2009 3:44 pm
Forum: Beginners Help
Topic: water light
Replies: 0
Views: 573

water light

i have created a node for the water as in the tutorial IAnimatedMesh* mesh = smgr->addHillPlaneMesh( "water",dimension2d<f32>(75,75),dimension2d<u32>(40,40), 0, 0,dimension2d<f32>(0,0),dimension2d<f32>(25,25)); ISceneNode* node = smgr->addWaterSurfaceSceneNode(mesh->getMesh(0), 3.0f, 300.0...
by Seraph
Wed Dec 23, 2009 2:13 pm
Forum: Beginners Help
Topic: draw2DRectangleOutline
Replies: 9
Views: 508

but EAAM_OFF don't mean that it is disabled? i must change this row with what? mat.AntiAliasing=video::DISABLED?

thanks for the help :D
by Seraph
Wed Dec 23, 2009 12:32 pm
Forum: Beginners Help
Topic: draw2DRectangleOutline
Replies: 9
Views: 508

SMaterial mat; driver->setMaterial(mat); mat.Thickness=10; mat.setTexture(0, 0); mat.Lighting = false; mat.AntiAliasing=video::EAAM_OFF; driver->draw2DRectangleOutline(rect< s32 >(263,673,314,681),SColor(255, 255, 255, 255)); :? the problem is the same. I have set the thickness to 10 but the line i...
by Seraph
Wed Dec 23, 2009 11:10 am
Forum: Beginners Help
Topic: draw2DRectangleOutline
Replies: 9
Views: 508

Simply set the anti-aliasing settings in the 2d render mode method to disabled.
I'm sorry but i can't find the correct parameter, what is the function?
by Seraph
Mon Dec 21, 2009 9:47 am
Forum: Beginners Help
Topic: draw2DRectangleOutline
Replies: 9
Views: 508

my version is the 1.6, the last. the video driver is the opengl. It is sufficient to change the video driver? What type of video driver is the best in this case?
by Seraph
Sun Dec 20, 2009 7:34 pm
Forum: Beginners Help
Topic: draw2DRectangleOutline
Replies: 9
Views: 508

draw2DRectangleOutline

i have placed this function in the main loop:

driver->draw2DRectangleOutline(rect< s32 >(263,650,415,658),SColor(255, 255, 255, 255));

I don't understand why, during the execution, it changes thickness from 1 to 2 pixels :?
by Seraph
Thu Dec 17, 2009 7:59 pm
Forum: Beginners Help
Topic: wait
Replies: 22
Views: 1392

Code: Select all

u32 now = device->getTimer()->getTime();  
static u32 last = now;
if(now>(last+2000)){}
:? the problem is that the function is called one time... any ideas?
by Seraph
Thu Dec 17, 2009 5:18 pm
Forum: Beginners Help
Topic: wait
Replies: 22
Views: 1392

wait

i want to set the visibility of a node after 2 seconds, is possible? (the program mustn't be stopped, therefore no sleep... )
by Seraph
Thu Dec 10, 2009 2:34 pm
Forum: Beginners Help
Topic: accent
Replies: 1
Views: 199

accent

what is the simplest way to print an accent? ascii?

the code for 'é' is 8a, but if i print \x8a don't works :(
by Seraph
Mon Dec 07, 2009 4:57 pm
Forum: Beginners Help
Topic: delete enemy
Replies: 2
Views: 314

delete enemy

i have created an array of enemies:

enemy.push_back(smgr->addAnimatedMeshSceneNode(smgr->getMesh("../../media/ninja.b3d")));

and when i kill an enemy i delete the enemy with this:

enemy.erase(i);

but why the enemy don't disappear? it is normal?
by Seraph
Thu Dec 03, 2009 10:12 am
Forum: Beginners Help
Topic: strange error with a ray
Replies: 12
Views: 580

:D ok i have understood thanks
by Seraph
Wed Dec 02, 2009 9:34 pm
Forum: Beginners Help
Topic: strange error with a ray
Replies: 12
Views: 580

well, if i create ray2 with the first parameter different by i, it works but, why they point to the same poisition? they are different array...
I can create the same function with a different structure?
for example with array<line3df>ray i can create a multiple array?
by Seraph
Wed Dec 02, 2009 3:15 pm
Forum: Beginners Help
Topic: strange error with a ray
Replies: 12
Views: 580

i'm sorry but i believe that i haven't understood, in the first post with the 'for' for each enemy there are:

ray[0],ray[1],ray[2],ray[3].

i don't allocate ray[0][4]. In fact the first example works, is the second that don't works...