Search found 40 matches

by TomiZ
Sat Oct 04, 2008 9:18 am
Forum: Project Announcements
Topic: Crimson Glory open source
Replies: 24
Views: 14735

Link is dead. Can anyone upload source code again, please?
by TomiZ
Wed Jun 18, 2008 2:31 pm
Forum: Beginners Help
Topic: Range Finding To Wall
Replies: 11
Views: 589

You should read collisions tutorial.

To find distance you can create vector from you node. Set it's length to "infinity", change direction and find point, where it hit wall.
by TomiZ
Wed Jun 18, 2008 2:21 pm
Forum: Beginners Help
Topic: problem in loading scene with smgr->loadScene
Replies: 4
Views: 247

Try without this line
driver->removeAllTextures();

If you remove texture every scene node that use it will cause error when smgr->drawAll() is called.

I'm not sure if GUI fonts aren't destroy after removing textures.
by TomiZ
Fri Sep 28, 2007 12:08 pm
Forum: Off-topic
Topic: Ask :: SVN Downloader
Replies: 5
Views: 5038

I'm using subversion from http://subversion.tigris.org/ - its work on windows.
by TomiZ
Fri Sep 28, 2007 11:00 am
Forum: Beginners Help
Topic: How to share model information between views?
Replies: 5
Views: 331

You can use one device to render in multiple windows.
In function endScene you can specify window ID, and viewport size. But you have to create windows "manually" (with winAPI or forms).
by TomiZ
Thu Sep 27, 2007 6:32 pm
Forum: Bug reports
Topic: drawVertexPrimitiveList(...) and scene::EPT_QUADS
Replies: 2
Views: 663

look at primitives supported by direct3d http://msdn2.microsoft.com/en-us/library/bb172589.aspx typedef enum D3DPRIMITIVETYPE { D3DPT_POINTLIST = 1, D3DPT_LINELIST = 2, D3DPT_LINESTRIP = 3, D3DPT_TRIANGLELIST = 4, D3DPT_TRIANGLESTRIP = 5, D3DPT_TRIANGLEFAN = 6, D3DPT_FORCE_DWORD = 0x7fffffff, } D3DP...
by TomiZ
Thu Sep 27, 2007 2:52 pm
Forum: Beginners Help
Topic: Window Background for 2D applications
Replies: 2
Views: 430

You can use draw2DImage and draw background like everything else in 2D. Just use big rect (0,0,800,600). And don't forget that it should be drawn before everything else, because 2D images don't use any Z order.
by TomiZ
Thu Sep 27, 2007 2:45 pm
Forum: Beginners Help
Topic: Half drawn 2d images
Replies: 9
Views: 719

That's exactly the problem, if it's not in power of 2 it will be scaled and getting destored !!! ;) There was bug in 1.3.1 with OpenGL. Look in source code at Draw2DImage. Texture coordinates are scaled - every texture coordinate is divided by original texture size, not by new size (power of 2). Bu...
by TomiZ
Thu Sep 27, 2007 6:47 am
Forum: Beginners Help
Topic: GUI button is unpressable
Replies: 10
Views: 715

Maybe you have invisible object above the button. For example in addStaticText you have used too big rectangle to make sure that it will be big enough to text.
by TomiZ
Thu Sep 27, 2007 6:43 am
Forum: Game Programming
Topic: Help :: Mouse in 3D
Replies: 14
Views: 7772

In Irrlicht you can use functions like irr::scene::ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB to check what scene node is under mouse cursor. To check exactly point under mouse cursor use... core::line3d<f32> irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates ...to get ...
by TomiZ
Thu Sep 27, 2007 6:09 am
Forum: Beginners Help
Topic: help getting cube n syndey out of program
Replies: 4
Views: 276

Full documentation is in doc/irrlicht.chm and http://irrlicht.sourceforge.net/docu/index.html 1. This code is adding cube scene node. scene::ISceneNode* n = smgr->addCubeSceneNode(); if (n) { n->setMaterialTexture(0, driver->getTexture("../../media/t351sml.jpg")); n->setMaterialFlag(video:...
by TomiZ
Wed Sep 26, 2007 10:30 pm
Forum: Open Discussion and Dev Announcements
Topic: Can anyone compile and send me the DLL and Libs of the SVN?
Replies: 7
Views: 930

I had some problem in Code::Block. To solve it I changed (in CSceneManager.cpp) 2199 //! Returns a mesh writer implementation if available 2200 IMeshWriter* CSceneManager::createMeshWriter(EMESH_WRITER_TYPE type) 2201 { 2202 switch(type) 2203 { 2204 case EMWT_IRR_MESH: 2205 return new CIrrMeshWriter...
by TomiZ
Wed Sep 26, 2007 9:26 pm
Forum: Beginners Help
Topic: Half drawn 2d images
Replies: 9
Views: 719

I used that code, and it's work fine. Texture dimensions don't have to be in power of 2. It will be scaled by engine. But in draw2DImage source coordination will be scaled from 0 to 1 not with new dimensions , but with original dimensions of texture. EDIT: I'm using Irrlicht 1.4, where getSize/getOr...
by TomiZ
Mon Sep 24, 2007 5:57 am
Forum: Beginners Help
Topic: drawing a bunch of 2D points on screen
Replies: 5
Views: 810

If you will use driver->beginScene(true, true, video::SColor(0,200,200,200)); // render points/lines driver->endScene(); and then you will draw everything else in main loop driver->beginScene(true, true, video::SColor(0,200,200,200)); smgr->drawAll(); env->drawAll(); driver->endScene(); you will rep...
by TomiZ
Sun Sep 23, 2007 7:35 pm
Forum: Beginners Help
Topic: GUI question -> Clickable Images
Replies: 4
Views: 454

It's works fine. Just add button with image. Borders wouldn't be draw, becouse Irrlicht draw it before image. You can also turn borders off. gui::IGUIButton *MyButton = Gl.Irr.gui->addButton(Position, parent, ID, L"", L""); MyButton->setImage( TextureForButton, FirstRect); MyButt...