Jump to content

Text in 2.5


DarthRaff
 Share

Recommended Posts

Hello, i tried : printf("Hello"), cout << "Hello" , std::cout << "....", but nothing in screen, no errors but no text. I put it after rendering comands before flip . Have i to change some camera or blend mode or somthing like that ? thankyou

Link to comment
Share on other sites

Those are commands for outputting to the console window. Those are part of the C/C++ library not the Leadwerks library. Leadwerks has it's own functions for drawing to the Leadwerks window. It's been to long for me to exactly remember the LE 2.x commands. Maybe DrawText()?

Link to comment
Share on other sites

An excerpt from the old wiki: http://leadwerks.com/wiki/index.php/DrawText

 

makes me miss the old wiki style.

// 2d drawing
 SetBlend(BLEND_ALPHA);
 int line = 0;
 DrawText(0,14*line,"FPS: %f, TrisRendered: %d, Light tris: %d [lights are only updated if something moves]",FPS(),TrisRendered(0),TrisRendered(1));line++;
 DrawText(0,14*line,"Hold P to debug Physics.");line++;
 DrawText(0,14*line,"Use WASD to move. SPACE to jump. Character controller airborne?: %s", ControllerAirborne(character)?"yes":"no");line++;
 DrawText(0,14*line,"Use the arrow keys and the right mouse button + the mouse to move/rotate the camera.");line++;
 SetBlend(BLEND_NONE);

 // flip buffers
 Flip();

Link to comment
Share on other sites

DrawTex(cord y, cord x, "text") works, unfortunately it were useless for me. My intention is to find the childs names , so, the bones names of a model because i want to move a certain bone. FindChild is not finding the name and the bone exists with this name, and GetChild only finds one child with name ROOT. My model have 8 bones with their names so i'm very lost.

 

Anyway, thankyou very much for your time

Link to comment
Share on other sites

Use ModelViewer.exe and drill down through the model tree-control on the left until you find the bone you want (or not if they are missing). At least you can confirm what is in the model and identify any export issues you may (or may not) have.

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...