DarthRaff Posted May 7, 2014 Share Posted May 7, 2014 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 Quote Link to comment Share on other sites More sharing options...
Rick Posted May 7, 2014 Share Posted May 7, 2014 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()? Quote Link to comment Share on other sites More sharing options...
DarthRaff Posted May 7, 2014 Author Share Posted May 7, 2014 Ah, ok, my fault, thankyou very much Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 7, 2014 Share Posted May 7, 2014 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(); Quote Link to comment Share on other sites More sharing options...
DarthRaff Posted May 7, 2014 Author Share Posted May 7, 2014 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 Quote Link to comment Share on other sites More sharing options...
Flexman Posted May 9, 2014 Share Posted May 9, 2014 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. Quote 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 More sharing options...
Recommended Posts
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.